{"id":5534,"date":"2022-09-21T14:09:23","date_gmt":"2022-09-21T14:09:23","guid":{"rendered":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/?post_type=chapter&#038;p=5534"},"modified":"2022-09-21T14:09:23","modified_gmt":"2022-09-21T14:09:23","slug":"16c-preview","status":"publish","type":"chapter","link":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/chapter\/16c-preview\/","title":{"raw":"16C Preview","rendered":"16C Preview"},"content":{"raw":"<div id=\"bp-page-1\" class=\"page\" data-page-number=\"1\" data-loaded=\"true\">\r\n<div class=\"textLayer\">Preparing for the next classIn the next class, you will need to use technology to calculate predictions from a regression line, confidence intervals for the mean response, and prediction intervals for individuals. You will also need to identify the appropriate type of interval based on a given situation and compare confidence and prediction intervals. In the next in-class activity, you will analyze predictions from the linear regression equation. In practice, it is not sufficient to provide a single point estimate; therefore, you will also learn how to calculate intervals from the predicted values as well. This concept is similar to the intervals calculated for the mean in previous in-class activities.This assignment will help you review the skills you\u2019ll need for the in-class activity and introduce intervals for two types of predictions in linear regression.How much do we expect a penguin to weigh based on the length of its flipper? To answer this question, we will look at the \u201cPenguins\u201ddataset.[footnote]Horst,A. M., Hill,A. P., &amp; Gorman,K. B.(2020). palmerpenguins. palmerpenguins 0.1.0. https:\/\/allisonhorst.github.io\/palmerpenguins\/[\/footnote] It contains characteristics fora sample of 342 penguins observed near Palmer Station, Antarctica. We will focus on the following two variables:<\/div>\r\n<div class=\"textLayer\">\u2022flipper_length_mm: Flipperlength in millimeters<\/div>\r\n<div class=\"textLayer\">\u2022body_mass_g: Body mass(weight)in grams<\/div>\r\n<div class=\"textLayer\">\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Question 1<\/h3>\r\n<div class=\"textLayer\">1) Before taking flipper length into account, let\u2019s start by looking at the mean body mass for penguins. The 90% confidence interval for the mean body mass is (4130, 4273). Select the correct interpretation of the interval.<\/div>\r\n<div class=\"textLayer\">a) We are 90% confident that the mean body mass of penguins is between 4,130 and 4,273 grams.<\/div>\r\n<div class=\"textLayer\">b) There is a 90% probability that the mean body mass of penguins is between 4,130 and 4,273 grams.<\/div>\r\n<div class=\"textLayer\">c) There is a 90% probability that the body mass of a penguin is between 4,130 and 4,273 grams.<\/div>\r\n<div class=\"textLayer\">d) Based on this interval,90% of penguins have a body mass between 4,130 and 4,273 grams.<\/div>\r\n<\/div>\r\n<\/div>\r\n<div class=\"ba-Layer ba-Layer--highlight\" data-resin-fileid=\"910626357755\" data-resin-iscurrent=\"true\" data-resin-feature=\"annotations\" data-testid=\"ba-Layer--highlight\"><\/div>\r\n<\/div>\r\n<div id=\"bp-page-2\" class=\"page\" data-page-number=\"2\" data-loaded=\"true\">\r\n<div class=\"textLayer\">\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Question 2<\/h3>\r\n<div class=\"textLayer\">2) Now let\u2019s take flipper length into account so we can get an estimate of the body mass of a penguin based on its flipper length. Go to the DCMPLinear Regression tool at https:\/\/dcmathpathways.shinyapps.io\/LinearRegression\/ to calculate the equation of the line of best fit.<\/div>\r\n<div class=\"textLayer\">\u2022Access spreadsheet DCMP_STAT_16C_Penguins.<\/div>\r\n<div class=\"textLayer\">\u2022Under \u201cEnter Data,\u201dselect \u201cEnter Own.\u201d<\/div>\r\n<div class=\"textLayer\">\u2022Select the appropriate explanatory variable (\ud835\udc4b) and responsevariable (\ud835\udc4c).<\/div>\r\n<div class=\"textLayer\">\u2022Enter the data.<\/div>\r\n<div class=\"textLayer\">Part A: Write the equation of the lineof best fitusing contextualized variablenames.<\/div>\r\n<div class=\"textLayer\">Part B: Suppose you know the flipper lengthsbut don\u2019t know the body massesof two penguins. Penguin A has a flipper length of 202millimeters (mm)and Penguin B has a flipper length of 172 mm. Complete the followingstatement.We expect the body mass of Penguin B to be about _____ grams ______(less\/greater) than the body mass of Penguin A.<\/div>\r\n<div class=\"textLayer\">Part C: Calculate the predicted body mass for each penguin. Round your answers to one decimal place.<\/div>\r\n<\/div>\r\n<\/div>\r\n<div class=\"textLayer\">Though the regression equation is used to calculate the expected body mass given the flipper length, we know that multiple penguins can have the same flipper length and different body masses. (This occurs quite frequently in our dataset!) Therefore, if we are trying to predict the weight of an individual penguin, it makes sense to calculate an interval that takes the variability in the actual penguin weights into account. In addition, thinking about what we have learned about sample variability in previous activities, we know that if we randomly select another sample with 324 penguins, the equation of the line of best line will be different\u2014so the predicted body mass for a given flipper length (the point estimate) will change. Before calculating the interval for predicted values, however, we need to first consider the type of prediction we\u2019re most interested in obtaining. There are two ways we can use the linear regression equation:<\/div>\r\n<div class=\"textLayer\">1. To estimate the mean value of the response when the explanatory variable is equal to a particular value, \ud835\udc650<\/div>\r\n<div class=\"textLayer\">2. To predict the value of the response for an individual observation when the explanatory variable is equal to \ud835\udc650<\/div>\r\n<div class=\"textLayer\">The type of interval calculated will depend on how we want to use the linear regression equation.<\/div>\r\n<\/div>\r\n<div id=\"bp-page-3\" class=\"page\" data-page-number=\"3\" data-loaded=\"true\">\r\n<div><\/div>\r\n<div class=\"textLayer\">When the objective is to estimate the mean value of the response variable for a particular value of the explanatory variable, \ud835\udc650, we will calculate a confidence interval for the mean response, where \ud835\udc36 is the confidence level associated with the interval. This interval gives us a range of plausible values of the mean response for the subset of the population with a value of the explanatory variable equal to\ud835\udc650.<\/div>\r\n<div class=\"textLayer\">\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Question 3<\/h3>\r\n<div class=\"textLayer\">3) We will use technology to calculate the following interval. During the in-class activity, you will learn more about these intervals and how to interpret them.<\/div>\r\n<div class=\"textLayer\">Part A: Calculate a 92% confidence interval for the mean body mass for penguins with a flipper length of 202 mm, the same flipper length as Penguin A. In theDCMP Linear Regression tool, under theFit Linear Regression Model tab ,you can obtain the interval by checking \u201cConfidence\/Prediction Interval\u201d in the toolbar on the left-hand side and inputting the value of the explanatory variable under\u201cx-value.\u201d Select the appropriate level of confidence, \ud835\udc36, by moving the slider. When the objective is to predict the value of the response variable for an individual observation with the explanatory variable equal to \ud835\udc650, we will calculate a \ud835\udc6a% prediction interval for an individual response, where \ud835\udc36 is the confidence level associated with the interval. This interval gives us a range of plausible values of the response for an individual observation that has a value of the explanatory variable equal to\ud835\udc650.<\/div>\r\n<div class=\"textLayer\">Part B: Use the linear regression tool(i.e., data analysis tool)to calculate a 92% prediction interval for the body mass of Penguin A, who has a flipper length of 202 mm.<\/div>\r\n<div class=\"textLayer\">Hint: Check the box \u201cFor Individual Response.\u201d<\/div>\r\n<\/div>\r\n<\/div>\r\n<div class=\"textLayer\">\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Question 4<\/h3>\r\n<div class=\"textLayer\">4) For each scenario, determine whether a confidence or prediction interval is most appropriate. Then use the linear regression tool (i.e., data analysis tool) to calculate the appropriate interval. Penguin B has a flipper length of 172 mm.<\/div>\r\n<div class=\"textLayer\">Part A: Calculate the predicted body mass and corresponding interval for Penguin B from Question 2.<\/div>\r\n<div class=\"textLayer\">Part B: Calculate the predicted mean body mass and corresponding interval for penguins with flippers that are 172 mm long.<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<div id=\"bp-page-4\" class=\"page\" data-page-number=\"4\" data-loaded=\"true\">\r\n<div class=\"textLayer\">\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Question 5<\/h3>\r\n<div class=\"textLayer\">5) Let\u2019s use the intervals from Questions 3 and 4 to describe the relationship between the confidence interval for the mean response and the prediction interval for an individual observation.<\/div>\r\n<div class=\"textLayer\">Part A: Given a value of the explanatory variable, how do the centers of the confidence and prediction intervals compare?<\/div>\r\n<div class=\"textLayer\">a) The center of the confidence interval is less than the center of the prediction interval.<\/div>\r\n<div class=\"textLayer\">b) The center of the confidence interval is equal to the center of the prediction interval.<\/div>\r\n<div class=\"textLayer\">c) The center of the confidence interval is greater than the center of the prediction interval.<\/div>\r\n<div class=\"textLayer\">Part B: Given a value of the explanatory variable, how do the widths of the confidence and prediction intervals compare?<\/div>\r\n<div class=\"textLayer\">a) The width of the confidence interval is less than the width of the prediction interval.<\/div>\r\n<div class=\"textLayer\">b) The width of the confidence interval is equal to the width of the prediction interval.<\/div>\r\n<div class=\"textLayer\">c) The width of the confidence interval is greater than the width of the prediction interval.<\/div>\r\n<\/div>\r\n<\/div>\r\n<div class=\"textLayer\">\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Question 6<\/h3>\r\n6) Based on the work you\u2019ve done in this preview assignment, why do you think it\u2019s important to include the confidence\/prediction intervals when reporting predictions from the regression line, rather than relying only on the single predicted value? Provide one to two reasons.<\/div>\r\n<\/div>\r\n<\/div>","rendered":"<div id=\"bp-page-1\" class=\"page\" data-page-number=\"1\" data-loaded=\"true\">\n<div class=\"textLayer\">Preparing for the next classIn the next class, you will need to use technology to calculate predictions from a regression line, confidence intervals for the mean response, and prediction intervals for individuals. You will also need to identify the appropriate type of interval based on a given situation and compare confidence and prediction intervals. In the next in-class activity, you will analyze predictions from the linear regression equation. In practice, it is not sufficient to provide a single point estimate; therefore, you will also learn how to calculate intervals from the predicted values as well. This concept is similar to the intervals calculated for the mean in previous in-class activities.This assignment will help you review the skills you\u2019ll need for the in-class activity and introduce intervals for two types of predictions in linear regression.How much do we expect a penguin to weigh based on the length of its flipper? To answer this question, we will look at the \u201cPenguins\u201ddataset.<a class=\"footnote\" title=\"Horst,A. M., Hill,A. P., &amp; Gorman,K. B.(2020). palmerpenguins. palmerpenguins 0.1.0. https:\/\/allisonhorst.github.io\/palmerpenguins\/\" id=\"return-footnote-5534-1\" href=\"#footnote-5534-1\" aria-label=\"Footnote 1\"><sup class=\"footnote\">[1]<\/sup><\/a> It contains characteristics fora sample of 342 penguins observed near Palmer Station, Antarctica. We will focus on the following two variables:<\/div>\n<div class=\"textLayer\">\u2022flipper_length_mm: Flipperlength in millimeters<\/div>\n<div class=\"textLayer\">\u2022body_mass_g: Body mass(weight)in grams<\/div>\n<div class=\"textLayer\">\n<div class=\"textbox key-takeaways\">\n<h3>Question 1<\/h3>\n<div class=\"textLayer\">1) Before taking flipper length into account, let\u2019s start by looking at the mean body mass for penguins. The 90% confidence interval for the mean body mass is (4130, 4273). Select the correct interpretation of the interval.<\/div>\n<div class=\"textLayer\">a) We are 90% confident that the mean body mass of penguins is between 4,130 and 4,273 grams.<\/div>\n<div class=\"textLayer\">b) There is a 90% probability that the mean body mass of penguins is between 4,130 and 4,273 grams.<\/div>\n<div class=\"textLayer\">c) There is a 90% probability that the body mass of a penguin is between 4,130 and 4,273 grams.<\/div>\n<div class=\"textLayer\">d) Based on this interval,90% of penguins have a body mass between 4,130 and 4,273 grams.<\/div>\n<\/div>\n<\/div>\n<div class=\"ba-Layer ba-Layer--highlight\" data-resin-fileid=\"910626357755\" data-resin-iscurrent=\"true\" data-resin-feature=\"annotations\" data-testid=\"ba-Layer--highlight\"><\/div>\n<\/div>\n<div id=\"bp-page-2\" class=\"page\" data-page-number=\"2\" data-loaded=\"true\">\n<div class=\"textLayer\">\n<div class=\"textbox key-takeaways\">\n<h3>Question 2<\/h3>\n<div class=\"textLayer\">2) Now let\u2019s take flipper length into account so we can get an estimate of the body mass of a penguin based on its flipper length. Go to the DCMPLinear Regression tool at https:\/\/dcmathpathways.shinyapps.io\/LinearRegression\/ to calculate the equation of the line of best fit.<\/div>\n<div class=\"textLayer\">\u2022Access spreadsheet DCMP_STAT_16C_Penguins.<\/div>\n<div class=\"textLayer\">\u2022Under \u201cEnter Data,\u201dselect \u201cEnter Own.\u201d<\/div>\n<div class=\"textLayer\">\u2022Select the appropriate explanatory variable (\ud835\udc4b) and responsevariable (\ud835\udc4c).<\/div>\n<div class=\"textLayer\">\u2022Enter the data.<\/div>\n<div class=\"textLayer\">Part A: Write the equation of the lineof best fitusing contextualized variablenames.<\/div>\n<div class=\"textLayer\">Part B: Suppose you know the flipper lengthsbut don\u2019t know the body massesof two penguins. Penguin A has a flipper length of 202millimeters (mm)and Penguin B has a flipper length of 172 mm. Complete the followingstatement.We expect the body mass of Penguin B to be about _____ grams ______(less\/greater) than the body mass of Penguin A.<\/div>\n<div class=\"textLayer\">Part C: Calculate the predicted body mass for each penguin. Round your answers to one decimal place.<\/div>\n<\/div>\n<\/div>\n<div class=\"textLayer\">Though the regression equation is used to calculate the expected body mass given the flipper length, we know that multiple penguins can have the same flipper length and different body masses. (This occurs quite frequently in our dataset!) Therefore, if we are trying to predict the weight of an individual penguin, it makes sense to calculate an interval that takes the variability in the actual penguin weights into account. In addition, thinking about what we have learned about sample variability in previous activities, we know that if we randomly select another sample with 324 penguins, the equation of the line of best line will be different\u2014so the predicted body mass for a given flipper length (the point estimate) will change. Before calculating the interval for predicted values, however, we need to first consider the type of prediction we\u2019re most interested in obtaining. There are two ways we can use the linear regression equation:<\/div>\n<div class=\"textLayer\">1. To estimate the mean value of the response when the explanatory variable is equal to a particular value, \ud835\udc650<\/div>\n<div class=\"textLayer\">2. To predict the value of the response for an individual observation when the explanatory variable is equal to \ud835\udc650<\/div>\n<div class=\"textLayer\">The type of interval calculated will depend on how we want to use the linear regression equation.<\/div>\n<\/div>\n<div id=\"bp-page-3\" class=\"page\" data-page-number=\"3\" data-loaded=\"true\">\n<div><\/div>\n<div class=\"textLayer\">When the objective is to estimate the mean value of the response variable for a particular value of the explanatory variable, \ud835\udc650, we will calculate a confidence interval for the mean response, where \ud835\udc36 is the confidence level associated with the interval. This interval gives us a range of plausible values of the mean response for the subset of the population with a value of the explanatory variable equal to\ud835\udc650.<\/div>\n<div class=\"textLayer\">\n<div class=\"textbox key-takeaways\">\n<h3>Question 3<\/h3>\n<div class=\"textLayer\">3) We will use technology to calculate the following interval. During the in-class activity, you will learn more about these intervals and how to interpret them.<\/div>\n<div class=\"textLayer\">Part A: Calculate a 92% confidence interval for the mean body mass for penguins with a flipper length of 202 mm, the same flipper length as Penguin A. In theDCMP Linear Regression tool, under theFit Linear Regression Model tab ,you can obtain the interval by checking \u201cConfidence\/Prediction Interval\u201d in the toolbar on the left-hand side and inputting the value of the explanatory variable under\u201cx-value.\u201d Select the appropriate level of confidence, \ud835\udc36, by moving the slider. When the objective is to predict the value of the response variable for an individual observation with the explanatory variable equal to \ud835\udc650, we will calculate a \ud835\udc6a% prediction interval for an individual response, where \ud835\udc36 is the confidence level associated with the interval. This interval gives us a range of plausible values of the response for an individual observation that has a value of the explanatory variable equal to\ud835\udc650.<\/div>\n<div class=\"textLayer\">Part B: Use the linear regression tool(i.e., data analysis tool)to calculate a 92% prediction interval for the body mass of Penguin A, who has a flipper length of 202 mm.<\/div>\n<div class=\"textLayer\">Hint: Check the box \u201cFor Individual Response.\u201d<\/div>\n<\/div>\n<\/div>\n<div class=\"textLayer\">\n<div class=\"textbox key-takeaways\">\n<h3>Question 4<\/h3>\n<div class=\"textLayer\">4) For each scenario, determine whether a confidence or prediction interval is most appropriate. Then use the linear regression tool (i.e., data analysis tool) to calculate the appropriate interval. Penguin B has a flipper length of 172 mm.<\/div>\n<div class=\"textLayer\">Part A: Calculate the predicted body mass and corresponding interval for Penguin B from Question 2.<\/div>\n<div class=\"textLayer\">Part B: Calculate the predicted mean body mass and corresponding interval for penguins with flippers that are 172 mm long.<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"bp-page-4\" class=\"page\" data-page-number=\"4\" data-loaded=\"true\">\n<div class=\"textLayer\">\n<div class=\"textbox key-takeaways\">\n<h3>Question 5<\/h3>\n<div class=\"textLayer\">5) Let\u2019s use the intervals from Questions 3 and 4 to describe the relationship between the confidence interval for the mean response and the prediction interval for an individual observation.<\/div>\n<div class=\"textLayer\">Part A: Given a value of the explanatory variable, how do the centers of the confidence and prediction intervals compare?<\/div>\n<div class=\"textLayer\">a) The center of the confidence interval is less than the center of the prediction interval.<\/div>\n<div class=\"textLayer\">b) The center of the confidence interval is equal to the center of the prediction interval.<\/div>\n<div class=\"textLayer\">c) The center of the confidence interval is greater than the center of the prediction interval.<\/div>\n<div class=\"textLayer\">Part B: Given a value of the explanatory variable, how do the widths of the confidence and prediction intervals compare?<\/div>\n<div class=\"textLayer\">a) The width of the confidence interval is less than the width of the prediction interval.<\/div>\n<div class=\"textLayer\">b) The width of the confidence interval is equal to the width of the prediction interval.<\/div>\n<div class=\"textLayer\">c) The width of the confidence interval is greater than the width of the prediction interval.<\/div>\n<\/div>\n<\/div>\n<div class=\"textLayer\">\n<div class=\"textbox key-takeaways\">\n<h3>Question 6<\/h3>\n<p>6) Based on the work you\u2019ve done in this preview assignment, why do you think it\u2019s important to include the confidence\/prediction intervals when reporting predictions from the regression line, rather than relying only on the single predicted value? Provide one to two reasons.<\/p><\/div>\n<\/div>\n<\/div>\n<hr class=\"before-footnotes clear\" \/><div class=\"footnotes\"><ol><li id=\"footnote-5534-1\">Horst,A. M., Hill,A. P., &amp; Gorman,K. B.(2020). palmerpenguins. palmerpenguins 0.1.0. https:\/\/allisonhorst.github.io\/palmerpenguins\/ <a href=\"#return-footnote-5534-1\" class=\"return-footnote\" aria-label=\"Return to footnote 1\">&crarr;<\/a><\/li><\/ol><\/div>","protected":false},"author":23592,"menu_order":68,"template":"","meta":{"_candela_citation":"[]","CANDELA_OUTCOMES_GUID":"","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-5534","chapter","type-chapter","status-publish","hentry"],"part":5514,"_links":{"self":[{"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/pressbooks\/v2\/chapters\/5534","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/wp\/v2\/users\/23592"}],"version-history":[{"count":1,"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/pressbooks\/v2\/chapters\/5534\/revisions"}],"predecessor-version":[{"id":5535,"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/pressbooks\/v2\/chapters\/5534\/revisions\/5535"}],"part":[{"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/pressbooks\/v2\/parts\/5514"}],"metadata":[{"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/pressbooks\/v2\/chapters\/5534\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/wp\/v2\/media?parent=5534"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/pressbooks\/v2\/chapter-type?post=5534"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/wp\/v2\/contributor?post=5534"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/lumen-danacenter-statsmockup\/wp-json\/wp\/v2\/license?post=5534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}