Presentation is loading. Please wait.

Presentation is loading. Please wait.

Statistical inference I (통계적 추론)

Similar presentations


Presentation on theme: "Statistical inference I (통계적 추론)"— Presentation transcript:

1 Statistical inference I (통계적 추론)
Chapter 7

2 Statistical inference I (통계적 추론)
생물학에서 samples로부터 population (모집단)에 관한 결론을 도출하는 것이 매우 중요 이러한 activity를 statistical inference (통계적 추론) 라고 한다 Two broad categories가 있다 1. Estimating a population parameter (추정) 2. Testing a statistical hypothesis (가설검정)

3 Statistical inference I (통계적 추론)
Estimation (추정) Ex. 7.1: Bluegill-sunfish lengths의 10 random samples Sample mean이 mm 이다 이 sample mean이 얼마나 잘 population mean을 추정하는가? 이러한 statistical inference의 general category를 estimation (추정)이라 부른다

4 Statistical inference I (통계적 추론)
Hypothesis testing (가설검정) Ex. 7.2: Vitamin Y는 필수영양소이나, 많이 섭취할 경우 몸에 해롭다. 따라서 FDA (Food and Drug Administration)에서 각 vitamin pill에 평균 100 units의 vitamin Y가 함유되도록 정함 제조회사에서 100정의 vitamin pills을 random sample하여 vitamin 함량을 측정했을 때 Mean: units; Standard deviation: 2.19 units Sample mean units 이 population mean of 100에서 나왔다고 할 수 있나? 이러한 질문에 답을 찾는 것을 hypothesis testing (가설검정)이라 한다 (다음 chapter에서 다룸)

5 Sampling distribution (표본분포)
모집단에 대한 추론은 sample mean (표본의 평균값) 이나 표본의 분산을 이용해야 한다 따라서 다른 type의 probability distribution인 sampling distribution (표본분포)을 이해해야 한다 Sampling distribution (표본분포) 모집단으로부터 random sample했을 때 그 sample은 모집단으로부터 선택될 수 있는 수 많은 samples 들 중 하나이다

6 Sampling distribution (표본분포)
Normal distribution을 하고 있는 population으로부터 같은 size의 sample을 반복해서 수행한 후 means을 계산하면 각각의 mean은 서로 다를뿐아니라 이들 값은 central value를 중심으로 모이는 경향을 보인다 다시 말해 이들 means 들이 means의 mean 값과 standard deviation을 가지며 normal distribution을 하게 된다 이러한 확률분포를 sampling distribution이라 한다 따라서 하나의 sample mean은 sampling distribution (표본분포)의 one observation이다 표본분포의 mean = μ (모평균) 표본분포의 standard deviation = σ / √n (n = sample size)

7 The central limit theorem (중심극한정리)
Normal distribution을 하는 population (모집단)으로부터 random sample된 표본평균 (sample means)들은 sample size에 상관없이 normal distribution을 한다 모집단이 normal distribution을 하지 않더라도 sample size가 크면 sampling distribution은 근사적으로 (approximately) normal distribution을 한다 실질적으로 sample size가 30 이상일 경우 근사적으로 정규분포를 따른다

8 The central limit theorem (중심극한정리)
Figure 7.2: central limit theorem을 보여준다 도시의 크기의 original data는 skewed distribution (비대칭분포)을 보여준다 작은 도시가 대부분 Sample size n으로 반복하여 표본을 추출하여 sample mean을 계산하여 frequency distribution을 그릴 경우 Sample size가 커질수록 normal distribution에 가까워진다

9 The central limit theorem (중심극한정리)의 효용
생물현상을 수량화하여 분포를 살필 경우 그 분포가 정확히 정규분포를 이루지 않는 경우가 많이 있다 중심극한정리에 따르면 모집단의 분포에 상관없이 sample size (n) 가 커지면 표본평균의 표본분포 (sampling distribution)가 정규분포에 가까워진다 따라서 모집단이 정규분포를 하지 않더라도 sample size가 큰 표본 (n > 30)을 추출하면 정규분포를 이용하여 표본분석을 할 수 있다

10 Sampling distribution (표본분포)
Sampling distribution의 또 다른 특성은 sample size n이 커질수록 sample means 들의 분포가 좁아진다 대부분의 sample means들이 the true mean (μ)에 가까워진다 Sample size가 커질수록 추정치의 정밀도 (precision)가 높아진다 Cf. accuracy (정확도)와는 다름 σ = σ / √n (n = sample size) A single sample mean은 normal distribution을 하는 sampling distribution을 구성하는 많은 평균값 중 하나이다

11 Estimating a population mean: Standard error of the mean
Ex. 7.3 : Bluegill sunfish lengths The population mean (μ) = mm The population standard deviation (σ) = mm 모집단으로부터 10개체를 random sampling한 후 sample mean을 구함 Sample mean = mm Quest. 1. Sample mean이 mm 이상일 확률은? Single observation의 z score z = (x – μ)/ σ (chapter 6) Sample mean의 z score z = ( – μ)/ σ σ = σ / √n Sample mean은 sampling distribution을 하므로

12 Estimating a population mean: Standard error of the mean
Sampling distribution의 standard deviation을 standard error of the mean (σ ) 이라 부른다 σ = σ / √n = / √10 = 6.21 z = ( – μ)/ σ = ( – ) / 6.21 = 1.18 From Table A.1, z score of 1.18: 따라서 mean 값이 보다 클 확률 0.5 – = (약 12%)

13 Standard error of the mean
Question 2: sample mean의 95%가 포함되는 sample mean의 range를 구하라. The population mean (μ) = mm The population standard deviation (σ) = mm Sample size: 10

14 Standard error of the mean
0.95/2 = 0.475 From Table A.1, probability 0.475의 z score = 1.96 z score 1.96과 -1.96에 해당하는 sample means z = ( – μ)/ σ , = μ + (z × σ ) z score 1.96에 해당하는 sample means Sample mean = (1.96 × 6.21) = z score -1.96에 해당하는 sample means Sample mean = (-1.96 × 6.21) = 따라서 sample mean 95%가 포함되는 mean의 range – mm mm 는 이 범위에 속한다

15 Confidence interval of μ when σ is known
Sample mean 과 population standard deviation을 알 경우 population mean이 위치하는 범위를 알 수 있다 The range: mean의 confidence interval (신뢰구간)이라 함 이 범위가 모집단의 true value를 포함할 확률을 신뢰수준이라 함 Confidence level (신뢰수준): 일반적으로 0.95 (95%), 0.99 (99%) Assumption of the test 1. sample은 random sample이어야 한다 2. measurement는 interval or ratio scale로, variable은 continuous 3. variable은 approximately normally distributed 4. population standard deviation을 알아야 한다

16 Confidence interval of μ when σ is known
Ex. 7.1: Bluegill-sunfish lengths의 10 random samples Sample mean이 mm 이다 Population standard deviation (σ) = mm 95% 신뢰수준에서 mean의 confidence interval? The range: the upper limit (UL) and lower limit (LL) 1.96 = z score for probability 0.475 σ = σ / √n = / √10 = 6.21

17 Confidence interval of μ when σ is known
UL0.95 = (1.96 × 6.21) = LL0.95 = (-1.96 × 6.21) = 따라서 95% CI for μ = ± mm Or 95% CI for μ = , 99% confidence interval (0.99/2 = 0.495; z = 2.576) UL0.99 = (2.576 × 6.21) = LL0.99 = ( × 6.21) = 99% CI for μ = ± mm 2.576은 확률 (0.99/2)의 z score (from Table A.1)

18 Confidence interval of μ when σ is known
Caution Confidence level (신뢰수준): 이 범위 (CI)가 모집단의 true value를 포함할 확률 (95% or 99%) The probability that the confidence interval includes the parameter!!! 이 범위에 true value가 포함될 확률이 아니다 (true value는 이미 정해져 있음) 95% probability that the parameter lies between the upper and lower limits- Incorrect!!! Ex. μ를 알고 있는 population (모집단)에서 20 번 sampling 함. For each sample, 95% confidence interval을 계산함 Figure 7.6: 20개의 confidence interval 중 19개 (95%)의 interval 이 true value를 포함함

19 Confidence interval of μ when σ is unknown: the t distribution
현실적으로 population standard deviation (σ)을 모르는 경우가 대부분이다 따라서 sample standard deviation을 이용해야 한다 (population의 parameter를 추정하기 위해) 이 경우에는 the t distribution (Student’s t distribution)을 이용해야 한다 (t distribution 개발자가 Student라는 익명으로 발표) Student’s t distribution은 normal distribution과 유사하나 degrees of freedom (n-1, 자유도)가 추가된다 Normal distribution: mean과 standard deviation으로 정의됨 Student’s t distribution: mean, standard deviation, degree of freedom으로 정의됨

20 Confidence interval of μ when σ is unknown: the t distribution
t value는 z score 와 성질이 유사하나 t-distribution은 sample size에 따라 달라진다 따라서 degree of freedom (n – 1)이 추가된다 t distribution (Table A.2) 특정 proportion을 제외하는 t value를 Table A.2 에서 결정할 수 있다 Table A.2에서 0.05의 의미: 5%를 제외하고 95%를 포함 Shaded portion이 특정 ± t value의 바깥쪽에 놓인 proportion 이다 Table A.2은 table A.1 과는 달리 양쪽 tails 을 포함 한다 Table 속의 numbers: t-values

21 Confidence interval of μ when σ is unknown: the t distribution
Ex. t distribution의 0.05를 제외하고 자유도 4인 t-value는? 2.776 따라서 t-value ± 2.776은 t-distribution의 0.05를 제외 (or includes 0.95) Figure 7.7

22 Confidence interval of μ when σ is unknown: the t distribution
Ex. 자유도 4, t distribution의 only upper 0.05를 제외하는 t-value는? Table A.2는 특정 proportion을 양쪽 tails로 똑같이 나눈 t-value One-half proportion in the upper tail One-half proportion in the lower tail 한쪽 tail에 만 관심이 있을 경우 어떻게 하나? Table A.2에 있는 proportion을 double 한다 Proportion (probability) 0.10 (rather than 0.05)의 t-value가 upper 0.05를 제외하는 t-value이다 2.132 (Figure 7.8)

23 Confidence interval of μ when σ is unknown: the t distribution
t-value: 2.132 Shaded proportion: 0.05 Unshaded proportion: 0.95

24 Confidence interval of μ when σ is unknown: the t distribution
t-value는 자유도가 증가할수록 감소한다 자유도가 무한대 일 때, 0.05를 제외하는 t-value 1.960 Standard normal distribution에서 0.05를 제외하는 (0.95를 포함하는) z value와 같다 자유도가 증가하면 t-distribution은 normal distribution으로 가는 경향이 있기 때문 자유도가 아주 클 경우 (sample size가 클 경우) normal distribution (Table A.1)을 이용할 수 있다

25 Confidence interval of μ when σ is unknown: the t distribution
Ex. 7.4: a random sample of 20 male mosquito fish, total length (mm) was determined Sample mean ( ): 21.0 mm Sample standard deviation (s): 1.76 mm Length of the fish: approximately normally distributed Population mean의 95% confidence interval은? Both the population mean과 standard deviation이 sample values로부터 추정되어야 함

26 Confidence interval of μ when σ is unknown: the t distribution
Assumptions of the test Random sample이어야 함 Measurement는 interval or ratio scale Variable (변수)는 continuous (discrete일 경우 variable의 range가 넓어야 함) Variable은 approximately normally distributed

27 Confidence interval of μ when σ is unknown: the t distribution
The upper limit for 95% confidence interval The lower limit for 95% confidence interval t(0.05, n-1): 자유도 n-1, t-distribution의 0.95 (table A. 2에서 0.05 column)를 나타내는 t-value s = standard error of the mean ( = s / √n)

28 Confidence interval of μ when σ is unknown: the t distribution
n = 20, sample mean = 21, s = 1.76, t0.05, n=19 = 2.093 UL0.95 = (2.093 × 1.76/√20) = LL0.95 = (2.093 × 1.76/√20) = 따라서 95% CI for μ = 21.0 ± mm Or < μ < Range mm to mm 가 population mean을 포함할 확률이 95 (이 range에 population mean이 포함될 확률이 아님!!!)

29 Reporting a sample mean and its variation
Sample mean을 scientific presentation에 어떻게 나타내는가? 1. mean ± standard deviation ( ± s), ex: ± 2.19 모집단에서 추출된 measured variable의 variation에 대한 정보를 어느 정도 제공하나 sample mean이 population을 얼마나 잘 추정했는지에 관한 정보는 제공해 주지 않는다 2. mean ± standard error ( ± s ) Sample mean을 보여주는 가장 일반적인 방법: sample size가 반영됨 Sample mean이 population을 얼마나 잘 추정했는지를 rough하게 보여준다 (CI 보다는 못함) 3. mean ± 95% (or 99%) confidence interval ( ± CI) 가장 정확하게 data를 평가할 수 있게 하는 방법

30 Reporting a sample mean and its variation
많은 경우 Sample mean을 graph로 나타낸다 주로 mean ± standard error Point (mean) 과 vertical lines (error bar; standard error)

31 Exercises Exercises 1: 11 female green iguanas 가 낳은 알의 수
Population mean의 95%, 와 99% confidence intervals를 구하라 Sample standard deviation: 9.968

32 Exercises 11 female green iguanas 가 낳은 알의 수
Population mean의 95%, 와 99% confidence intervals를 구하라 Mean: 45.18 SS = Σ x2 – (Σx)2/n, SS / n-1 = variance (분산) = s2 Standard deviation = √variance SS = – /11 = Variance = /10 = Standard deviation = 9.968 SE = 9.968/√11 = 3

33 Exercises 11 female green iguanas 가 낳은 알의 수
Population mean의 95%, 와 99% confidence intervals를 구하라 Mean: 45.18, SE: 3 95% CI: t-value (0.05, df=10): 2.228 45.18 ± 2.228*3 = ± 6.683 99% CI: t-value (0.01, df=10): 3.169 45.18 ± 3.169*3 = ± 9.507


Download ppt "Statistical inference I (통계적 추론)"

Similar presentations


Ads by Google