重學 Statistics,Cha7 Sampling and Sampling Distribution

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 'Greater'
    return (param2 - param1 + 1) or None
class SomeClass:
    pass
>>> message = '''interpreter
... prompt'''

腳註

生成一個腳註1.

目錄

[TOC]來生成目錄:

數學公式

使用MathJax渲染LaTex 數學公式,詳見math.stackexchange.com.

  • 行內公式,數學公式爲:Γ(n)=(n1)!nN
  • 塊級公式:

x=b±b24ac2a

更多LaTex語法請參考 這兒.

UML 圖:

可以渲染序列圖:

Created with Raphaël 2.1.0張三張三李四李四嘿,小四兒, 寫博客了沒?李四愣了一下,說:忙得吐血,哪有時間寫。

或者流程圖:

Created with Raphaël 2.1.0開始我的操作確認?結束yesno
  • 關於 序列圖 語法,參考 這兒,
  • 關於 流程圖 語法,參考 這兒.

離線寫博客

即使用戶在沒有網絡的情況下,也可以通過本編輯器離線寫博客(直接在曾經使用過的瀏覽器中輸入write.blog.csdn.net/mdeditor即可。Markdown編輯器使用瀏覽器離線存儲將內容保存在本地。

用戶寫博客的過程中,內容實時保存在瀏覽器緩存中,在用戶關閉瀏覽器或者其它異常情況下,內容不會丟失。用戶再次打開瀏覽器時,會顯示上次用戶正在編輯的沒有發表的內容。

博客發表後,本地緩存將被刪除。 

用戶可以選擇 把正在寫的博客保存到服務器草稿箱,即使換瀏覽器或者清除緩存,內容也不會丟失。

注意:雖然瀏覽器存儲大部分時候都比較可靠,但爲了您的數據安全,在聯網後,請務必及時發表或者保存到服務器草稿箱

瀏覽器兼容

  1. 目前,本編輯器對Chrome瀏覽器支持最爲完整。建議大家使用較新版本的Chrome。
  2. IE9以下不支持
  3. IE9,10,11存在以下問題
    1. 不支持離線功能
    2. IE9不支持文件導入導出
    3. IE10不支持拖拽文件導入


  1. 這裏是 腳註內容.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章