가설 검정
도입됨
10:05
확률 및 통계 2
캠브리지, 1920년대. 정원에서 열리는 파티에서 한 여자가 놀라운 말을 합니다. 그녀는 우유를 컵에 부을 때의 맛조차 구별할 수 있다고 주장합니다.
영어 내레이션 · 영어와 중국어 자막 전환 가능
이 수업의 내용
| English | 의미 |
|---|---|
| hypothesis test/haɪˈpɒθəsɪs test/ | 가설검정 |
| null hypothesis/nʌl haɪˈpɒθəsɪs/ | 영가설 |
| alternative/ɔːlˈtɜːnətɪv/ | 대안가설 |
| one-tailed/wʌn teɪld/ | 단측 |
| two-tailed/tuː teɪld/ | 양측 |
| significance level/sɪɡˈnɪfɪkəns ˈlevl/ | 유의수준 |
| test statistic/test stəˈtɪstɪk/ | 검정통계량 |
| rejection region/rɪˈdʒekʃn ˈriːdʒn/ | 반려구간 |
| Type I error/taɪp aɪ ˈerə/ | 제1종 오차 |
| Type II error/taɪp ˈtuː ˈerə/ | 제2종 오차 |
| critical value/ˈkrɪtɪkl ˈvæljuː/ | 임계값 |
The courtroom of statistics
- A drug company claims their new medicine works better than the old one. How do you decide if the evidence is strong enough?
- Hypothesis testing 假设检验 is the statistical equivalent of a courtroom: you assume the defendant (the null hypothesis 原假设) is innocent until proven guilty beyond reasonable doubt.
Setting up the hypotheses
- A hypothesis test uses sample data to judge a claim.
- The null hypothesis $H_0$ — the default position (usually "no change" or "no effect").
- The alternative 备择假设 $H_1$ — what you suspect is true.
- One-tailed 单尾 if $H_1$ points one way ($\mu > 50$); two-tailed 双尾 if both ($\mu \neq 50$).
Worked example. A machine fills bottles with 500 mL. You suspect it's underfilling. $H_0: \mu = 500$ (machine is correct). $H_1: \mu < 500$ (underfilling). This is a one-tailed test.

A two-tailed 5% test rejects H0 in the shaded tails beyond plus or minus 1.96
반박 영역
z < −z*이면 H₀를 반박
그림자 친 꼬리가 반박 영역이다 — 검정 통계량이 여기에 놓이면 H₀를 반박한다.
귀무가설 H₀는 보통 다음을 명시한다:
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
H₀는 검증되는 주장으로 보통 "변화 없음"이며, H₁은 의심되는 대안이다.
H₁이 μ > 50를 명시할 때, 이 검정은:
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
H₁이 한 방향(μ > 50 또는 μ < 50)을 향하면 단측 검정이다.
Running the test
- Fix a significance level 显著性水平 (often 5%), compute a test statistic 检验统计量, and see if it lands in the rejection region 拒绝域.
- For a 5% two-tailed test, reject $H_0$ if $|z| > 1.96$. For a 5% one-tailed test, reject if $z > 1.645$ for an upper-tail alternative or $z < -1.645$ for a lower-tail alternative.

A one-tailed test at 5% rejects H₀ only if the test statistic lands in the shaded tail.
Significance level is NOT the probability that $H_0$ is true. A 5% significance level means that, if $H_0$ is true, there is a 5% chance of rejecting it in this continuous test. It does NOT mean there is a 5% chance $H_0$ is true.
Types of error
- Type I error 第一类错误: rejecting $H_0$ when it is true (false positive). Probability = significance level $\alpha$.
- Type II error 第二类错误: accepting $H_0$ when it is false (false negative).
Type I 오류는:
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
Type I = 참인 H₀ 반박; Type II = 거짓인 H₀ 수용
Type II 오류는 H₀가 실제로 거짓일 때 이를 수락하는 것입니다.
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
Type II = 거짓인 H₀를 기각하지 않음(거짓 음성).
Worked example — z-test
- $H_0: \mu = 50$, $H_1: \mu \neq 50$ (two-tailed, 5% level). $\sigma = 8$, $n = 64$, $\bar{x} = 52$.
- $z = \dfrac{52 - 50}{8/\sqrt{64}} = \dfrac{2}{1} = 2$.
- Critical value for 5% two-tailed: $1.96$. Since $2 > 1.96$, reject $H_0$.
- Set a null and alternative hypothesis; the test statistic falls in the critical region (reject) or the acceptance region. A Type II error is accepting a false $H_0$. Tests may use a binomial or Poisson distribution.
집단 평균 주장값 50, σ = 8, 표본 n = 64, x̄ = 52. z = (x̄ − μ)/(σ/√n)은?
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
z = (52 − 50)/(8/√64) = 2/(8/8) = 2/1 = 2.
5% 양측 검정에서 |z| > 1.96이면 H₀를 반박한다.
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
5% 양측 검정의 임계값은 1.96이다. |z|가 이를 초과하면 H₀를 반박한다.
You've got it
- $H_0$ (no change) vs $H_1$ (suspected); one- or two-tailed
- test statistic $z = \dfrac{\bar{x} - \mu}{\sigma/\sqrt{n}}$; reject $H_0$ if it's in the rejection region
- Type I = reject a true $H_0$; Type II = accept a false $H_0$
Write from a test that does not reject
- H0 says the mean wait is 8 minutes. H1 says it is greater than 8. The test statistic is 1.2 and the critical value is 1.96.
평균 8분에 대한 상단 꼬리 검정에서 통계량은 1.2이며, 5% 임계값은 1.96입니다. 결정은 무엇입니까?
통계량이 임계값에 도달하지 않았으므로 H0가 유지됩니다.
결정은 무엇입니까?
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
1.2이 1.96보다 낮으므로 상단 꼬리 검정은 H0를 기각하지 않습니다.
어떤 문제가 있었나요? 사이트 팀만 이 내용을 볼 수 있습니다.