(One group of samples with π known) Step one: State the null and alternative hypotheses π»π : π = π π»1 : π ≠ π Step two: Find the critical Z value by the significance level πΆ and the number of tails. Step three: Collect data and compute the test statistic Z. 1. ππ = 2. π= π √π π−π π2 ππ ππ = √ π ππ Step four: Make a decision. Method one: If the absolute value of the test statistic value > the absolute value of the critical value, we reject the null hypothesis and the P-value < the significance levelπΌ. If the absolute value of the test statistic value < the absolute value of the critical value, we fail to reject the null hypothesis and the P-value > the significance level πΌ. Method two: If the test statistic falls in the critical region, we reject the null hypothesis and the P-value < the significance level α. If the test statistic does not fall in the critical region, we fail to reject the null hypothesis and the P-value > the significance level α. (One group of samples with π unknown but s known) Step one: State the null and alternative hypotheses π»π : π = π π»1 : π ≠ π Step two: Find the critical t value by the significance level πΆ, the degree of freedom df=n-1 and the number of tails. Step three: Collect data and compute the test statistic t. 1. ππ = ∑ π 2 − (∑ π)2 /π π π ππ 2. π = √π−1 3. ππ = 4. π‘ = π √π ππ π 2 = π−1 π2 or ππ = √ π π−π ππ Step four: Make a decision (One group of samples did the same test twice: before and after; repeated; or matched pairs) Step one: State the null and alternative hypotheses π»π : ππ· = 0 π»1 : ππ· ≠ 0 Step two: Find the critical t value by the significance level πΆ, the degree of freedom df=n-1 and the number of tails. Step three: Collect data and compute the test statistic t. 1. ππ = ∑ π·2 − (∑ π·)2 /π π π 2. π = √π−1 3. πππ· = 4. π‘ = π √π ππ· −ππ· or ππ π 2 = π−1 π2 or πππ· = √ π πππ· Step four: Make a decision (Two independent groups of samples) Step one: State the hypothesis. Ho: π1 = π2 (The sign can be “<,≤, > ππ ≥” ) H1: π1 ≠ π2 (Same as above.) Step two: Find the critical t value. The critical t value is decided by the significance level πΌ; the degree of freedomππ = (π1 − 1) + (π2 − 1) and the number of tails. Step three: Collect the data and compute the test statistic. 1. Sum of Squares: ππ1 = ∑π1 2 − (∑π1 )2 /π1 ππ2 = ∑π22 − (∑π2 )2 /π2 ππ +ππ 2. Pooled Variance: ππ 2 = ππ1 +ππ2 = (π 1 2 ππ1 +ππ2 1 −1)+(π2 −1) ππ 2 ππ 2 1 π2 3. Estimated standard error: π(π1 −π2 ) = √ π + 4. t statistic: π‘ = (π1 −π2 )−(π1 −π2 ) π(π1 −π2 ) Step Four: Make a conclusion. Note: If we wouldn’t reject Ho in two-tailed test, we cannot reject Ho in one-tailed test. In SPSS print out, sig. # is the p-value for two-tailed test because SPSS only has two-tailed test. If it is one-tail test, to find p-value, the sig. number should time 2. Critic al value Chapter 8: One sample Z test π π€π§π¨π°π§ Z critical value is decided by the significance level α and the one or two tail(s) Hypothesis (example) π»π : π = π π»1 : π ≠ π Or π»π : π = 50 π»1 : π ≠ 50 Chapter 9: One sample t-test π unknown but s known Chapter 11: Dependent samples t-test t critical value is decided by the significance level α, the one or two tail(s), and the df=n-1 t critical value is decided by the significance level α, the one or two tail(s), and the df = n-1 (n is the number of differences.) Chapter 10: t critical value is decided Two independent samples by the significance level α, the one or two tail(s), and the π π = π ππ+ π ππ = (ππ − π) + (ππ − π). Estimated standard error π ππ = √π Or π= π−π ππ π‘= π−π ππ π‘= ππ· − ππ· πππ· π2 ππ = √ π π π»π : π = π π»1 : π ≠ π ππ = Or Or π»π : π = 50 π»1 : π ≠ 50 π2 ππ = √ π π»π : ππ· = 0 π»1 : ππ· ≠ 0 πππ· = Or √π π √π π2 πππ· = √ π π»π : π1 = π2 π»1 : π1 ≠ π2 Test statistic formula π(π1 −π2 ) ππ 2 ππ 2 =√ + π1 π2 (ππ· = 0) π‘= (π1 − π2 ) − (π1 − π2 ) π(π1 −π2) (π1 − π2 = 0) When to use estimation: When a hypothesis test leads to a rejection of the null hypothesis (Ho) 1. One sample t-statistic: π = π ± π‘(ππ ) Conclusion (example): We are 90% confident that the population mean (π) lies within the interval from … to … 2. Independent samples t-statistic: π1 − π2 = (π1 − π2 ) ± π‘(π(π1 −π2 ) ) Conclusion (example): We are 90% confident that the difference of the population means lies within the interval from … to … 3. Dependent samples t-statistic: ππ· = ππ· ± π‘(πππ· )