- Training Systems Using Python Statistical Modeling
- Curtis Miller
- 313字
- 2021-06-24 14:20:47
Bayesian hypothesis testing for proportions
Unlike classical statistics, where we say a hypothesis is either right or wrong, Bayesian statistics holds that every hypothesis is true, with some probability. We don't reject hypotheses, but simply ignore them if they are unlikely to be true. For one sample, computing the probability of a hypothesis can be done by considering what region of possible values of θ correspond to the hypothesis being true, and using the posterior distribution of θ to compute the probability that θ is in that region.
In this case, we need to use what's known as the cumulative distribution function (CDF) of the posterior distribution. This is the probability that a random variable is less than or equal to a quantity, x. So, what we want is the probability that θ is greater than 0.3 when D is given, that is, if we are testing the website administrator's claim that there are at least 30% of visitors to the site clicking on the ad.
So, we will use the CDF function and evaluate it at 0.3. This is going to correspond to the administrator's claim. This will give us the probability that more than 30% of visitors clicked on the ad. The following screenshot shows how we define the CDF function:

What we end up with is a very small probability, therefore, it's likely that the administrator is incorrect.
Now, while there's a small probability, I would like to point out that this is not the same thing as a p value. A p value says something completely different; a p value should not be interpreted as the probability that the null hypothesis is true, whereas, in this case, this can be interpreted as a probability that the hypothesis we asked is true. This is the probability that data is greater than 0.3, given the data that we saw.
- Learn Blockchain Programming with JavaScript
- Python概率統計
- Testing with JUnit
- 數據結構和算法基礎(Java語言實現)
- Visual FoxPro 程序設計
- Python爬蟲開發與項目實戰
- Scratch 3游戲與人工智能編程完全自學教程
- Mastering Unity Shaders and Effects
- Java項目實戰精編
- PHP 7+MySQL 8動態網站開發從入門到精通(視頻教學版)
- 大學計算機基礎實驗指導
- Node Cookbook(Second Edition)
- 智能手機APP UI設計與應用任務教程
- Natural Language Processing with Python Quick Start Guide
- Learning Concurrency in Python