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
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 选择的。
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̅.
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.
Sample Size越大,会使得sample mean 的 standard deviation越小,所以distribution会越集中。
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.
How to use sample statistics to estimate the population?
θ = the population parameter of interest
θˆ = the sample statistic or point estimator of θ
Efficiency: 选则 standard error小的,因为it tends to provide estimates closer to the population parameter.
不太理解?
Consistency: sample size要大一些
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.
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.
用于城市区域的取样本
5000个,提取50个,先分成100组,然后在0-100选个数字,然后其他的样本直接用加100 提取
Convenience sampling is a nonprobability sampling technique. 用在野外生物的样本,或者是检测一个船上的橘子,不可能按照 probability 去取样本
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编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:
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 是一种轻量级标记语言,它允许人们使用易读易写的纯文本格式编写文档,然后转换成格式丰富的HTML页面。 —— [ 维基百科 ]
使用简单的符号标识不同的标题,将某些文字标记为粗体或者斜体,创建一个链接等,详细语法参考帮助?。
本编辑器支持 Markdown Extra , 扩展了很多好用的功能。具体请参考Github.
Markdown Extra 表格语法:
项目 | 价格 |
---|---|
Computer | $1600 |
Phone | $12 |
Pipe | $1 |
可以使用冒号来定义对齐方式:
项目 | 价格 | 数量 |
---|---|---|
Computer | 1600 元 | 5 |
Phone | 12 元 | 12 |
Pipe | 1 元 | 234 |
定义 D
定义D内容
代码块语法遵循标准markdown代码,例如:
@requires_authorization
def somefunc(param1='', param2=0):
'''A docstring'''
if param1 > param2: # interesting
print 'Greater'
return (param2 - param1 + 1) or None
class SomeClass:
pass
>>> message = '''interpreter
... prompt'''
生成一个脚注1.
用 [TOC]
来生成目录:
使用MathJax渲染LaTex 数学公式,详见math.stackexchange.com.
更多LaTex语法请参考 这儿.
可以渲染序列图:
或者流程图:
即使用户在没有网络的情况下,也可以通过本编辑器离线写博客(直接在曾经使用过的浏览器中输入write.blog.csdn.net/mdeditor即可。Markdown编辑器使用浏览器离线存储将内容保存在本地。
用户写博客的过程中,内容实时保存在浏览器缓存中,在用户关闭浏览器或者其它异常情况下,内容不会丢失。用户再次打开浏览器时,会显示上次用户正在编辑的没有发表的内容。
博客发表后,本地缓存将被删除。
用户可以选择 把正在写的博客保存到服务器草稿箱,即使换浏览器或者清除缓存,内容也不会丢失。
注意:虽然浏览器存储大部分时候都比较可靠,但为了您的数据安全,在联网后,请务必及时发表或者保存到服务器草稿箱。