#set document(title: "14.10 Exercises", author: "OpenStax") #set page(width: 8.5in, height: auto, margin: 1in) #import "@preview/cetz:0.5.2" #set text(font: ("STIX Two Text", "Libertinus Serif", "New Computer Modern"), size: 10.5pt, lang: "en") #show math.equation: set text(font: ("STIX Two Math", "New Computer Modern Math")) #set par(justify: true, leading: 0.62em, spacing: 0.9em) #set enum(spacing: 1.1em) // room between list items so tall inline fractions don't collide #set list(spacing: 1.1em) #set table(stroke: 0.5pt + rgb("#c7ccd3")) #let BLUE = rgb("#183B6F") // brand navy — section bars + example/solution labels (white on navy 11.09:1) #let ORANGE = rgb("#A94509") // brand primary-700 — AA-safe deep orange for TEXT (5.93:1 on white; raw brand #F37021 is 2.94:1 and must never carry text) #let RED = rgb("#DC2626") // brand error-600 #let GREEN = rgb("#059669") // brand success-600 (decoration only; small green text uses green-text #007942) #show heading.where(level: 1): it => block(width: 100%, above: 0pt, below: 16pt, fill: gradient.linear(BLUE, rgb("#2C5AA0")), inset: (x: 14pt, y: 12pt), radius: 3pt, text(fill: white, weight: "bold", size: 19pt, it.body)) #show heading.where(level: 2): it => block(width: 100%, above: 18pt, below: 10pt, fill: BLUE, inset: (x: 10pt, y: 6pt), radius: 2pt, text(fill: white, weight: "bold", size: 12pt, it.body)) #show heading.where(level: 3): it => text(fill: ORANGE, weight: "bold", size: 12.5pt, it.body) #show heading.where(level: 4): it => text(fill: BLUE, weight: "bold", size: 10.5pt, it.body) #let examplebox(label, title, body) = block(width: 100%, breakable: true, fill: rgb("#EFF1F5"), stroke: 0.5pt + rgb("#CFDDF0"), radius: 4pt, inset: 10pt, above: 12pt, below: 12pt)[ #block(below: 6pt)[#box(fill: BLUE, inset: (x: 6pt, y: 2pt), radius: 2pt, text(fill: white, weight: "bold", size: 8.5pt, label)) #h(0.4em) #strong[#title]] #body] // rail = decorative left rule (raw brand token); labelcolor = AA-safe label text shade #let notebox(label, rail, labelcolor, tint, body) = block(width: 100%, breakable: true, fill: tint, stroke: (left: 3pt + rail), inset: (left: 10pt, rest: 8pt), radius: (right: 4pt), above: 11pt, below: 11pt)[ #text(fill: labelcolor, weight: "bold", size: 7.5pt, tracking: 0.5pt)[#upper(label)] #linebreak() #body] #let solutionbox(body) = block(above: 4pt, below: 8pt)[ #text(fill: BLUE, weight: "bold", size: 8.5pt)[Solution] #linebreak() #body] #let figph(msg) = block(width: 100%, height: 60pt, fill: rgb("#f6f7f9"), stroke: (paint: rgb("#c7ccd3"), dash: "dashed"), radius: 4pt, inset: 10pt)[ #align(center + horizon, text(fill: rgb("#889"), style: "italic", size: 9pt, msg))] // Standardize inlined figure sizes: measure the natural CeTZ canvas, then scale to a // consistent envelope (aspect-aware; see build_typst.py FIG_* constants). Unlike the // print preamble, dimensions are FLOORED: in an editor a user can trim a figure to a // degenerate 1-D shape (a bare line), and w/h or tw/w would then divide by zero. #let _STD_W = 3.5 #let _WIDE_W = 5.6 #let _MAX_H = 3.4 #let _ASPECT_WIDE = 2.2 #let _UPSCALE_MAX = 1.15 #let stdfig(body) = context { let m = measure(body) let w = calc.max(m.width / 1in, 0.01) let h = calc.max(m.height / 1in, 0.01) let tw = if w / h > _ASPECT_WIDE { _WIDE_W } else { _STD_W } let s = calc.min(tw / w, _MAX_H / h, _UPSCALE_MAX) align(center, box(scale(x: s * 100%, y: s * 100%, reflow: true, body))) } #show figure: set block(breakable: false) #set figure(gap: 8pt) #show figure.caption: set text(size: 8.5pt, fill: rgb("#555")) == 14.10#h(0.6em)Exercises #notebox("Note", rgb("#8a94a6"), rgb("#556666"), rgb("#f7f8fa"))[ #emph[Prerequisites] #link("https://onlinestatbook.com/2/regression/regression.html")[All material presented in the Regression chapter] ] Selected answers #linebreak() 1. What is the equation for a regression line? What does each term in the line refer to? (relevant section) 2. The formula for a regression equation based on a sample size of 25 observations is Y' = 2X + 9. (a) What would be the predicted score for a person scoring 6 on X? (b) If someone's predicted score was 14, what was this person's score on X? (relevant section) 3. What criterion is used for deciding which regression line fits best? (relevant section) 4. What does the standard error of the estimate measure? What is the formula for the standard error of the estimate? (relevant section) 5. (a) In a regression analysis, the sum of squares for the predicted scores is 100 and the sum of squares error is 200, what is R#super[2]? (b) In a different regression analysis, 40% of the variance was explained. The sum of squares total is 1000. What is the sum of squares of the predicted values? (relevant section) 6. For the X,Y data below, compute: (a) r and determine if it is significantly different from zero. #linebreak() (b) the slope of the regression line and test if it differs significantly from zero. #linebreak() (c) the 95% confidence interval for the slope. #linebreak() (relevant section) #figure(table( columns: 2, align: left, inset: 6pt, table.header([X], [Y]), [2], [5], [4], [6], [4], [7], [5], [11], [6], [12], )) #linebreak() 7. What assumptions are needed to calculate the various inferential statistics of linear regression? (relevant section) 8. The correlation between years of education and salary in a sample of 20 people from a certain company is .4. Is this correlation statistically significant at the .05 level? (relevant section) 9. A sample of X and Y scores is taken, and a regression line is used to predict Y from X. If SSY' = 300, SSE = 500, and N = 50, what is: (relevant section relevant section) (a) SSY? #linebreak() (b) the standard error of the estimate? #linebreak() (c) R#super[2]? 10. Using linear regression, find the predicted post-test score for someone with a score of 43 on the pre-test. (relevant section) #figure(table( columns: 2, align: left, inset: 6pt, table.header([Pre], [Post]), [59], [56], [52], [63], [44], [55], [51], [50], [42], [66], [42], [48], [41], [58], [45], [36], [27], [13], [63], [50], [54], [81], [44], [56], [50], [64], [47], [50], [55], [63], [49], [57], [45], [73], [57], [63], [46], [46], [60], [60], [65], [47], [64], [73], [50], [58], [74], [85], [59], [44], )) 11. The equation for a regression line predicting the number of hours of TV watched by children (Y) from the number of hours of TV watched by their parents (X) is Y' = 4 + 1.2X. The sample size is 12. #linebreak() (a) If the standard error of b is .4, is the slope statistically significant at the .05 level? (relevant section) #linebreak() (b) If the mean of X is 8, what is the mean of Y? (relevant section) 12. Based on the table below, compute the regression line that predicts Y from X. (relevant section) #figure(table( columns: 5, align: left, inset: 6pt, table.header([MX], [MY], [sX], [sY], [r]), [10], [12], [2.5], [3.0], [-0.6], )) 13. Does A or B have a larger standard error of the estimate? (relevant section) #figure(figph[Two scatter plots labeled A and B, each with the same rising regression line through a cloud of circles. In A the points lie in a tight band about the line; in B the same number of points scatter much more widely around it. The predictions in A are more accurate — A has the smaller standard error of the estimate.], alt: "Two scatter plots labeled A and B, each with the same rising regression line through a cloud of circles. In A the points lie in a tight band about the line; in B the same number of points scatter much more widely around it. The predictions in A are more accurate — A has the smaller standard error of the estimate.", caption: none) 14. True/false: If the slope of a simple linear regression line is statistically significant, then the correlation will also always be significant. (relevant section) 15. True/false: If the slope of the relationship between X and Y is larger for Population 1 than for Population 2, the correlation will necessarily be larger in Population 1 than in Population 2. Why or why not? (relevant section) 16. True/false: If the correlation is .8, then 40% of the variance is explained. (relevant section) 17. True/false: If the actual Y score was 31, but the predicted score was 28, then the error of prediction is 3. (relevant section) #linebreak() #linebreak() #strong[Questions from Case Studies: #linebreak() #linebreak()] #linebreak() The following question is from the #link("https://onlinestatbook.com/2/case_studies/angry_moods.html")[Angry Moods] (AM) case study. 18. (AM\#23) Find the regression line for predicting Anger-Out from Control-Out. (a) What is the slope? #linebreak() (b) What is the intercept? #linebreak() (c) Is the relationship at least approximately linear? #linebreak() (d) Test to see if the slope is significantly different from 0. #linebreak() (e) What is the standard error of the estimate? #linebreak() (relevant section, relevant section, relevant section) #linebreak() #linebreak() The following question is from the #link("https://onlinestatbook.com/2/case_studies/sat.html")[SAT and GPA] (SG) case study. 19. (SG\#3) Find the regression line for predicting the overall university GPA from the high school GPA. (a) What is the slope? #linebreak() (b) What is the y-intercept? #linebreak() (c) If someone had a 2.2 GPA in high school, what is the best estimate of his or her college GPA? #linebreak() (d) If someone had a 4.0 GPA in high school, what is the best estimate of his or her college GPA? #linebreak() (relevant section) #linebreak() #linebreak() The following questions are from the #link("https://onlinestatbook.com/2/case_studies/driving.html")[Driving] (D) case study. 20. (D\#5) What is the correlation between age and how often the person chooses to drive in inclement weather? Is this correlation statistically significant at the .01 level? Are older people more or less likely to report that they drive in inclement weather? (relevant section, relevant section) #linebreak() #linebreak() 21. (D\#8) What is the correlation between how often a person chooses to drive in inclement weather and the percentage of accidents the person believes occur in inclement weather? Is this correlation significantly different from 0? (relevant section, relevant section) 22. (D\#10) Use linear regression to predict how often someone rides public transportation in inclement weather from what percentage of accidents that person thinks occur in inclement weather. (Pubtran by Accident) (a) Create a scatter plot of this data and add a regression line. #linebreak() (b) What is the slope? #linebreak() (c) What is the intercept? #linebreak() (d) Is the relationship at least approximately linear? #linebreak() (e) Test if the slope is significantly different from 0. #linebreak() (f) Comment on possible assumption violations for the test of the slope. #linebreak() (g) What is the standard error of the estimate? #linebreak() (relevant section, relevant section, relevant section) Answers: 2) (a) 21 5) (a) .33 6) (b) b = 1.91 9) (a) 800 12) a = 19.2 18) (e) 3.45 19) (c) 2.6 20) r = .43 22) (b) .35