Presentation is loading. Please wait.

Presentation is loading. Please wait.

A medical researcher wishes to determine how the dosage (in mg) of a drug affects the heart rate of the patient. Find the correlation coefficient & interpret.

Similar presentations


Presentation on theme: "A medical researcher wishes to determine how the dosage (in mg) of a drug affects the heart rate of the patient. Find the correlation coefficient & interpret."β€” Presentation transcript:

1 A medical researcher wishes to determine how the dosage (in mg) of a drug affects the heart rate of the patient. Find the correlation coefficient & interpret it. Find & interpret the slope. Find & interpret the y-intercept. Give the least squares regression line. Dosage Heart rate 0.125 95 0.2 90 0.25 93 0.3 92 0.35 88 0.4 80 0.5 82

2 A medical researcher wishes to determine how the dosage (in mg) of a drug affects the heart rate of the patient. Find the correlation coefficient & interpret it. 𝒓= βˆ’πŸ“.πŸπŸ•πŸπŸπŸ—πŸ• πŸ” =βˆ’πŸŽ.πŸ–πŸ” Find & interpret the slope. 𝒃=𝒓 𝒔 π’š 𝒔 𝒙 = βˆ’πŸŽ.πŸ–πŸ” πŸ“.πŸ”πŸ“ 𝟎.πŸπŸπŸ” =βˆ’πŸ‘πŸ–.πŸ“πŸ” For every additional mg the heart rate decreases by bpm. Find & interpret the y-intercept. 𝒂= π’š βˆ’π’ƒ 𝒙 𝒂=πŸ–πŸ–.πŸ“πŸ•βˆ’ βˆ’πŸ‘πŸ–.πŸ“πŸ” .πŸ‘πŸŽπŸ’ 𝒂=𝟏𝟎𝟎.πŸπŸ— Write LSRL: 𝑯𝒆𝒂𝒓𝒕 𝑹𝒂𝒕𝒆 =𝟏𝟎𝟎.πŸπŸ—βˆ’πŸ‘πŸ–.πŸ“πŸ” π‘«π’π’”π’‚π’ˆπ’† Dosage Heart rate 0.125 95 0.2 90 0.25 93 0.3 92 0.35 88 0.4 80 0.5 82

3 Residuals Section 3.2B

4 Residuals Variation in the y values can be effectively explained when the residuals are small – close to the line. Remember a residual = observed – exp. π’“π’†π’”π’Šπ’…π’–π’‚π’=π’šβˆ’ π’š

5 The equation to explain the relationship between drug dosage and heart rate is shown below. 𝑯𝒆𝒂𝒓𝒕 𝑹𝒂𝒕𝒆 =𝟏𝟎𝟎.πŸπŸ—βˆ’πŸ‘πŸ–.πŸ“πŸ” π‘«π’π’”π’‚π’ˆπ’† Dosage Heart rate 0.125 95 0.2 90 0.25 93 0.3 92 0.35 88 0.4 80 0.5 82 Find the predicted value for a dosage of 0.4 mg. Find the residual for (0.4, 80).

6 The equation to explain the relationship between drug dosage and heart rate is shown below. Find the residuals for each value. 𝑯𝒆𝒂𝒓𝒕 𝑹𝒂𝒕𝒆 =𝟏𝟎𝟎.πŸπŸ—βˆ’πŸ‘πŸ–.πŸ“πŸ” π‘«π’π’”π’‚π’ˆπ’† Dosage Heart rate 𝑦 π‘¦βˆ’ 𝑦 0.125 95 0.2 90 0.25 93 0.3 92 0.35 88 0.4 80 0.5 82 * The sum of the residuals is always zero!

7 Residual Plot It is a scatterplot of the residuals vs the explanatory variable. They help us to assess how well a regression line fits the data. The residual plot should show no obvious pattern The residuals should be relatively small.

8 The equation to explain the relationship between drug dosage and heart rate is shown below. Graph the residual Plot. Is the linear model appropriate? 𝑯𝒆𝒂𝒓𝒕 𝑹𝒂𝒕𝒆 =𝟏𝟎𝟎.πŸπŸ—βˆ’πŸ‘πŸ–.πŸ“πŸ” π‘«π’π’”π’‚π’ˆπ’† Dosage Heart rate 𝑦 π‘¦βˆ’ 𝑦 0.125 95 88.723 6.2775 0.2 90 88.658 1.342 0.25 93 88.615 4.385 0.3 92 88.572 3.428 0.35 88 88.529 -0.529 0.4 80 88.486 -8.486 0.5 82 88.4 -6.4 * The sum of the residuals is always zero!

9 Residual Plot

10 Height vs Shoe size – residual plot
Good residual plot – show relatively no pattern.

11 Good or Bad

12 Standard Deviation of the Residuals
It represents the approximate size of a β€œtypical” or β€œaverage prediction error (residual). Formula: 𝑠 𝑒 = π‘Ÿπ‘’π‘ π‘–π‘‘π‘’π‘Žπ‘™π‘  2 π‘›βˆ’2 𝑠 𝑒 = π‘¦βˆ’ 𝑦 π‘›βˆ’2

13 The equation to explain the relationship between drug dosage and heart rate is shown below. Find the standard deviation of the residuals. 𝑯𝒆𝒂𝒓𝒕 𝑹𝒂𝒕𝒆 =𝟏𝟎𝟎.πŸπŸ—βˆ’πŸ‘πŸ–.πŸ“πŸ” π‘«π’π’”π’‚π’ˆπ’† Dosage Heart rate 𝑦 π‘¦βˆ’ 𝑦 π‘¦βˆ’ 𝑦 2 0.125 95 88.723 6.2775 0.2 90 88.658 1.342 0.25 93 88.615 4.385 0.3 92 88.572 3.428 0.35 88 88.529 -0.529 0.4 80 88.486 -8.486 0.5 82 88.4 -6.4

14 Homework *Page 191 (43, 45, 55, 60, 62)


Download ppt "A medical researcher wishes to determine how the dosage (in mg) of a drug affects the heart rate of the patient. Find the correlation coefficient & interpret."

Similar presentations


Ads by Google