- 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.
- Spring Cloud Alibaba核心技術(shù)與實(shí)戰(zhàn)案例
- Mastering AWS Lambda
- 復(fù)雜軟件設(shè)計之道:領(lǐng)域驅(qū)動設(shè)計全面解析與實(shí)戰(zhàn)
- Learning Apex Programming
- PHP 從入門到項(xiàng)目實(shí)踐(超值版)
- ASP.NET Core 5.0開發(fā)入門與實(shí)戰(zhàn)
- Java編程指南:基礎(chǔ)知識、類庫應(yīng)用及案例設(shè)計
- 薛定宇教授大講堂(卷Ⅳ):MATLAB最優(yōu)化計算
- 運(yùn)用后端技術(shù)處理業(yè)務(wù)邏輯(藍(lán)橋杯軟件大賽培訓(xùn)教材-Java方向)
- Flowable流程引擎實(shí)戰(zhàn)
- QGIS 2 Cookbook
- Laravel Application Development Blueprints
- JavaScript編程精解(原書第2版)
- jQuery Mobile Web Development Essentials(Second Edition)
- Less Web Development Cookbook