概述
请注意我们本来要找的是什么,我们要找的是特定样本在样本均值分布的什么位置,不仅仅针对是这个简单的总体更是针对庞大的总体。
现在可以找到了因为现在我们知道对于均值分布,其中每个均值都是样本量为 n 的均值,该分布的标准偏差就等于总体标准偏差除以平方根 n,这就叫做中心极限定理。
它不仅适用于这些简单的总体,更是适用于任何总体。正是因为中心极限定理,我们的总体可以是任何形状。
假设我们从中抽取一个样本并计算出均值,然后再抽取出一个样本并计算出均值,持续这么操作。
如果画出均值分布图的话,形状会是相对正态的,其中标准偏差等于总体标准偏差除以样本量的平方根我们一直都叫它 SE
02-Video: Descriptive vs. Inferential Statistics
In this section, we learned about how Inferential Statistics differs from Descriptive Statistics.
Descriptive Statistics
Descriptive statistics
is about describing our collected data.
Inferential Statistics
Inferential Statistics
is about using our collected data to draw conclusions to a larger population.
We looked at specific examples that allowed us to identify the
- Population - our entire group of interest.
- Parameter - numeric summary about a population
- Sample - subset of the population
- Statistic numeric summary about a sample
05-Text: Descriptive vs. Inferential Statistics\
Descriptive vs. Inferential Statistics
In this section, we learned about how Inferential Statistics differs from Descriptive Statistics.
Descriptive Statistics
Descriptive statistics
is about describing our collected data using the measures discussed throughout this lesson: measures of center, measures of spread, shape of our distribution, and outliers. We can also use plots of our data to gain a better understanding.
Inferential Statistics
Inferential Statistics
is about using our collected data to draw conclusions to a larger population. Performing inferential statistics well requires that we take a sample that accurately represents our population of interest.
A common way to collect data is via a survey. However, surveys may be extremely biased depending on the types of questions that are asked, and the way the questions are asked. This is a topic you should think about when tackling the the first project.
We looked at specific examples that allowed us to identify the
- Population - our entire group of interest.
- Parameter - numeric summary about a population
- Sample - subset of the population
- Statistic numeric summary about a sample
10-Text: Sampling Distribution Notes
Sampling Distributions Notes(抽样分布时统计值的分布)
We have already learned some really valuable ideas about sampling distributions:
First, we have defined sampling distributions as the distribution of a statistic.
This is fundamental - I cannot stress the importance of this idea. We simulated the creation of sampling distributions in the previous ipython notebook for samples of size 5 and size 20, which is something you will do more than once in the upcoming concepts and lessons.
选择不同的组合统计量会不相同
image.png如果选择所有的组合将会出现下面的结果
image.png如果将不同的组合产生的统计量进行绘图可得
image.png以上的分布就为抽样分布
Second, we found out some interesting ideas about sampling distributions that will be iterated later in this lesson as well. We found that for proportions (and also means, as proportions are just the mean of 1 and 0 values), the following characteristics hold.
-
The sampling distribution is centered on the original parameter value.
-
The sampling distribution decreases its variance depending on the sample size used. Specifically, the variance of the sampling distribution is equal to the variance of the original data divided by the sample size used(抽样分布的方差等于原始数据的方差除以样本量). This is always true for the variance of a sample mean!
样本均值的抽样分布图, 其方差为σ平方(原始数据的)除以样本量
练习
image.pngLooking Ahead
The rest of this lesson will reinforce some of these ideas that you saw at work in this notebook, but you are already being introduced to some big ideas that will continue to show up again and again.
12-Video: Notation for Parameters vs. Statistics
image.png image.pngAs you saw in this video, we commonly use Greek symbols as parameters and lowercase letters as the corresponding statistics. Sometimes in the literature, you might also see the same Greek symbols with a "hat" to represent that this is an estimate of the corresponding parameter.
Below is a table that provides some of the most common parameters and corresponding statistics, as shown in the video.
Remember that all parameters pertain to a population, while all statistics pertain to a sample.
image.png注意
总体参数不会因样本的不同发生变化, 只有统计量会因样本的不同而不同.
15-Video: Two Useful Theorems - Law of Large Numbers
Two important mathematical theorems for working with sampling distributions include:
image.png- Law of Large Numbers(大数定理)
- Central Limit Theorem(中心极限定理)
The Law of Large Numbers says that as our sample size increases, the sample mean gets closer to the population mean, but how did we determine that the sample mean would estimate a population mean in the first place? How would we identify another relationship between parameter and statistic like this in the future?
Three of the most common ways are with the following estimation techniques:
Though these are beyond the scope of what is covered in this course, these are techniques that should be well understood for Data Scientist's that may need to understand how to estimate some value that isn't as common as a mean or variance. Using one of these methods to determine a "best estimate", would be a necessity.
17-Video: Two Useful Theorems - Central Limit Theorem
The Central Limit Theorem states that with a large enough sample size the sampling distribution of the mean will be normally distributed.
The Central Limit Theorem actually applies for these well known statistics:
image.pngAnd it applies for additional statistics, but it doesn't apply for all statistics! . You will see more on this towards the end of this lesson.
20-Video: When Does the Central Limit Theorem Not Work?
In the previous example, you saw how the Central Limit Theorem applies to the sample mean of 100 draws from a right-skewed distribution. However, it did not apply to a sample size of 3 draws from this same distribution.(并不适用所有的抽样分布)
适用于:
image.png
不适用于:
image.png
In the next concepts, you will see that the with large sample sizes the sampling distribution of certain statistics will never become normally distributed. So how do we know which statistics will follow normal distributions, and which will not?
So, you might be wondering already why is the Central Limit Theorem such a big deal? In our new age of computers, it probably isn't as big of a deal, but more on this coming up soon!
22-Video: Bootstrapping(自助法)
Bootstrapping is sampling with replacement.(已放回方式进行抽样, 也就是说被抽取的个体有可能在下一次接着被抽到, 也有可能被一直抽到, 但是这个可能性非常小)Using random.choice in python actually samples in this way. Where the probability of any number in our set stays the same regardless of how many times it has been chosen. Flipping a coin and rolling a die are kind of like bootstrap sampling as well, as rolling a 6 in one scenario doesn't mean that 6 is less likely later.
23-Video: Bootstrapping & The Central Limit Theorem
image.png在推论统计学中, 使用统计量去推断总体参数, 假设我们让样本当作一个总体, 上图中的21个杯子, 虽然只有总体的一个样本, 但是假设它们是总体, 可以从中对其进行自助抽样, 在一个样本和另一个样本之间, 喝咖啡的人之间比例有什么变化.
image.png从上图中可以看出, 两次的均值不同, 因为第二次虽然还是21个样本数, 但是每一个个体都是从新从原始的21个个体中抽取.
You actually have been bootstrapping to create sampling distributions in earlier parts of this lesson, but this can be extended to a bigger idea.
It turns out, we can do a pretty good job of finding out where a parameter is by using a sampling distribution created from bootstrapping from only a sample. This will be covered in depth in the next lessons.
Three of the most common ways are with the following estimation techniques for finding "good statistics" are as shown previously:
Though these are beyond the scope of what is covered in this course, these are techniques that should be well understood for data scientists who may need to understand how to estimate some value that isn't as common as a mean or variance. Using one of these methods to determine a "best estimate" would be a necessity.
25-Video: The Background of Bootstrapping
Two helpful links:
-
You can learn more about Bradley Efron here.
-
Additional notes on why bootstrapping works as a technique for inference can be found here.
26-Video: Why are Sampling Distributions Important
27-Quiz + Text: Recap & Next Steps
Recap
In this lesson, you have learned a ton! You learned:
image.pngSampling Distributions
-
Sampling Distributions are the distribution of a statistic (any statistic).
-
There are two very important mathematical theorems that are related to sampling distributions: The Law of Large Numbers and The Central Limit Theorem.
-
The Law of Large Numbers states that as a sample size increases, the sample mean will get closer to the population mean. In general, if our statistic is a "good" estimate of a parameter, it will approach our parameter with larger sample sizes.
-
The Central Limit Theorem states that with large enough sample sizes our sample mean will follow a normal distribution, but it turns out this is true for more than just the sample mean.
Bootstrapping
-
Bootstrapping is a technique where we sample from a group with replacement.
-
We can use bootstrapping to simulate the creation of sampling distribution, which you did many times in this lesson.
-
By bootstrapping and then calculating repeated values of our statistics, we can gain an understanding of the sampling distribution of our statistics.
Looking Ahead
In this lesson you gained the fundamental ideas that will help you with the next two lessons by learning about sampling distributions and bootstrapping. These are going provide the basis for confidence intervals and hypothesis testing in the next two lessons.
网友评论