Sei sulla pagina 1di 34

Statistical Inference

Test of independence
Test of goodness of fit

Dr. Akhter Raza


razasyed717@msn.com
Political Party & Class Level

Consider data on political party affiliation and on class


level for the students in Professor Weiss’s introductory
statistics course, as shown in Table 13.7. These are
bivariate data from the two variables “political party
affiliation” and “class level.” Group these bivariate
data into a contingency table.
Political Party & Class Level
Political Party & Class Level
Political Party & Class Level
Chi-Square Test of Independence
Test of Goodness of Fit

Testing whether observed frequency distribution


follows an specific probability model
Chi-Square Test of Independence
Assignment:
1. A die was thrown 60 times and the following
frequency distribution was observed

Face 1 2 3 4 5 6
Frequency 15 6 4 7 11 17
2. A company routinely purchases a certain type of
bolts. The purchasing department of the company
has been instructed to spread the purchase order
among suppliers A, B, C, and D in the ratio of
2:2:1:1. As a check, 24 purchase order are
randomly selected and suppliers A, B, C, D have
received 13, 4, 4, 3 order respectively. Does this
indicate that the instructions are being followed at
5 % level of significance
3.
4. Three cards are drawn from an ordinary deck of
playing cards, with replacement, and the number Y of
spades is recorded. After repeating the experiment 64
times, the following outcomes were recorded:

Y 0 1 2 3
f 21 31 12 0

Test the hypothesis of 0.01 level of significance that the


recorded data may be fitted by the binomial distribution
b(y;3,0.25), y = 0,1,2,3.
5. Three marbles are selected from an urn containing 5
red marbles and 3 green marbles. After recording the
number X of red marbles, the marbles are replaced in the
urn and the experiment repeated 112 times. The results
obtained are as follows:

x 0 1 2 3
f 1 31 55 25

Test the hypothesis at the 0.05 level of significance that


the recorded data may be fitted by the Hyper geometric
distribution h(x; 8,3, 5), x = 0,1, 2, 3.
6. A coin is thrown until a head occurs and the number X
of tosses recorded. After repeating the experiment 256
times, we obtained the following results:

x 1 2 3 4 5 6 7 8
f 136 60 34 12 9 1 3 1

Test the hypothesis at, the 0.05 level of significance that


the observed distribution of X may be fitted by the
geometric distribution g(x; 1/2), x = 1,2,3, …, 8
7.
8.
Questions?

Potrebbero piacerti anche