Data Analysis: Practice Problems and Methods
Describe data by a center (mean, median) and a spread (range, interquartile range, variance, standard deviation). The correlation coefficient measures how two variables move together.
Basic, Standard, Advanced: Grade 10 · Term 3
Math problem generator
Averages, quartiles and box plots
The median is the middle value of the sorted data. Split the data at the median into a lower and an upper half (leaving out the median when the count is odd); the median of the lower half is the first quartile and that of the upper half the third quartile .
The interquartile range is . A box plot shows the five values: minimum, , median, and maximum.
Variance and standard deviation
The variance is the mean of the squared deviations, or equivalently "mean of squares minus square of the mean". If , then , and .
For the variance of two groups combined, find each group's mean of squares (variance plus mean squared), combine them, and subtract the square of the overall mean.
Covariance and correlation
The closer is to 1, the stronger the positive correlation; the closer to , the stronger the negative correlation. Under , , the covariance is multiplied by and the correlation coefficient changes only by the sign of .
In hypothesis testing, if the probability of the observed result under a hypothesis is below a chosen level (for example 5%), we conclude that the hypothesis was wrong.
Worked examples
The box plot shows the scores (out of 100) of a class on a math test. Find the range and the interquartile range.
- (1)Range
- (2)Interquartile range
Hint
The ends of the whiskers are the minimum and maximum; the ends of the box are and .
Answer
- (1)
- (2)
Solution
Reading the plot,
Hence
Choose the value closest to the correlation coefficient of the two variables in the scatter plot.
- A
- B
- C
- D
- E
Hint
An upward trend means positive correlation and a downward trend negative. The closer the points are to a line, the closer is to 1.
Answer
Solution
From the pattern of points, the correlation coefficient is about (actual value about ).
Variables and have standard deviations and and correlation coefficient . Let and . Find the covariance and the correlation coefficient of and .
- (1)Covariance
- (2)Correlation coefficient
Hint
If and , then , and the correlation coefficient changes only by the sign of .
Answer
- (1)
- (2)
Solution
The original covariance is
After the transformation,
The correlation coefficient is
Practice problems
Find the mean, variance and standard deviation of the data.
- (1)Mean
- (2)Variance
- (3)Standard deviation
Hint
The variance is the mean of the squared deviations; the standard deviation is its positive square root.
Answer
- (1)
- (2)
- (3)
Solution
The mean is
The deviations are
The variance is the mean of the squared deviations:
The standard deviation is
The table shows the scores and of 5 students on two tests. Find the covariance and the correlation coefficient of and .
- (1)Covariance
- (2)Correlation coefficient
Hint
The covariance is the mean of the products of deviations; the correlation coefficient is .
Answer
- (1)
- (2)
Solution
The means are and . The deviations are
The standard deviations are
The covariance and correlation coefficient are
Class A (40 students) and class B (20 students) took a test. Class A had mean 61 and variance 25; class B had mean 70 and variance 64. Find the mean and variance of all 60 students.
- (1)Mean
- (2)Variance
Hint
For each class, mean of squares variance mean; combine these to get the overall mean of squares.
Answer
- (1)
- (2)
Solution
The overall mean is
The means of the squares are
Subtracting the square of the overall mean from the overall mean of squares,