{"id":1464,"date":"2023-06-22T02:28:56","date_gmt":"2023-06-22T02:28:56","guid":{"rendered":"https:\/\/content.one.lumenlearning.com\/introstatstest\/chapter\/confidence-interval-and-prediction-interval-apply-it-3\/"},"modified":"2025-05-17T02:37:45","modified_gmt":"2025-05-17T02:37:45","slug":"confidence-interval-and-prediction-interval-apply-it-3","status":"publish","type":"chapter","link":"https:\/\/content.one.lumenlearning.com\/introstatstest\/chapter\/confidence-interval-and-prediction-interval-apply-it-3\/","title":{"raw":"Confidence Interval and Prediction Interval - Apply It 3","rendered":"Confidence Interval and Prediction Interval &#8211; Apply It 3"},"content":{"raw":"<section class=\"textbox learningGoals\">\r\n<ul>\r\n\t<li><span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Find and interpret the confidence interval for the mean response&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:4609,&quot;3&quot;:{&quot;1&quot;:0},&quot;12&quot;:0,&quot;15&quot;:&quot;Calibri&quot;}\">Find and interpret the confidence interval for the mean response<\/span><\/li>\r\n\t<li><span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Find and interpret the prediction interval for the mean response&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:4609,&quot;3&quot;:{&quot;1&quot;:0},&quot;12&quot;:0,&quot;15&quot;:&quot;Calibri&quot;}\">Find and interpret the prediction interval for an individual response<\/span><\/li>\r\n\t<li><span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Identify whether a confidence interval or a prediction interval is more appropriate in context of the problem&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:4609,&quot;3&quot;:{&quot;1&quot;:0},&quot;12&quot;:0,&quot;15&quot;:&quot;Calibri&quot;}\">Identify whether a confidence interval or a prediction interval is more appropriate in context of the problem<\/span><\/li>\r\n<\/ul>\r\n<\/section>\r\n<p>When fitting a linear regression model, we assume that the distribution of the response variable is approximately normal for a given value of the explanatory variable. It is important for that condition to hold when using prediction intervals, since these intervals take into account the scatter of the points about the line.<\/p>\r\n<p>We can check that this condition holds by examining the distribution of the residuals. If the distribution of the residuals is approximately normal, we can feel confident that the distribution of the response variable is normally distributed about the regression line for each value of the explanatory variable.<\/p>\r\n<section class=\"textbox interact\">Enter the data set: <a href=\"https:\/\/course-building.s3.us-west-2.amazonaws.com\/Statistics+Exemplar\/Data+Set+Files\/dcbikeshare_winter_sample_FINAL.xlsx\">Capital Bikeshare<\/a> in Washington D.C. accordingly.\r\n\r\n<p style=\"padding-left: 40px;\"><strong>Step 1: <\/strong>Select the <strong>Fitted Values and Residual Analysis<\/strong> tab.<\/p>\r\n<p style=\"padding-left: 40px;\"><strong>Step 2: <\/strong>Select the option \u201cHistogram\/Boxplot of Residuals.\u201d<\/p>\r\n<p style=\"padding-left: 40px;\"><strong>Step 3: <\/strong>Select the option \u201cSuperimpose Normal Curve.\u201d<\/p>\r\n<\/section>\r\n<p><iframe src=\"https:\/\/lumen-learning.shinyapps.io\/linear_regression\/\" width=\"100%\" height=\"1050\" frameborder=\"no\"><\/iframe><br \/>\r\n[<a href=\"https:\/\/lumen-learning.shinyapps.io\/linear_regression\/\" target=\"_blank\" rel=\"noopener\">Trouble viewing? Click to open in a new tab.<\/a>]<\/p>\r\n<section class=\"textbox tryIt\">[ohm2_question hide_question_numbers=1]3192[\/ohm2_question]<\/section>\r\n<section class=\"textbox proTip\">If the residuals are not normally distributed, you can report the prediction interval with a note indicating that caution should be applied when using the results from the interval.<\/section>\r\n<p>Notice that we checked the distribution of the residuals when calculating the prediction interval for an individual response, but not for the confidence interval for the mean response. The reliability of the confidence interval for the mean response does not rely on the normality of the distribution of the residual due to the Central Limit Theorem.<\/p>\r\n<section class=\"textbox tryIt\">[ohm2_question hide_question_numbers=1]3193[\/ohm2_question]<\/section>\r\n<section class=\"textbox tryIt\">[ohm2_question hide_question_numbers=1]3194[\/ohm2_question]<\/section>\r\n<section class=\"textbox tryIt\">[ohm2_question hide_question_numbers=1]3195[\/ohm2_question]<\/section>","rendered":"<section class=\"textbox learningGoals\">\n<ul>\n<li><span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Find and interpret the confidence interval for the mean response&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:4609,&quot;3&quot;:{&quot;1&quot;:0},&quot;12&quot;:0,&quot;15&quot;:&quot;Calibri&quot;}\">Find and interpret the confidence interval for the mean response<\/span><\/li>\n<li><span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Find and interpret the prediction interval for the mean response&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:4609,&quot;3&quot;:{&quot;1&quot;:0},&quot;12&quot;:0,&quot;15&quot;:&quot;Calibri&quot;}\">Find and interpret the prediction interval for an individual response<\/span><\/li>\n<li><span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Identify whether a confidence interval or a prediction interval is more appropriate in context of the problem&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:4609,&quot;3&quot;:{&quot;1&quot;:0},&quot;12&quot;:0,&quot;15&quot;:&quot;Calibri&quot;}\">Identify whether a confidence interval or a prediction interval is more appropriate in context of the problem<\/span><\/li>\n<\/ul>\n<\/section>\n<p>When fitting a linear regression model, we assume that the distribution of the response variable is approximately normal for a given value of the explanatory variable. It is important for that condition to hold when using prediction intervals, since these intervals take into account the scatter of the points about the line.<\/p>\n<p>We can check that this condition holds by examining the distribution of the residuals. If the distribution of the residuals is approximately normal, we can feel confident that the distribution of the response variable is normally distributed about the regression line for each value of the explanatory variable.<\/p>\n<section class=\"textbox interact\">Enter the data set: <a href=\"https:\/\/course-building.s3.us-west-2.amazonaws.com\/Statistics+Exemplar\/Data+Set+Files\/dcbikeshare_winter_sample_FINAL.xlsx\">Capital Bikeshare<\/a> in Washington D.C. accordingly.<\/p>\n<p style=\"padding-left: 40px;\"><strong>Step 1: <\/strong>Select the <strong>Fitted Values and Residual Analysis<\/strong> tab.<\/p>\n<p style=\"padding-left: 40px;\"><strong>Step 2: <\/strong>Select the option \u201cHistogram\/Boxplot of Residuals.\u201d<\/p>\n<p style=\"padding-left: 40px;\"><strong>Step 3: <\/strong>Select the option \u201cSuperimpose Normal Curve.\u201d<\/p>\n<\/section>\n<p><iframe loading=\"lazy\" src=\"https:\/\/lumen-learning.shinyapps.io\/linear_regression\/\" width=\"100%\" height=\"1050\" frameborder=\"no\"><\/iframe><br \/>\n[<a href=\"https:\/\/lumen-learning.shinyapps.io\/linear_regression\/\" target=\"_blank\" rel=\"noopener\">Trouble viewing? Click to open in a new tab.<\/a>]<\/p>\n<section class=\"textbox tryIt\"><iframe loading=\"lazy\" id=\"ohm3192\" class=\"resizable\" src=\"https:\/\/ohm.one.lumenlearning.com\/multiembedq.php?id=3192&theme=lumen&iframe_resize_id=ohm3192&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n<section class=\"textbox proTip\">If the residuals are not normally distributed, you can report the prediction interval with a note indicating that caution should be applied when using the results from the interval.<\/section>\n<p>Notice that we checked the distribution of the residuals when calculating the prediction interval for an individual response, but not for the confidence interval for the mean response. The reliability of the confidence interval for the mean response does not rely on the normality of the distribution of the residual due to the Central Limit Theorem.<\/p>\n<section class=\"textbox tryIt\"><iframe loading=\"lazy\" id=\"ohm3193\" class=\"resizable\" src=\"https:\/\/ohm.one.lumenlearning.com\/multiembedq.php?id=3193&theme=lumen&iframe_resize_id=ohm3193&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n<section class=\"textbox tryIt\"><iframe loading=\"lazy\" id=\"ohm3194\" class=\"resizable\" src=\"https:\/\/ohm.one.lumenlearning.com\/multiembedq.php?id=3194&theme=lumen&iframe_resize_id=ohm3194&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n<section class=\"textbox tryIt\"><iframe loading=\"lazy\" id=\"ohm3195\" class=\"resizable\" src=\"https:\/\/ohm.one.lumenlearning.com\/multiembedq.php?id=3195&theme=lumen&iframe_resize_id=ohm3195&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n","protected":false},"author":8,"menu_order":24,"template":"","meta":{"_candela_citation":"[]","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"part":1438,"module-header":"apply_it","content_attributions":[],"internal_book_links":[],"video_content":null,"cc_video_embed_content":{"cc_scripts":"","media_targets":[]},"try_it_collection":null,"_links":{"self":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapters\/1464"}],"collection":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/wp\/v2\/users\/8"}],"version-history":[{"count":5,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapters\/1464\/revisions"}],"predecessor-version":[{"id":6900,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapters\/1464\/revisions\/6900"}],"part":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/parts\/1438"}],"metadata":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapters\/1464\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/wp\/v2\/media?parent=1464"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapter-type?post=1464"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/wp\/v2\/contributor?post=1464"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/wp\/v2\/license?post=1464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}