Docsity

Inferential statistics, Schemes and Mind Maps of Applied Statistics

Partial preview of the text

Download Inferential statistics and more Schemes and Mind Maps Applied Statistics in PDF only on Docsity!

Unit 3: Hypothesis Testing

RP Kitabi College

By: Irakarama Viateur

June 11, 2026

CONFIDENCE INTERVALS

CI for Mean (Known σ)

Given sample mean ¯X , size n, known σ:

X¯ ± zα/ 2 √^ σ n

Common critical values:

Confidence Level Critical Value (zα/ 2 ) 90% z 0. 05 = 1. 645 95% z 0. 025 = 1. 96 99% z 0. 005 = 2. 58

Example (Known σ, Tourism) — 95% CI for a Mean

Context: A museum wants to estimate the true mean waiting time for a guided tour. From prior data, the population standard deviation is known: σ = 3 minutes. A simple random sample of size n = 25 gives a sample mean X¯ = 15 minutes. Construct a 95% confidence interval for the mean waiting time μ.

Answer-Cont...

Step 4: Construct the CI

CI =

X −ME, X¯ +ME

Final Answer (rounded): (13. 82 , 16 .18) minutes.

Interpretation: We are 95% confident that the true mean waiting time for a guided tour lies between about 13.82 and 16.18 minutes.

CI for Mean (Unknown σ)

If σ unknown, use sample SD s and t-distribution with df = n − 1:

X¯ ± tα/ 2 , df √^ s n

Example (Unknown σ, Tourism)

Check-in time (min), n = 16, ¯X = 18, s = 4, 95% CI. df = 15, t 0. 025 , 15 ≈ 2 .131, SE = √^416 = 1.

CI = (18 − 2. 131 , 18 + 2.131) = (15. 869 , 20 .131) ≈ (15.87, 20.13)min.

Sample Size for Mean (Continuous RV, Known σ)

To achieve margin of error E at confidence level (with zα/ 2 ):

n =

 (^) zα/ 2 σ E

Example (Sample Size for Mean, Tourism)

A tour company wants to estimate the average waiting time for guests before a guided tour begins with 95% confidence, margin E = 1 minute, and Prior σ = 3. Determine the sample size needed.

n =

= (5.88)^2 = 34. 57 → 35.

Sample Size for Proportion (Binary RV)

For desired margin E at confidence level:

n =

z α/^22 p(1 − p) E 2

(use p = 0.5 if unknown for maximum n).

Example (Sample Size for Proportion, Tourism)

Estimate proportion of visitors who request early check-in with 99% confidence and E = 0.03. Prior p = 0.25. Find the required sample size.

n =

(2.58)^2 (0.25)(0.75)

6. 6564 × 0. 1875

(Round up to 1386 visitors.)

Null vs Alternative Hypothesis

Null Hypothesis (H 0 )

The statement that there is no effect or no difference..

H 0 : parameter = specific value

Alternative Hypothesis (H 1 or Ha)

The statement that contradicts H 0. It Assumes an effect or difference exists H 1 : parameter ̸=, >, < specific value

Examples: H 0 : μ = 50 vs H 1 : μ ̸= 50 (Two-tailed) H 0 : μ = 64 vs H 1 : μ > 64 (Right-tailed) H 0 : μ = 20 vs H 1 : μ < 20 (Left-tailed)

Type I and Type II Errors

Decision about Hypothesis

If test statistic falls in critical region, reject H 0. Otherwise, fail to reject H 0.

Type I Error (α)

Rejecting H 0 when it is true.

P(Type I Error) = α

Type II Error (β)

Failing to reject H 0 when H 0 is not true.

P(Type II Error) = β

Power of a Test: 1 − β (probability of correctly rejecting H 0 ).

Illustration

Steps in Hypothesis Testing

Steps

(^1) State the Hypotheses: Formulate H 0 (Null) and H 1 (alternative). (^2) Choose Significance Level: α. (^3) Select Test and Compute Test Statistic (^4) Determine Critical Value(s) or p-value: Use Z tables. (^5) Make Decision: Reject H 0 if test statistic falls in critical region or p-value ≤ α. (^6) State Conclusion: Interpret result in context of the problem.

Critical Region for One-tailed Test

Figure: Left-tailed test VS Right-tailed test

Two-tailed Test

Definition

A two-tailed test checks for a difference in both directions:

H 0 : parameter = value, H 1 : parameter ̸= value