Professional Documents
Culture Documents
Uncertainties and Chi-Squared Explained 1
Uncertainties and Chi-Squared Explained 1
Uncertainties and Chi-Squared Explained 1
Adding and Subtracting: when adding and subtracting values that have an uncertainty, you add the
absolute uncertainties
o note: all uncertainties must be in the same units
Multiplying and Dividing: when multiplying or dividing values that have an uncertainty, you must first
find the relative uncertainty for each value, and second add the relative uncertainties together, third
convert the new relative uncertainty back to an absolute uncertainty for your processed value.
Worked Examples:
Adding:
(6.5 ± 0.5) m + (3.3 ± 0.1) m
= (6.5+ 3.3) ± (0.5+0.1) m
=(9.8 ± 0.6) m
Subtracting:
(6.5 ± 0.5) m - (3.3 ± 0.1) m
= (6.5- 3.3) ± (0.5+0.1) m
=(3.2 ± 0.6) m
3. Calculate the uncertainty for flow rate? (Show all your work for one example)
4. Calculate the uncertainty for average flow rate?(show all your work for one example)
Chi Square Goodness of Fit Test
Purpose: to determine if the data you have gathered (sample data) is a good fit with what would be expected of the
data (expected distribution).
For example, in a deck of cards, if I were to draw 20 cards I would expect that I would draw 5 of each suit
(25% chance) however I may draw 6 hearts, 4 diamonds, 5 spades and 5 clubs. The Chi Square goodness of fit test
will statistically tell me if this is ‘within reason’.
The Chi Square goodness of fit tests starts with a null and alternative hypothesis, at the end of the test we will either
accept or reject the null hypothesis.
Observed 6 4 5 5
Expected 5 5 5 5
O-E 1 -1 0 0
(O-E)2 1 1 0 0
Therefore x2=⅖
We then compare our calculated x2 value to the critical x2 value at a specified degrees of freedom (degrees of
freedom are found looking at the number of categories and subtracting 1 → 4 categories -1 = 3 )
The critical value is found using the chi square distribution table
We will always work with a significance level of 0.05 (which means we can be 95% confident that our results are
not by chance).
If calculated x2 is less than the critical x2 → the data is a good fit to our model
If calculated x2 is greater than the critical x2 → the data is not a good fit to our model
In this case the critical x2 is 7.815 and the calculated x2 value is ⅖. Therefore the data is a good fit and we accept the
null hypothesis.
Apply your skills
We will look to see if the data the grade 11 students collected for the flow rate of a burette lab is a good fit.
Null Hypothesis: ______________________________________________________________________
Observed
O-E
(O-E)2
(O-E)2/E
Conclusion: How does your calculated value compare and do you accept or reject the null hypothesis?
Note: Always work with absolute values - therefore the expected % of people surveyed need to be converted into an
absolute number. I.e. if I surveyed 100 people, then I would say the expected values would be 1,15,68,15 and 1
respectively.
Also you will need to change the titles to reflect what what your categories will be based on your data.
The statistic is calculated in the same way as the goodness of fit test x2= Σ[(O-E)2/E] however you will approach
calculating the expected values and degree of freedom differently.
Worked example:
In a school, students in grades 9 to 12 were asked to select their preferred drink. The choices were milk, juice and
water. The data obtained are organized in the following table.
Observed values:
Milk Juice Water Row Total
Grade 9 25 34 15 74
Grade 10 31 30 13 74
Grade 11 18 35 17 70
Grade 12 9 36 26 71
Expected Values:
Grade 9 (21.25-25)221.25
=0.66 0.01 0.55
Critical value (from the Chi Square Distribution Chart)at 6 degrees of freedom = 12.592
Therefore, we reject the null hypothesis since 18.96>12.592 and conclude that drink preference and age are not
independent.
We will look to see if the number of types of science courses taken by the grade 11 students is independent of their
results
Observed values:
Below average Average ±1 uncertainty Above average Row Total
1 science SL
1 science HL
2 sciences SL/HL
2 science HL/HL
Column Total
Expected Values:
1 science SL
1 science HL
2 sciences SL/HL
2 science HL/HL
1 science SL
1 science HL
2 sciences SL/HL
2 science HL/HL
Conclusion: