a) The independent variable will be time played and points scored is the dependent variable, as the time played will affect how many points are scored - not the other way around.
b) The scatterplot will look as follows:
c) The points seem to be increasing linearly in a positive direction. Dots are not very close to each other so the relationship is moderate.
d) By first plotting how the best-fit line would look like:
We can see that the line passes through points (20,11) and (25,20). Those points are used to calculate the equation of the line, first, by finding the gradient:
\[ y - y_1 = m(x - x_1) \]
\[ m = \dfrac{20-11}{25-20} = \dfrac{9}{5} \]
Then, by using the point (20,11), the equation of the line was found:
\[ y - y_1 = m(x - x_1) \]
\[ y - 11 = \dfrac{9}{5}(x-20) = \dfrac{9}{5}x - 25 \]
e) By plugging the value to the function obtained in part (d) we get that:
\[ y = \dfrac{9}{5} * 16 - 25 = 3.8 \]
CloseSpearman's correlation coefficient should be used when one is sure of the presence of outliers, as it first ranks all data points. Because it doesn't deal with raw numbers, but with ranks, the coefficient itself won't be affected by an abnormally large all small value of the data point, as the rank will remain the same.
Closea) Pearson's correlation coefficient can be easily calculated by inputting the given data into the GDC. Then, we can see that the value of \( r = 0.938 \)
b) Spearman's correlation coefficient can be calculated after first ranking the data points. Then, by inputting the data into GDC we get that \( r = 0.847 \)
Experience (months) | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
---|---|---|---|---|---|---|---|
Weekly salary ($) | 1.5 | 3 | 1.5 | 4 | 5 | 6 | 7 |
c) The regression equation after inputting data into GDC is equal to \( y = 37.897x + 169.122 \)
d) The value can be predicted by replacing \( x \) with 25. Then our solution is equal to \( y = 37.897 \times 25 + 169.122 = 1116.547 \)
e) The formula for the percentage error is the following:
\[\text{Percentage Error} = \left| \frac{V_a - V_e}{V_e} \right| \times 100\% \]
So by plugging in the values we get:
\[\text{Percentage Error} = \left| \frac{950 - 1116.547}{1116.547} \right| \times 100\% = 14.916\% \]
CloseLarge values of Y compared to X are not a problem for a linear regression. That would simply mean that Y will change relatively more than X, which can be reflected in the coefficient.
On the other hand, extrapolation can be problematic, as that means that we are trying to make observations outside of our provided dataset, which don't necessarily have to hold. Low correlation can also be a problematic issue, since linear models can be used only when sufficiently high correlation can be found. Finally, predicitng X from Y can also read to wrong results, as the process needed to obtain a regression like that will lead to different results than a regression predicitng Y from X. Additionally, logically it also very often doesn't make sense to turn the variables around.
Closea) For Pearson's correlation, plugging in the values into the GDC results in \( r = -0.77 \).
b) To calculate the mean of \( x \), we simply sum up all observations and divide by 7, as there are 7 observations in total. As a result, we get \( \frac{995}{7} = 142.12 \). By doing the same thing with \( y \), we get the mean of \( y \) equal to 20.86.
c) For this task, first, the regression equation needs to be calculated. By plugging the values into the GDC we get that \( y = -8.43x + 317.93 \). It needs to be remembered that temperature is our \( x \) variable, and distance covered is \( y \) (the dependent variable), as the temperature outside will affect the distance travelled in a car.
Then, we know that the temperature outside was 21 degrees, meaning that the estimated distance travelled by car can be calculated using the regression equation and it is equal to: \( -8.43 \times 21 + 317.93 = 140.9 \). Finally, we are also told that Jack covered 15km on foot, resulting in the total distance of \( 140.9 + 15 = 155.9 \).
d) Applying the formula for the percentage error:
\[\text{Percentage Error} = \left| \frac{V_a - V_e}{V_e} \right| \times 100\% \]
We get that:
\[\text{Percentage Error} = \left| \frac{175 - 155.9}{155.9} \right| \times 100\% = 12.25\% \]
Closea) After inputting the values into the GDC the obtained correlation coefficient is equal to \( r = 0.90 \)
b) From the GDC it can be found that the regression equation is equal to \( y = 7.40x + 1237.85 \)
c) The value of coefficient \( a \) means that an additional week of studying leads to the increase in score by approximately 7.4 points.
d) By plugging 40 as the number of weeks into the regression equation, we get:
\[ y = 7.40 * 40 + 1237.85 \]
\[ y = 1533.85 \]
e) No, predictions like that should not be taken into consideration, as the sample used to create the regression had the minimum value of 22 for the number of weeks, so this would be extrapolation.
Closea) By inputting the values into the GDC we get that the correlation coefficient is equal to \( r = 0.94 \).
b) From the GDC it can be found that the regression equation is equal to \( y = 0.20x + 8.27 \).
c) By flipping the independent and dependent variables, we get that the regression equation is \( x = 4.33y -32.50 \).
d) We are trying to predict the age, so the regression equation from part (c) should be used:
\[ x = 4.33 * 13.7 - 32.50 \]
\[ x = 26.82 \]
Closea) (i) \( \overline{x} = 699.11 \ ($) \)
a) (ii) \( \overline{y} = 3116.43 \ ($) \)
b) From the GDC we can find that \( r = 0.96 \).
c)
Advertising money spent ($) | 520 | 511 | 356 | 679 | 823 | 765 | 1100 |
---|---|---|---|---|---|---|---|
Sales revenue ($) | 2310 | 2600 | 2246 | 3129 | 3840 | 3561 | 4129 |
Advertising money spent ($) | 3 | 2 | 1 | 4 | 6 | 5 | 7 |
Sales revenue ($) | 2 | 3 | 1 | 4 | 6 | 5 | 7 |
\[ r_s = 0.96 \]
d) In the GDC we can find that \( y = 2.93x + 1125.32 \).
e) The answer to this question can be found in the value for the gradient, as each additional dollar spent on advertising will lead to a 2.93 dollar increase in sales revenue.
f) To find it, let's plug this point into the regression equation:
\[ y = 2.93 * 850 + 1125.32 \]
\[ y = 3615.82 \]
Thus, we have shown that this point indeed lies on this regression equation.
g)
\[ y = 2.93 * 930 + 1125.32 \]
\[ y = 3850.22 \]
Closea) To find the two regression equations, the respective values need to be plugged into GDC. Then, we get that for boys the regression equation is: \( y = 3.10x + 59.67 \), and for girls it is: \( y = 5.23x + 47.31 \)
b) To find the answer to this part the x-coefficients need to be analyzed for both regressions. For boys, the x-coefficient of 3.10 means that an additional hour of studying leads to an estimated 3.10 increase in the exam score. For girls, the x-coefficient of 5.23 means that an additional hour of studying on average increases their score by 5.23. So, girls benefit more from an additional hour compared to boys.
c) To find the intersection of those two equations we have to equate them. Thus, we get the following system of two equations:
\[ (1) \quad y = 3.10x + 59.67 \]
\[ (2) \quad y = 5.23x + 47.31 \]
Then, by equating them:
\[ 3.10x + 59.67 = 5.23x + 47.31 \]
\[ 12.36 = 2.13x \]
\[ x = 5.80 \]
\[ y = 5.23 * 5.80 + 47.31 = 77.64 \]
So the intersection point is at \( (5.80, 77.64) \).
Closea) Taking the natural logs, we get:
Lap | Heart rate | Natural log of heart rate |
---|---|---|
1 | 80 | 4.38 |
2 | 85 | 4.44 |
3 | 95 | 4.55 |
4 | 100 | 4.61 |
5 | 120 | 4.79 |
6 | 140 | 4.94 |
7 | 140 | 4.94 |
8 | 140 | 4.94 |
9 | 140 | 4.94 |
10 | 140 | 4.94 |
Plotting the lap and natural log of heart rate values in the GDC, we find the equation: \[ \ln{(\text{Heart rate})} = 0.071(\text{laps}) + 4.36 \]
b) We can raise both sides to the power of \(e\):
\[\text{Heart rate} = e^{0.071 \cdot \text{laps} + 4.36} \]
\[\text{Heart rate} = 78.26 \cdot (1.074)^{\text{laps}} \]
c) For 20 laps:
\[ \text{Heart rate} = 78.26 \cdot 1.074^{20} = 326 \]
This is an extrapolated value, so it is likely inaccurate, and Bob is still likely fine.
Closea) The range is calculated as the difference between the maximum and minimum values:
\[ 55 - 20 = 35 \]
b) (i) Using the GDC, we get the correlation coefficient:
\[ r \approx 0.99 \]
b) (ii) Since the \( r \)-value is very close to 1 and positive, the relationship is very strong and positive.
c) The regression equation is:
\[ y = 70.65x - 86.04 \]
d) For \( x = 1.78 \), we use the regression equation to estimate the number of pushups:
\[ y = 70.65(1.78) - 86.04 \approx 39 \]
(i) The percentage error is calculated as:
\[ \text{Error} = \left|\frac{\text{Expected value} - \text{Actual value}}{\text{Actual value}}\right| \times 100 = \left|\frac{39 - 45}{45}\right| \times 100 = 13.3\% \]
Closea)
b) Push ups: 16.25, Sit ups: 70
c) It is very important to make the line of best fit, passes through the average of the \( x \) and \( y \) values, which is labelled as the green point in the solutions.
a) The scatter plot of the data is shown below:
b) (i) The last data point clearly doesnt seem to follow the upwards sloping pattern of the other data points as it is a bit lower. Could be because people have travelled away from christmas holiday.
b) (ii) The scatter plot suggests that the data follows an exponential form.
c) Taking the natural log of each income value, excluding the outlier, we get:
Month | Natural log of Income |
---|---|
2 | 4.59 |
4 | 6.04 |
6 | 6.75 |
8 | 7.31 |
10 | 7.86 |
Using the GDC, the regression equation is: \( \ln{(Income)} = 0.39 \cdot (months) + 4.17 \)
CloseMinutes played | 25 | 18 | 29 | 31 | 35 |
---|---|---|---|---|---|
Points scored | 20 | 13 | 21 | 36 | 30 |
Push-ups | Sit-ups |
---|---|
1 | 5 |
3 | 20 |
5 | 30 |
8 | 35 |
30 | 120 |
56 | 200 |
Experience (months) | 10 | 12 | 18 | 15 | 21 | 24 | 35 |
---|---|---|---|---|---|---|---|
Weekly salary ($) | 600 | 650 | 600 | 800 | 950 | 1200 | 1500 |
Distance (km) | 220 | 200 | 140 | 145 | 100 | 90 | 100 |
---|---|---|---|---|---|---|---|
Temperature (C) | 15 | 19 | 22 | 16 | 21 | 25 | 28 |
Person | Height in meters | Number of push-ups |
---|---|---|
1 | 1.50 | 20 |
2 | 1.89 | 48 |
3 | 1.75 | 35 |
4 | 1.64 | 30 |
5 | 1.87 | 44 |
6 | 1.96 | 55 |
7 | 1.51 | 22 |
8 | 1.60 | 27 |
Studying time (weeks) | 22 | 24 | 23 | 23 | 35 | 37 | 42 |
---|---|---|---|---|---|---|---|
Score | 1400 | 1430 | 1450 | 1350 | 1500 | 1520 | 1540 |
Advertising money spent ($) | 520 | 511 | 356 | 679 | 823 | 765 | 1100 |
---|---|---|---|---|---|---|---|
Sales revenue ($) | 2310 | 2600 | 2246 | 3129 | 3840 | 3561 | 4129 |
Advertising money spent ($) | |||||||
Sales revenue ($) |
Age (years) | 18 | 21 | 19 | 25 | 33 | 41 | 28 | 38 |
---|---|---|---|---|---|---|---|---|
Time (seconds) | 11.3 | 12.1 | 12.0 | 14.5 | 15.7 | 16.1 | 14.3 | 15.6 |
Studying time (boys) | 2 | 1 | 3 | 5 | 8 | 6 | 10 |
---|---|---|---|---|---|---|---|
Score (boys) | 60 | 66 | 72 | 80 | 85 | 71 | 92 |
Studying time (girls) | 3 | 3 | 4 | 2 | 5 | 7 | 6 |
Score (girls) | 65 | 55 | 70 | 60 | 76 | 81 | 81 |
Lap | Heart Rate |
---|---|
1 | 80 |
2 | 85 |
3 | 95 |
4 | 100 |
5 | 120 |
6 | 140 |
7 | 140 |
8 | 140 |
9 | 140 |
10 | 140 |
Month | Income |
---|---|
2 | 99 |
4 | 420 |
6 | 850 |
8 | 1500 |
10 | 2600 |
12 | 3000 |