- Training Systems Using Python Statistical Modeling
- Curtis Miller
- 275字
- 2021-06-24 14:20:44
Classical inference for proportions
In classical statistical inference, we often answer questions about a population, which is a hypothetical group of all possible values and data (including future ones). A sample, on the other hand, is a subset of the population that we use to observe values. In classical statistical inference, we often seek to answer questions about a fixed, non-random, unknown population parameter.
Confidence intervals are computed from data, and are expected to contain θ. We may refer to, say, a 95% confidence interval—that is, an interval that we are 95% confident contains θ, in the sense that there is a 95% chance that when we compute such an interval, we capture θ in it.
This section focuses on binary variables, where the variable is either a success or a failure, and successes occur with a proportion or probability of p.
An example situation of this is tracking whether a visitor to a website clicked on an ad during their visit. Often, these variables are encoded numerically, with 1 for success, and 0 for a failure.
In classical statistics, we assume that our data is a random sample drawn from a population with a fixed, yet unknown, proportion, p. We can construct a confidence interval based on the sample proportion, which gives us an idea of the proportion of the population. A 95% confidence interval captures the proportion of the population approximately 95% of the time. We can construct confidence intervals using the proportion_confint() function, which is found in the statsmodel package, which allows the easy computation of confidence intervals. Let's now see this in action!
- Java面向?qū)ο笏枷肱c程序設(shè)計(jì)
- ASP.NET Core 2 and Vue.js
- PostgreSQL Replication(Second Edition)
- Big Data Analytics
- RISC-V體系結(jié)構(gòu)編程與實(shí)踐(第2版)
- 深度學(xué)習(xí):Java語(yǔ)言實(shí)現(xiàn)
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)教程(Windows 7+Office 2010)
- R語(yǔ)言數(shù)據(jù)可視化:科技圖表繪制
- R Data Science Essentials
- ASP.NET求職寶典
- Java從入門到精通(視頻實(shí)戰(zhàn)版)
- Apache Kafka 1.0 Cookbook
- Python程序設(shè)計(jì)現(xiàn)代方法
- 深度學(xué)習(xí):基于Python語(yǔ)言和TensorFlow平臺(tái)(視頻講解版)
- Flink原理深入與編程實(shí)戰(zhàn):Scala+Java(微課視頻版)