Professional Documents
Culture Documents
Statistics Method: Tests of Hypothesis (假設檢定)
Statistics Method: Tests of Hypothesis (假設檢定)
2
Step1: Set Null Hypothesis and Alternative Hypothesis
3
Step1: How to Set Up a Claim as Hypothesis
4
Step1: Type of Tests of Hypothesis
Two-Tailed Test
H0 : θ=θ0 ; H1 : θ≠θ0
One-Tailed Test
Upper Tailed Test:
H0 : θ ≥ θ0 ; H1 : θ<θ0
Lower Tailed Test
H0 : θ ≤ θ0 ; H1 : θ>θ0
5
Step1: Error of Tests of Hypothesis
Error Type
Type 1: H0 is true, but been rejected
Type 2:
H0 is false, but fail to be rejected. (Not Enough Data to prove H1 is true)
Error Prob
Type 1: α = P(Reject H0 | H0=True)
Type 2: β = P(Unable to reject H0 | H1=True equiv. H0=False )
α rise β fall, α fall β rise
無法同時使 Type1 Error 與 Type2 Error 同時變小
• 一般認為 Type1 Error 的後果比較嚴重,因此希望 α 較
小。 ( 必須有足夠的證據才能推翻 H0)
• α 越小,表示 H1 檢驗越嚴格,不容易接受 H1
6
Step2: Select Test Statistic ( 假說檢定量 )
A test statistic is a random variable that is calculated from sample data and used in a
hypothesis test
used to determine whether to reject the null hypothesis.
test statistic compares your data with what is expected under the null hypothesis.
used to calculate the p-value.
A test statistic measures the degree of agreement between a sample of data and the null
hypothesis.
A test statistic contains information about the data that is relevant for deciding
whether to reject the null hypothesis
The sampling distribution of the test statistic under the null hypothesis is called the null
distribution.
When the data show strong evidence against the assumptions in the null hypothesis, the
magnitude of the test statistic becomes too large or too small depending on the
alternative hypothesis. This causes the test's p-value to become small enough to reject
the null hypothesis.
7
Step2: Select Test Statistic ( 假說檢定量 )
8
Step2: Select Test Statistic ( 假說檢定量 )
T-test
measure the reliability of difference of means)
part of inferential statistics, allowed to make inference about the population
beyond our data.
9
Correlation
Supplement:
This formular could be referred as the cosine.
10
Analysis of Variance
11