Docsity

Probability and Statistics, Summaries of Probability and Statistics

Partial preview of the text

Download Probability and Statistics and more Summaries Probability and Statistics in PDF only on Docsity!

Testing of Hypothesis

S. Devi Yamini

S. Sumathi

Notations

Population parameters

Population mean (μ) Population standard deviation (σ) Population size (N) Population proportion (P)

Sample statistic

Sample mean (ĀÆx) Sample standard deviation (s) Sample size (n) Sample proportion (p)

Types of errors

H 0 is true H 0 is false Reject H 0 Type I error Correct decision Accept H 0 Correct decision Type II error

P(Type I error) = α = level of significance (LOS) P(Type II error) = β

Steps involved in Hypothesis testing

Formulate Null and Alternate hypothesis Identify the level of significance Test statistic Critical (or) Rejection region Conclusion If n ≄ 30 =⇒ Large sample If n < 30 =⇒ Small sample

Test for single proportion

Conditions

nP ≄ 5 and n(1 āˆ’ P) ≄ 5

Null Hypothesis: H 0 : P = P 0

Test statistic: Z = p āˆ’ P √ PQ n follows Standard normal distribution

Standard error of proportion=

PQ n 95% confidence limits (that is α = 5%) for P is

(p āˆ’ 1. 96

pq n , p + 1. 96

pq n

Problems on single proportion

  1. 40 people were attacked by a disease and only 36 survived. At 5% LOS, test whether the survival rate attacked by this disease is more than 85 %.

Solution:

Let x denotes the number of people survived after getting attacked by a disease. Here x = 36, n = 40 sample proportion p = xn = 3640 = 0. 9 1: H 0 : P = 0.85 against H 1 : P > 0 .85 (Right tailed test) 2: Level of significance α = 0. 05 3: Test Statistic: Consider the conditions nP = 40 Ɨ 0 .85 = 34 > 5 , n(1 āˆ’ P) = 40 Ɨ 0 .15 = 6 > 5

Test of difference of proportions

Conditions

n 1 p 1 ≄ 5; n 1 q 1 ≄ 5; n 2 p 2 ≄ 5; n 2 q 2 ≄ 5

Null Hyp H 0 : P 1 āˆ’ P 2 = d where d is the difference in Population proportions.

Test of difference of proportions

Conditions

n 1 p 1 ≄ 5; n 1 q 1 ≄ 5; n 2 p 2 ≄ 5; n 2 q 2 ≄ 5

Null Hyp H 0 : P 1 āˆ’ P 2 = d where d is the difference in Population proportions.

Test statistic :

Z =

(p 1 āˆ’ p 2 ) āˆ’ (P 1 āˆ’ P 2 ) √ PQ( (^) n^11 + (^) n^12 )

follows Standard normal distribution

Problems

  1. In a random sample of 100 men taken from Village A, 60 were found to be consuming alcohol. In another sample of 200 men taken from Village B, 100 were found to be consuming alcohol. Do the two villages differ significantly in respect to the proportion of men who consume alcohol?

Problems

  1. In a random sample of 100 men taken from Village A, 60 were found to be consuming alcohol. In another sample of 200 men taken from Village B, 100 were found to be consuming alcohol. Do the two villages differ significantly in respect to the proportion of men who consume alcohol?

Solution:

Let x 1 , x 2 denotes the number of men consuming alcohol from Village A and B resptly. Here x 1 = 60, n 1 = 100, x 2 = 100, n 2 = 200 sample proportion p 1 = (^) nx^11 = 10060 = 0. 6 , p 2 = 100200 = 0. 5

Problems

  1. In a random sample of 100 men taken from Village A, 60 were found to be consuming alcohol. In another sample of 200 men taken from Village B, 100 were found to be consuming alcohol. Do the two villages differ significantly in respect to the proportion of men who consume alcohol?

Solution:

Let x 1 , x 2 denotes the number of men consuming alcohol from Village A and B resptly. Here x 1 = 60, n 1 = 100, x 2 = 100, n 2 = 200 sample proportion p 1 = (^) nx^11 = 10060 = 0. 6 , p 2 = 100200 = 0. 5 1: H 0 : P 1 āˆ’ P 2 = 0 against H 1 : P 1 āˆ’ P 2 6 = 0 (Two tailed test) 2: Level of significance α = 0. 05

Problems

  1. In a random sample of 100 men taken from Village A, 60 were found to be consuming alcohol. In another sample of 200 men taken from Village B, 100 were found to be consuming alcohol. Do the two villages differ significantly in respect to the proportion of men who consume alcohol?

Solution:

Let x 1 , x 2 denotes the number of men consuming alcohol from Village A and B resptly. Here x 1 = 60, n 1 = 100, x 2 = 100, n 2 = 200 sample proportion p 1 = (^) nx^11 = 10060 = 0. 6 , p 2 = 100200 = 0. 5 1: H 0 : P 1 āˆ’ P 2 = 0 against H 1 : P 1 āˆ’ P 2 6 = 0 (Two tailed test) 2: Level of significance α = 0. 05 3: Test Statistic: Consider the conditions n 1 p 1 = 100 Ɨ 0 .6 = 60 > 5 , n 1 q 1 = 40 > 5 , n 2 p 2 = 100 > 5 , n 2 q 2 = 100 > 5

Problems

Solution contd:

Hence,

P = n 1 p 1 + n 2 p 2 n 1 + n 2

100 Ɨ 0 .6 + 200 Ɨ 0. 5

Z =

(p 1 āˆ’ p 2 ) āˆ’ (P 1 āˆ’ P 2 ) √ PQ( (^) n^11 + (^) n^12 )

0. 533 Ɨ 0 .467( 1001 + 2001 )

Note that Z follows standard normal distribution.

Problems

Solution contd:

4: Critical region: Since it is a two tailed test , The critical value is Z α 2 = 1.96. The critical region is |Z | ≄ 1 .96. That is, critical region is āˆ’ 3 < Z ≤ āˆ’ 1 .96 or 1. 96 ≤ Z < 3 Since āˆ’ 1. 96 ≤ Cal Z = 1. 6366 ≤ 1 .96, we accept H 0 (or fail to reject H 0 )