7.1 Selecting a Sample
1. Simple Random Sampling (Finite)
A simple random sample of size n from a finite population of size N is a sample selected such that each possible sample of size n has the same probability of being selected.
- Sampling without replacement: any previously used random numbers are ignored because the corresponding man- ager is already included in the sample
- Sampling with replacement: selected a sample such that previously used random numbers are acceptable and specific managers could be included in the sample two or more times
2. Random Sampling (Infinite)
A random sample of size n from an infinite population is a sample selected such that the following conditions are satisfied.
1. Each element selected comes from the same population. 来自同一批人
2. Each element is selected independently. 每一个是 random 选择的。
7.3 Point Estimation
7.4 Introduction to Sampling Distribution
The various possible values of are the result of different simple random samples, the probability distribution of is called the sampling distribution of x̅.
就是重复提取一个 simple random sample,然后计算它的平均数,重复了500次(例子)之后,得到一个distribution很类似 normal distribution
Sampling Distribution of x̅
The sampling distribution of x̅ is the probability distribution of all possible values of the sample mean x̅.
Expected Value of x̅
Standard Deviation of x̅
Form of the Sampling Distribution of x̅
Population- normal distribution
When the population has a normal distribution, the sampling distribution of is normally distributed for any sample size.
Population- not normal distribution
Central Limit Theorem:
In selecting random samples of size n from a population, the sampling distribution of the sample mean can be approximated by a normal distribution as the sample size becomes large.
Relationship Between the Sample Size and the Sampling Distribution
Sample Size越大,会使得sample mean 的 standard deviation越小,所以distribution会越集中。
7.6 Sample Distribution of p
The sample proportion p¯ is the point estimation of population propotion p. The formula is p¯ = x/n
The sampling distribution of p¯ is the probability distribution of all possible values of the sample proportion p¯.
E( p¯) = p
With n/N < 0.05, will use 后面那个公式在 infinite population
The sampling distribution of can be approximated by a normal distribution whenever
np>=5 and n(1 - p) >=5.
7.7 Properties of Point Estimators
How to use sample statistics to estimate the population?
θ = the population parameter of interest
θˆ = the sample statistic or point estimator of θ
Unbiased: E(θˆ) = θ
Efficiency: 选则 standard error小的,因为it tends to provide estimates closer to the population parameter.
不太理解?
Consistency: sample size要大一些
7.8 Other Sampling Methods
Stratified Random Sampling
In stratified random sampling, the elements in the population are first divided into groups called strata, such that each element in the population belongs to one and only one stratum.
Cluster Sampling
In cluster sampling, the elements in the population are first divided into separate groups called clusters. Each element of the population belongs to one and only one cluster.
A simple random sample of the clusters is then taken. All elements within each sampled cluster form the sample.
用于城市区域的取样本
Systematic Sampling
5000个,提取50个,先分成100组,然后在0-100选个数字,然后其他的样本直接用加100 提取
Convenience Sampling
Convenience sampling is a nonprobability sampling technique. 用在野外生物的样本,或者是检测一个船上的橘子,不可能按照 probability 去取样本
Judgment Sampling
the person most knowledgeable on the subject of the study selects elements of the population that he or she feels are most representative of the population.
For example, a reporter may sample two or three senators, judging that those senators reflect the general opinion of all senators. However, the quality of the sample results depends on the judgment of the person selecting the sample.
欢迎使用Markdown编辑器写博客
本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:
- Markdown和扩展Markdown简洁的语法
- 代码块高亮
- 图片链接和图片上传
- LaTex数学公式
- UML序列图和流程图
- 离线写博客
- 导入导出Markdown文件
- 丰富的快捷键
快捷键
- 加粗
Ctrl + B
- 斜体
Ctrl + I
- 引用
Ctrl + Q
- 插入链接
Ctrl + L
- 插入代码
Ctrl + K
- 插入图片
Ctrl + G
- 提升标题
Ctrl + H
- 有序列表
Ctrl + O
- 无序列表
Ctrl + U
- 横线
Ctrl + R
- 撤销
Ctrl + Z
- 重做
Ctrl + Y
Markdown及扩展
Markdown 是一种轻量级标记语言,它允许人们使用易读易写的纯文本格式编写文档,然后转换成格式丰富的HTML页面。 —— [ 维基百科 ]
使用简单的符号标识不同的标题,将某些文字标记为粗体或者斜体,创建一个链接等,详细语法参考帮助?。
本编辑器支持 Markdown Extra , 扩展了很多好用的功能。具体请参考Github.
表格
Markdown Extra 表格语法:
项目 | 价格 |
---|---|
Computer | $1600 |
Phone | $12 |
Pipe | $1 |
可以使用冒号来定义对齐方式:
项目 | 价格 | 数量 |
---|---|---|
Computer | 1600 元 | 5 |
Phone | 12 元 | 12 |
Pipe | 1 元 | 234 |
定义列表
-
Markdown Extra 定义列表语法: 项目1 项目2
- 定义 A
- 定义 B 项目3
- 定义 C
-
定义 D
定义D内容
代码块
代码块语法遵循标准markdown代码,例如:
@requires_authorization
def somefunc(param1='', param2=0):
'''A docstring'''
if param1 > param2: # interesting
print 'Gr