https://github.com/walterxie/bayesianinference
https://github.com/walterxie/bayesianinference
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/walterxie/bayesianinference
- Owner: walterxie
- Created: 2022-05-19T22:25:29.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-31T04:06:48.000Z (about 3 years ago)
- Last Synced: 2025-02-02T02:28:00.342Z (4 months ago)
- Language: R
- Size: 302 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bayesian Inference
## Example 1
For a biased coin-flipping example, assuming the probability to get the head can be between 0 and 1,
then what is its posterior given the observed data:1. Source code [BI_coin.R](BI_coin.R).
2. Results:
- [b11d100.pdf](b11d100.pdf) uses beta(1,1) prior given 100 flips 65 heads;
- [b55d100.pdf](b55d100.pdf) uses beta(5,5) prior given 100 flips 65 heads;
- [b11d4.pdf](b11d4.pdf) uses beta(1,1) prior given 4 flips 4 heads;
- [b55d4.pdf](b55d4.pdf) uses beta(5,5) prior given 4 flips 4 heads.