A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Work Shown continues down the page | Given Data | alpha = | 0.05 | Work Shown continues down the page | |||||||||||||||||||||
2 | 3 or More Bedrooms | |||||||||||||||||||||||||
3 | House Price | Yes | No | Rounding Precision = | 6 | |||||||||||||||||||||
4 | Less than $300K | 344 | 499 | |||||||||||||||||||||||
5 | $300-450K | 190 | 334 | |||||||||||||||||||||||
6 | $450-600K | 133 | 293 | |||||||||||||||||||||||
7 | ||||||||||||||||||||||||||
8 | Compute Row and Column Totals | |||||||||||||||||||||||||
9 | 3 or More Bedrooms | |||||||||||||||||||||||||
10 | House Price | Yes | No | Total | ||||||||||||||||||||||
11 | Less than $300K | 344 | 499 | 843 | ||||||||||||||||||||||
12 | $300-450K | 190 | 334 | 524 | ||||||||||||||||||||||
13 | $450-600K | 133 | 293 | 426 | ||||||||||||||||||||||
14 | Total | 667 | 1126 | 1793 | ||||||||||||||||||||||
15 | Use the command SUM to add values quickly | |||||||||||||||||||||||||
16 | ||||||||||||||||||||||||||
17 | Work Shown continues down the page | Compute Expected Values for each cell | Work Shown continues down the page | |||||||||||||||||||||||
18 | ||||||||||||||||||||||||||
19 | For example, we expect the value 313.597881 in row1,column1 since: | |||||||||||||||||||||||||
20 | E = (rowTotal*columnTotal)/N | |||||||||||||||||||||||||
21 | E = (843*667)/1793 | |||||||||||||||||||||||||
22 | E = 313.59788064696 | |||||||||||||||||||||||||
23 | E = 313.597881 | |||||||||||||||||||||||||
24 | ||||||||||||||||||||||||||
25 | 3 or More Bedrooms | |||||||||||||||||||||||||
26 | House Price | Yes | No | |||||||||||||||||||||||
27 | Less than $300K | 313.597881 | 529.402119 | |||||||||||||||||||||||
28 | $300-450K | 194.929169 | 329.070831 | |||||||||||||||||||||||
29 | Work Shown continues down the page | $450-600K | 158.47295 | 267.52705 | Work Shown continues down the page | |||||||||||||||||||||
30 | ||||||||||||||||||||||||||
31 | Compute [ (Observed-Expected)^2 ]/[ expected ] | |||||||||||||||||||||||||
32 | Example: ((O-E)^2)/E=((344-313.597881)^2)/313.597881 =2.94737 for row1,column1 | |||||||||||||||||||||||||
33 | 3 or More Bedrooms | |||||||||||||||||||||||||
34 | House Price | Yes | No | |||||||||||||||||||||||
35 | Less than $300K | 2.94737 | 1.745911 | |||||||||||||||||||||||
36 | $300-450K | 0.124644 | 0.073834 | |||||||||||||||||||||||
37 | Work Shown continues down the page | $450-600K | 4.094523 | 2.425441 | Work Shown continues down the page | |||||||||||||||||||||
38 | ||||||||||||||||||||||||||
39 | r = 3 rows, c = 2 columns | |||||||||||||||||||||||||
40 | degrees of freedom = df = (r-1)*(c-1) = (3-1)*(2-1) = 2 | |||||||||||||||||||||||||
41 | ChiSquare Test Statistic = | 11.411723 | which is the sum of all the items in the table above | |||||||||||||||||||||||
42 | ChiSquare Critical Value | 5.991 | by using the function CHIINV; or use ChiSquare table | |||||||||||||||||||||||
43 | Test statistic 11.411723 is greater than the critival value 5.991 | |||||||||||||||||||||||||
44 | Are we in the rejection region? | Yes | ||||||||||||||||||||||||
45 | Decision: | Reject the null | ||||||||||||||||||||||||
46 | ||||||||||||||||||||||||||
47 | P-value | 0.003326 | Use the command CHIDIST | |||||||||||||||||||||||
48 | P-value 0.003326 is less than alpha = 0.05 | |||||||||||||||||||||||||
49 | End of Page | Decision: | Reject the null | End of Page | ||||||||||||||||||||||
50 | ||||||||||||||||||||||||||
51 | ||||||||||||||||||||||||||
52 | ||||||||||||||||||||||||||
53 | ||||||||||||||||||||||||||
54 | ||||||||||||||||||||||||||
55 | ||||||||||||||||||||||||||
56 | ||||||||||||||||||||||||||
57 | ||||||||||||||||||||||||||
58 | ||||||||||||||||||||||||||
59 | ||||||||||||||||||||||||||
60 | ||||||||||||||||||||||||||
61 | ||||||||||||||||||||||||||
62 | ||||||||||||||||||||||||||
63 | ||||||||||||||||||||||||||
64 | ||||||||||||||||||||||||||
65 | ||||||||||||||||||||||||||
66 | ||||||||||||||||||||||||||
67 | ||||||||||||||||||||||||||
68 | ||||||||||||||||||||||||||
69 | ||||||||||||||||||||||||||
70 | ||||||||||||||||||||||||||
71 | ||||||||||||||||||||||||||
72 | ||||||||||||||||||||||||||
73 | ||||||||||||||||||||||||||
74 | ||||||||||||||||||||||||||
75 | ||||||||||||||||||||||||||
76 | ||||||||||||||||||||||||||
77 | ||||||||||||||||||||||||||
78 | ||||||||||||||||||||||||||
79 | ||||||||||||||||||||||||||
80 | ||||||||||||||||||||||||||
81 | ||||||||||||||||||||||||||
82 | ||||||||||||||||||||||||||
83 | ||||||||||||||||||||||||||
84 | ||||||||||||||||||||||||||
85 | ||||||||||||||||||||||||||
86 | ||||||||||||||||||||||||||
87 | ||||||||||||||||||||||||||
88 | ||||||||||||||||||||||||||
89 | ||||||||||||||||||||||||||
90 | ||||||||||||||||||||||||||
91 | ||||||||||||||||||||||||||
92 | ||||||||||||||||||||||||||
93 | ||||||||||||||||||||||||||
94 | ||||||||||||||||||||||||||
95 | ||||||||||||||||||||||||||
96 | ||||||||||||||||||||||||||
97 | ||||||||||||||||||||||||||
98 | ||||||||||||||||||||||||||
99 | ||||||||||||||||||||||||||
100 |