<div class="xblock xblock-public_view xblock-public_view-vertical" data-usage-id="block-v1:MITx+HST.953x+3T2020+type@vertical+block@4922080711c048e88f4526963f01b5ba" data-graded="False" data-runtime-class="LmsRuntime" data-course-id="course-v1:MITx+HST.953x+3T2020" data-block-type="vertical" data-request-token="a9995ff4fe0611ee8dfd026cc65ec0d9" data-has-score="False" data-runtime-version="1" data-init="VerticalStudentView">
<h2 class="hd hd-2 unit-title">Introduction</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+HST.953x+3T2020+type@html+block@7cabe8419767408687ed09bf5af39a8d">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-usage-id="block-v1:MITx+HST.953x+3T2020+type@html+block@7cabe8419767408687ed09bf5af39a8d" data-graded="False" data-runtime-class="LmsRuntime" data-course-id="course-v1:MITx+HST.953x+3T2020" data-block-type="html" data-request-token="a9995ff4fe0611ee8dfd026cc65ec0d9" data-has-score="False" data-runtime-version="1" data-init="XBlockToXModuleShim">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<p><strong>Introduction</strong></p>
<p>Welcome to the regression workshop. In this module, we build on the concepts covered in Section 2.08: Regression Models. </p>
<p>This workshop has two parts:</p>
<p>1. Tutorial on regression models </p>
<p>2. Programming Exercise - Logistic Regression</p>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-usage-id="block-v1:MITx+HST.953x+3T2020+type@vertical+block@7c5b857d80b240c4aced6192b9c16067" data-graded="False" data-runtime-class="LmsRuntime" data-course-id="course-v1:MITx+HST.953x+3T2020" data-block-type="vertical" data-request-token="a9995ff4fe0611ee8dfd026cc65ec0d9" data-has-score="False" data-runtime-version="1" data-init="VerticalStudentView">
<h2 class="hd hd-2 unit-title">Tutorial on Regression Models</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+HST.953x+3T2020+type@html+block@fbcb885302ed48bd9a5a091f0d05d6f1">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-usage-id="block-v1:MITx+HST.953x+3T2020+type@html+block@fbcb885302ed48bd9a5a091f0d05d6f1" data-graded="False" data-runtime-class="LmsRuntime" data-course-id="course-v1:MITx+HST.953x+3T2020" data-block-type="html" data-request-token="a9995ff4fe0611ee8dfd026cc65ec0d9" data-has-score="False" data-runtime-version="1" data-init="XBlockToXModuleShim">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<p style="text-rendering: optimizelegibility; margin-top: 0px; margin-right: 0px; margin-left: 0px; padding: 0px; border: 0px; outline: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-stretch: inherit; font-size: 16px; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; vertical-align: baseline; color: #313131;"><strong>Instructions</strong></p>
<ol style="text-rendering: optimizelegibility; border: 0px; outline: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: 1.4em; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; vertical-align: baseline; color: #313131;">
<li style="text-rendering: optimizelegibility; margin-top: 0px; margin-right: 0px; margin-left: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: 1.4em; font-family: inherit; vertical-align: baseline;">Download the tutorial files <a href="/assets/courseware/v1/3c20d990a19e154def5b726793916d10/asset-v1:MITx+HST.953x+3T2020+type@asset+block/regression_tutorial.zip" target="[object Object]">here</a>.</li>
<li style="text-rendering: optimizelegibility; margin-top: 0px; margin-right: 0px; margin-left: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: 1.4em; font-family: inherit; vertical-align: baseline;">Download R Studio if have not already done so previously.</li>
<li style="text-rendering: optimizelegibility; margin-top: 0px; margin-right: 0px; margin-left: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: 1.4em; font-family: inherit; vertical-align: baseline;">Unzip the folder to your '<strong>Downloads</strong>' folder. You should see 3 files:</li>
<ul style="text-rendering: optimizelegibility; border: 0px; outline: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: 1.4em; font-family: inherit; vertical-align: baseline; color: #313131;">
<li style="text-rendering: optimizelegibility; margin-top: 0px; margin-right: 0px; margin-left: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: 1.4em; font-family: inherit; vertical-align: baseline;"><strong style="text-rendering: optimizelegibility; margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-variant: inherit; font-stretch: inherit; font-size: inherit; line-height: 1.4em; font-family: inherit; vertical-align: baseline;">regression_tutorial.Rmd</strong></li>
<li style="text-rendering: optimizelegibility; margin-top: 0px; margin-right: 0px; margin-left: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: 1.4em; font-family: inherit; vertical-align: baseline;"><strong style="text-rendering: optimizelegibility; margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-variant: inherit; font-stretch: inherit; font-size: inherit; line-height: 1.4em; font-family: inherit; vertical-align: baseline;">regflow.png</strong></li>
<li style="text-rendering: optimizelegibility; margin-top: 0px; margin-right: 0px; margin-left: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: 1.4em; font-family: inherit; vertical-align: baseline;"><strong style="text-rendering: optimizelegibility; margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-variant: inherit; font-stretch: inherit; font-size: inherit; line-height: 1.4em; font-family: inherit; vertical-align: baseline;">aline-dataset.csv</strong></li>
</ul>
<li style="text-rendering: optimizelegibility; margin-top: 0px; margin-right: 0px; margin-left: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: 1.4em; font-family: inherit; vertical-align: baseline;"><span style="text-rendering: optimizelegibility; margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 1em; line-height: 1.4em; font-family: inherit; vertical-align: baseline;">Visually inspect the </span><strong style="text-rendering: optimizelegibility; margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-variant: inherit; font-stretch: inherit; font-size: inherit; line-height: 1.4em; font-family: inherit; vertical-align: baseline;">aline-dataset.csv</strong> file.</li>
<li style="text-rendering: optimizelegibility; margin-top: 0px; margin-right: 0px; margin-left: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: 1.4em; font-family: inherit; vertical-align: baseline;"><span style="text-rendering: optimizelegibility; margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 1em; line-height: 1.4em; font-family: inherit; vertical-align: baseline;">Open </span><strong style="text-rendering: optimizelegibility; margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-variant: inherit; font-stretch: inherit; font-size: inherit; line-height: 1.4em; font-family: inherit; vertical-align: baseline;">regression_tutorial.Rmd</strong> in R Studio.</li>
<li style="text-rendering: optimizelegibility; margin-top: 0px; margin-right: 0px; margin-left: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: 1.4em; font-family: inherit; vertical-align: baseline;">Replace the directory with the folder's pathname into which the tutorial file was downloaded.</li>
<li style="text-rendering: optimizelegibility; margin-top: 0px; margin-right: 0px; margin-left: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: 1.4em; font-family: inherit; vertical-align: baseline;"><span style="text-rendering: optimizelegibility; margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 1em; line-height: 1.4em; font-family: inherit; vertical-align: baseline;">Click the </span><img height="26" width="54" src="https://studio.edge.edx.org/assets/courseware/v1/11cd22e5fdb871a92b797278d9614b10/asset-v1:MITx+HST.953x+1T2019+type@asset+block/knit_icon.jpg" alt="knit icon" style="text-rendering: optimizelegibility; border: 0px; margin: 0px; padding: 0px; outline: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 1em; line-height: 1.4em; font-family: inherit; vertical-align: baseline;" /> icon to view the slides.</li>
<li style="text-rendering: optimizelegibility; margin-top: 0px; margin-right: 0px; margin-left: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: 1.4em; font-family: inherit; vertical-align: baseline;">Go through the workshop and refer back to the R code often to see what's going on under-the-hood.</li>
</ol>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-usage-id="block-v1:MITx+HST.953x+3T2020+type@vertical+block@24e0e2aac9c54943a618f56576475b23" data-graded="False" data-runtime-class="LmsRuntime" data-course-id="course-v1:MITx+HST.953x+3T2020" data-block-type="vertical" data-request-token="a9995ff4fe0611ee8dfd026cc65ec0d9" data-has-score="False" data-runtime-version="1" data-init="VerticalStudentView">
<h2 class="hd hd-2 unit-title">Video: Tutorial on Regression Models</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+HST.953x+3T2020+type@video+block@9943e7cf814845deb1f81c64b00a5d01">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-usage-id="block-v1:MITx+HST.953x+3T2020+type@video+block@9943e7cf814845deb1f81c64b00a5d01" data-graded="False" data-runtime-class="LmsRuntime" data-course-id="course-v1:MITx+HST.953x+3T2020" data-block-type="video" data-request-token="a9995ff4fe0611ee8dfd026cc65ec0d9" data-has-score="False" data-runtime-version="1" data-init="XBlockToXModuleShim">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Reference Groups / Dummy Variables</h3>
<div
id="video_9943e7cf814845deb1f81c64b00a5d01"
class="video closed"
data-metadata='{"end": 0.0, "speed": null, "ytTestTimeout": 1500, "publishCompletionUrl": "/courses/course-v1:MITx+HST.953x+3T2020/xblock/block-v1:MITx+HST.953x+3T2020+type@video+block@9943e7cf814845deb1f81c64b00a5d01/handler/publish_completion", "ytApiUrl": "https://www.youtube.com/iframe_api", "showCaptions": "true", "streams": "1.00:ldsFn0OH7FM", "poster": null, "saveStateEnabled": false, "start": 0.0, "completionPercentage": 0.95, "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+HST.953x+3T2020/xblock/block-v1:MITx+HST.953x+3T2020+type@video+block@9943e7cf814845deb1f81c64b00a5d01/handler/transcript/available_translations", "autoplay": false, "transcriptLanguages": {"en": "English"}, "autohideHtml5": false, "transcriptTranslationUrl": "/courses/course-v1:MITx+HST.953x+3T2020/xblock/block-v1:MITx+HST.953x+3T2020+type@video+block@9943e7cf814845deb1f81c64b00a5d01/handler/transcript/translation/__lang__", "ytMetadataEndpoint": "", "generalSpeed": 1.0, "lmsRootURL": "https://openlearninglibrary.mit.edu", "autoAdvance": false, "completionEnabled": false, "savedVideoPosition": 0.0, "saveStateUrl": "/courses/course-v1:MITx+HST.953x+3T2020/xblock/block-v1:MITx+HST.953x+3T2020+type@video+block@9943e7cf814845deb1f81c64b00a5d01/handler/xmodule_handler/save_user_state", "captionDataDir": null, "sources": [], "transcriptLanguage": "en", "recordedYoutubeIsAvailable": true, "prioritizeHls": false, "duration": 0.0}'
data-bumper-metadata='null'
data-autoadvance-enabled="False"
data-poster='null'
tabindex="-1"
>
<div class="focus_grabber first"></div>
<div class="tc-wrapper">
<div class="video-wrapper">
<span tabindex="0" class="spinner" aria-hidden="false" aria-label="Loading video player"></span>
<span tabindex="-1" class="btn-play fa fa-youtube-play fa-2x is-hidden" aria-hidden="true" aria-label="Play video"></span>
<div class="video-player-pre"></div>
<div class="video-player">
<div id="9943e7cf814845deb1f81c64b00a5d01"></div>
<h4 class="hd hd-4 video-error is-hidden">No playable video sources found.</h4>
<h4 class="hd hd-4 video-hls-error is-hidden">
Your browser does not support this video format. Try using a different browser.
</h4>
</div>
<div class="video-player-post"></div>
<div class="closed-captions"></div>
<div class="video-controls is-hidden">
<div>
<div class="vcr"><div class="vidtime">0:00 / 0:00</div></div>
<div class="secondary-controls"></div>
</div>
</div>
</div>
</div>
<div class="focus_grabber last"></div>
<h3 class="hd hd-4 downloads-heading sr" id="video-download-transcripts_9943e7cf814845deb1f81c64b00a5d01">Downloads and transcripts</h3>
<div class="wrapper-downloads" role="region" aria-labelledby="video-download-transcripts_9943e7cf814845deb1f81c64b00a5d01">
<div class="wrapper-download-transcripts">
<h4 class="hd hd-5">Transcripts</h4>
<ul class="list-download-transcripts">
<li class="transcript-option">
<a class="btn btn-link" href="/courses/course-v1:MITx+HST.953x+3T2020/xblock/block-v1:MITx+HST.953x+3T2020+type@video+block@9943e7cf814845deb1f81c64b00a5d01/handler/transcript/download" data-value="srt">Download SubRip (.srt) file</a>
</li>
<li class="transcript-option">
<a class="btn btn-link" href="/courses/course-v1:MITx+HST.953x+3T2020/xblock/block-v1:MITx+HST.953x+3T2020+type@video+block@9943e7cf814845deb1f81c64b00a5d01/handler/transcript/download" data-value="txt">Download Text (.txt) file</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+HST.953x+3T2020+type@video+block@494b37fa20044d3ab04011cfb2cae567">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-usage-id="block-v1:MITx+HST.953x+3T2020+type@video+block@494b37fa20044d3ab04011cfb2cae567" data-graded="False" data-runtime-class="LmsRuntime" data-course-id="course-v1:MITx+HST.953x+3T2020" data-block-type="video" data-request-token="a9995ff4fe0611ee8dfd026cc65ec0d9" data-has-score="False" data-runtime-version="1" data-init="XBlockToXModuleShim">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Colinearity</h3>
<div
id="video_494b37fa20044d3ab04011cfb2cae567"
class="video closed"
data-metadata='{"end": 0.0, "speed": null, "ytTestTimeout": 1500, "publishCompletionUrl": "/courses/course-v1:MITx+HST.953x+3T2020/xblock/block-v1:MITx+HST.953x+3T2020+type@video+block@494b37fa20044d3ab04011cfb2cae567/handler/publish_completion", "ytApiUrl": "https://www.youtube.com/iframe_api", "showCaptions": "true", "streams": "1.00:cNpz7y94mnY", "poster": null, "saveStateEnabled": false, "start": 0.0, "completionPercentage": 0.95, "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+HST.953x+3T2020/xblock/block-v1:MITx+HST.953x+3T2020+type@video+block@494b37fa20044d3ab04011cfb2cae567/handler/transcript/available_translations", "autoplay": false, "transcriptLanguages": {"en": "English"}, "autohideHtml5": false, "transcriptTranslationUrl": "/courses/course-v1:MITx+HST.953x+3T2020/xblock/block-v1:MITx+HST.953x+3T2020+type@video+block@494b37fa20044d3ab04011cfb2cae567/handler/transcript/translation/__lang__", "ytMetadataEndpoint": "", "generalSpeed": 1.0, "lmsRootURL": "https://openlearninglibrary.mit.edu", "autoAdvance": false, "completionEnabled": false, "savedVideoPosition": 0.0, "saveStateUrl": "/courses/course-v1:MITx+HST.953x+3T2020/xblock/block-v1:MITx+HST.953x+3T2020+type@video+block@494b37fa20044d3ab04011cfb2cae567/handler/xmodule_handler/save_user_state", "captionDataDir": null, "sources": [], "transcriptLanguage": "en", "recordedYoutubeIsAvailable": true, "prioritizeHls": false, "duration": 0.0}'
data-bumper-metadata='null'
data-autoadvance-enabled="False"
data-poster='null'
tabindex="-1"
>
<div class="focus_grabber first"></div>
<div class="tc-wrapper">
<div class="video-wrapper">
<span tabindex="0" class="spinner" aria-hidden="false" aria-label="Loading video player"></span>
<span tabindex="-1" class="btn-play fa fa-youtube-play fa-2x is-hidden" aria-hidden="true" aria-label="Play video"></span>
<div class="video-player-pre"></div>
<div class="video-player">
<div id="494b37fa20044d3ab04011cfb2cae567"></div>
<h4 class="hd hd-4 video-error is-hidden">No playable video sources found.</h4>
<h4 class="hd hd-4 video-hls-error is-hidden">
Your browser does not support this video format. Try using a different browser.
</h4>
</div>
<div class="video-player-post"></div>
<div class="closed-captions"></div>
<div class="video-controls is-hidden">
<div>
<div class="vcr"><div class="vidtime">0:00 / 0:00</div></div>
<div class="secondary-controls"></div>
</div>
</div>
</div>
</div>
<div class="focus_grabber last"></div>
<h3 class="hd hd-4 downloads-heading sr" id="video-download-transcripts_494b37fa20044d3ab04011cfb2cae567">Downloads and transcripts</h3>
<div class="wrapper-downloads" role="region" aria-labelledby="video-download-transcripts_494b37fa20044d3ab04011cfb2cae567">
<div class="wrapper-download-transcripts">
<h4 class="hd hd-5">Transcripts</h4>
<ul class="list-download-transcripts">
<li class="transcript-option">
<a class="btn btn-link" href="/courses/course-v1:MITx+HST.953x+3T2020/xblock/block-v1:MITx+HST.953x+3T2020+type@video+block@494b37fa20044d3ab04011cfb2cae567/handler/transcript/download" data-value="srt">Download SubRip (.srt) file</a>
</li>
<li class="transcript-option">
<a class="btn btn-link" href="/courses/course-v1:MITx+HST.953x+3T2020/xblock/block-v1:MITx+HST.953x+3T2020+type@video+block@494b37fa20044d3ab04011cfb2cae567/handler/transcript/download" data-value="txt">Download Text (.txt) file</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="vert vert-2" data-id="block-v1:MITx+HST.953x+3T2020+type@video+block@f0769661d7b94417a8687534e706ec48">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-usage-id="block-v1:MITx+HST.953x+3T2020+type@video+block@f0769661d7b94417a8687534e706ec48" data-graded="False" data-runtime-class="LmsRuntime" data-course-id="course-v1:MITx+HST.953x+3T2020" data-block-type="video" data-request-token="a9995ff4fe0611ee8dfd026cc65ec0d9" data-has-score="False" data-runtime-version="1" data-init="XBlockToXModuleShim">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Confounding vs. Colinearity</h3>
<div
id="video_f0769661d7b94417a8687534e706ec48"
class="video closed"
data-metadata='{"end": 0.0, "speed": null, "ytTestTimeout": 1500, "publishCompletionUrl": "/courses/course-v1:MITx+HST.953x+3T2020/xblock/block-v1:MITx+HST.953x+3T2020+type@video+block@f0769661d7b94417a8687534e706ec48/handler/publish_completion", "ytApiUrl": "https://www.youtube.com/iframe_api", "showCaptions": "true", "streams": "1.00:hxdYkiXaAwA", "poster": null, "saveStateEnabled": false, "start": 16.0, "completionPercentage": 0.95, "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+HST.953x+3T2020/xblock/block-v1:MITx+HST.953x+3T2020+type@video+block@f0769661d7b94417a8687534e706ec48/handler/transcript/available_translations", "autoplay": false, "transcriptLanguages": {"en": "English"}, "autohideHtml5": false, "transcriptTranslationUrl": "/courses/course-v1:MITx+HST.953x+3T2020/xblock/block-v1:MITx+HST.953x+3T2020+type@video+block@f0769661d7b94417a8687534e706ec48/handler/transcript/translation/__lang__", "ytMetadataEndpoint": "", "generalSpeed": 1.0, "lmsRootURL": "https://openlearninglibrary.mit.edu", "autoAdvance": false, "completionEnabled": false, "savedVideoPosition": 0.0, "saveStateUrl": "/courses/course-v1:MITx+HST.953x+3T2020/xblock/block-v1:MITx+HST.953x+3T2020+type@video+block@f0769661d7b94417a8687534e706ec48/handler/xmodule_handler/save_user_state", "captionDataDir": null, "sources": [], "transcriptLanguage": "en", "recordedYoutubeIsAvailable": true, "prioritizeHls": false, "duration": 0.0}'
data-bumper-metadata='null'
data-autoadvance-enabled="False"
data-poster='null'
tabindex="-1"
>
<div class="focus_grabber first"></div>
<div class="tc-wrapper">
<div class="video-wrapper">
<span tabindex="0" class="spinner" aria-hidden="false" aria-label="Loading video player"></span>
<span tabindex="-1" class="btn-play fa fa-youtube-play fa-2x is-hidden" aria-hidden="true" aria-label="Play video"></span>
<div class="video-player-pre"></div>
<div class="video-player">
<div id="f0769661d7b94417a8687534e706ec48"></div>
<h4 class="hd hd-4 video-error is-hidden">No playable video sources found.</h4>
<h4 class="hd hd-4 video-hls-error is-hidden">
Your browser does not support this video format. Try using a different browser.
</h4>
</div>
<div class="video-player-post"></div>
<div class="closed-captions"></div>
<div class="video-controls is-hidden">
<div>
<div class="vcr"><div class="vidtime">0:00 / 0:00</div></div>
<div class="secondary-controls"></div>
</div>
</div>
</div>
</div>
<div class="focus_grabber last"></div>
<h3 class="hd hd-4 downloads-heading sr" id="video-download-transcripts_f0769661d7b94417a8687534e706ec48">Downloads and transcripts</h3>
<div class="wrapper-downloads" role="region" aria-labelledby="video-download-transcripts_f0769661d7b94417a8687534e706ec48">
<div class="wrapper-download-transcripts">
<h4 class="hd hd-5">Transcripts</h4>
<ul class="list-download-transcripts">
<li class="transcript-option">
<a class="btn btn-link" href="/courses/course-v1:MITx+HST.953x+3T2020/xblock/block-v1:MITx+HST.953x+3T2020+type@video+block@f0769661d7b94417a8687534e706ec48/handler/transcript/download" data-value="srt">Download SubRip (.srt) file</a>
</li>
<li class="transcript-option">
<a class="btn btn-link" href="/courses/course-v1:MITx+HST.953x+3T2020/xblock/block-v1:MITx+HST.953x+3T2020+type@video+block@f0769661d7b94417a8687534e706ec48/handler/transcript/download" data-value="txt">Download Text (.txt) file</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-usage-id="block-v1:MITx+HST.953x+3T2020+type@vertical+block@5f37da93dc454fff9c15953a68e99e57" data-graded="False" data-runtime-class="LmsRuntime" data-course-id="course-v1:MITx+HST.953x+3T2020" data-block-type="vertical" data-request-token="a9995ff4fe0611ee8dfd026cc65ec0d9" data-has-score="False" data-runtime-version="1" data-init="VerticalStudentView">
<h2 class="hd hd-2 unit-title">Programming Exercise - Logistic Regression</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+HST.953x+3T2020+type@html+block@ae11b614b40e4493996f203847a36970">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-usage-id="block-v1:MITx+HST.953x+3T2020+type@html+block@ae11b614b40e4493996f203847a36970" data-graded="False" data-runtime-class="LmsRuntime" data-course-id="course-v1:MITx+HST.953x+3T2020" data-block-type="html" data-request-token="a9995ff4fe0611ee8dfd026cc65ec0d9" data-has-score="False" data-runtime-version="1" data-init="XBlockToXModuleShim">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<p><strong>Instructions</strong></p>
<ol>
<li>Download the programming exercise files <a href="/assets/courseware/v1/5930786957685485e9049a75ff45d2f5/asset-v1:MITx+HST.953x+3T2020+type@asset+block/regression_programming_exercise.zip" target="[object Object]">here</a>.</li>
<li>Unzip the folder. You should see 2 files:</li>
<ul>
<li><strong>regression_exercise.Rmd</strong></li>
<li><strong>cholesterol-dataset.csv</strong></li>
</ul>
<li><span style="font-size: 1em;">Visually inspect the <strong>cholesterol-dataset.csv</strong> file.</span></li>
<li><span style="font-size: 1em;">Open <strong>regression_exercise.Rmd </strong>in R Studio.</span></li>
<ul>
<li><span style="font-size: 1em;">Note: To view the equations inside the text, simply (click and) hover your cursor over areas demarcated by `$...$`</span></li>
</ul>
<li><span style="font-size: 1em;">When you have completed all the code input, click on the </span><img height="26" width="54" src="/assets/courseware/v1/11cd22e5fdb871a92b797278d9614b10/asset-v1:MITx+HST.953x+3T2020+type@asset+block/knit_icon.jpg" alt="knit icon" style="font-size: 1em;" /> icon to view the final results.</li>
</ol>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-usage-id="block-v1:MITx+HST.953x+3T2020+type@vertical+block@0d9bae7988e340209c5660114a5457ef" data-graded="False" data-runtime-class="LmsRuntime" data-course-id="course-v1:MITx+HST.953x+3T2020" data-block-type="vertical" data-request-token="a9995ff4fe0611ee8dfd026cc65ec0d9" data-has-score="False" data-runtime-version="1" data-init="VerticalStudentView">
<h2 class="hd hd-2 unit-title">Quiz: Programming Exercise - Logistic Regression</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+HST.953x+3T2020+type@problem+block@c13dd91cae4941deb552480d76078e97">
<div class="xblock xblock-public_view xblock-public_view-problem xmodule_display xmodule_ProblemBlock" data-usage-id="block-v1:MITx+HST.953x+3T2020+type@problem+block@c13dd91cae4941deb552480d76078e97" data-graded="False" data-runtime-class="LmsRuntime" data-course-id="course-v1:MITx+HST.953x+3T2020" data-block-type="problem" data-request-token="a9995ff4fe0611ee8dfd026cc65ec0d9" data-has-score="True" data-runtime-version="1" data-init="XBlockToXModuleShim">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Problem"}
</script>
<div id="problem_c13dd91cae4941deb552480d76078e97" class="problems-wrapper" role="group"
aria-labelledby="c13dd91cae4941deb552480d76078e97-problem-title"
data-problem-id="block-v1:MITx+HST.953x+3T2020+type@problem+block@c13dd91cae4941deb552480d76078e97" data-url="/courses/course-v1:MITx+HST.953x+3T2020/xblock/block-v1:MITx+HST.953x+3T2020+type@problem+block@c13dd91cae4941deb552480d76078e97/handler/xmodule_handler"
data-problem-score="0"
data-problem-total-possible="1"
data-attempts-used="0"
data-content="
<h3 class="hd hd-3 problem-header" id="c13dd91cae4941deb552480d76078e97-problem-title" aria-describedby="block-v1:MITx+HST.953x+3T2020+type@problem+block@c13dd91cae4941deb552480d76078e97-problem-progress" tabindex="-1">
Question 1
</h3>
<div class="problem-progress" id="block-v1:MITx+HST.953x+3T2020+type@problem+block@c13dd91cae4941deb552480d76078e97-problem-progress"></div>
<div class="problem">
<div>
<div class="wrapper-problem-response" tabindex="-1" aria-label="Question 1" role="group"><p>What was the odds ratio for gender: </p>
<div id="formulaequationinput_c13dd91cae4941deb552480d76078e97_2_1" class="inputtype formulaequationinput">
<div class="unanswered">
<input type="text" name="input_c13dd91cae4941deb552480d76078e97_2_1" id="input_c13dd91cae4941deb552480d76078e97_2_1" data-input-id="c13dd91cae4941deb552480d76078e97_2_1" value="" aria-describedby="status_c13dd91cae4941deb552480d76078e97_2_1" size="20"/>
<span class="trailing_text" id="trailing_text_c13dd91cae4941deb552480d76078e97_2_1"/>
<span class="status unanswered" id="status_c13dd91cae4941deb552480d76078e97_2_1" data-tooltip="Not yet answered.">
<span class="sr">unanswered</span><span class="status-icon" aria-hidden="true"/>
</span>
<p id="answer_c13dd91cae4941deb552480d76078e97_2_1" class="answer"/>
<div id="input_c13dd91cae4941deb552480d76078e97_2_1_preview" class="equation">
\(\)
<img src="/static/images/spinner.bc34f953403f.gif" class="loading" alt="Loading"/>
</div>
</div>
<div class="script_placeholder" data-src="/static/js/capa/src/formula_equation_preview.b1967ab28c31.js"/>
</div></div>
</div>
<div class="action">
<input type="hidden" name="problem_id" value="Question 1" />
<div class="submit-attempt-container">
<button type="button" class="submit btn-brand" data-submitting="Submitting" data-value="Submit" data-should-enable-submit-button="True" aria-describedby="submission_feedback_c13dd91cae4941deb552480d76078e97" >
<span class="submit-label">Submit</span>
</button>
<div class="submission-feedback" id="submission_feedback_c13dd91cae4941deb552480d76078e97">
<span class="sr">Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.</span>
</div>
</div>
<div class="problem-action-buttons-wrapper">
</div>
</div>
<div class="notification warning notification-gentle-alert
is-hidden"
tabindex="-1">
<span class="icon fa fa-exclamation-circle" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="c13dd91cae4941deb552480d76078e97-problem-title">
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
<div class="notification warning notification-save
is-hidden"
tabindex="-1">
<span class="icon fa fa-save" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="c13dd91cae4941deb552480d76078e97-problem-title">None
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
<div class="notification general notification-show-answer
is-hidden"
tabindex="-1">
<span class="icon fa fa-info-circle" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="c13dd91cae4941deb552480d76078e97-problem-title">Answers are displayed within the problem
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
</div>
"
data-graded="False">
<p class="loading-spinner">
<i class="fa fa-spinner fa-pulse fa-2x fa-fw"></i>
<span class="sr">Loading…</span>
</p>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+HST.953x+3T2020+type@problem+block@c8e114b9ecf149febeca5791b4ae6666">
<div class="xblock xblock-public_view xblock-public_view-problem xmodule_display xmodule_ProblemBlock" data-usage-id="block-v1:MITx+HST.953x+3T2020+type@problem+block@c8e114b9ecf149febeca5791b4ae6666" data-graded="False" data-runtime-class="LmsRuntime" data-course-id="course-v1:MITx+HST.953x+3T2020" data-block-type="problem" data-request-token="a9995ff4fe0611ee8dfd026cc65ec0d9" data-has-score="True" data-runtime-version="1" data-init="XBlockToXModuleShim">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Problem"}
</script>
<div id="problem_c8e114b9ecf149febeca5791b4ae6666" class="problems-wrapper" role="group"
aria-labelledby="c8e114b9ecf149febeca5791b4ae6666-problem-title"
data-problem-id="block-v1:MITx+HST.953x+3T2020+type@problem+block@c8e114b9ecf149febeca5791b4ae6666" data-url="/courses/course-v1:MITx+HST.953x+3T2020/xblock/block-v1:MITx+HST.953x+3T2020+type@problem+block@c8e114b9ecf149febeca5791b4ae6666/handler/xmodule_handler"
data-problem-score="0"
data-problem-total-possible="1"
data-attempts-used="0"
data-content="
<h3 class="hd hd-3 problem-header" id="c8e114b9ecf149febeca5791b4ae6666-problem-title" aria-describedby="block-v1:MITx+HST.953x+3T2020+type@problem+block@c8e114b9ecf149febeca5791b4ae6666-problem-progress" tabindex="-1">
Question 2
</h3>
<div class="problem-progress" id="block-v1:MITx+HST.953x+3T2020+type@problem+block@c8e114b9ecf149febeca5791b4ae6666-problem-progress"></div>
<div class="problem">
<div>
<div class="wrapper-problem-response" tabindex="-1" aria-label="Question 1" role="group"><p>What was the upper bound of the 95% confidence interval for the odds ratio of LDL?</p>
<div id="formulaequationinput_c8e114b9ecf149febeca5791b4ae6666_2_1" class="inputtype formulaequationinput">
<div class="unanswered">
<input type="text" name="input_c8e114b9ecf149febeca5791b4ae6666_2_1" id="input_c8e114b9ecf149febeca5791b4ae6666_2_1" data-input-id="c8e114b9ecf149febeca5791b4ae6666_2_1" value="" aria-describedby="status_c8e114b9ecf149febeca5791b4ae6666_2_1" size="20"/>
<span class="trailing_text" id="trailing_text_c8e114b9ecf149febeca5791b4ae6666_2_1"/>
<span class="status unanswered" id="status_c8e114b9ecf149febeca5791b4ae6666_2_1" data-tooltip="Not yet answered.">
<span class="sr">unanswered</span><span class="status-icon" aria-hidden="true"/>
</span>
<p id="answer_c8e114b9ecf149febeca5791b4ae6666_2_1" class="answer"/>
<div id="input_c8e114b9ecf149febeca5791b4ae6666_2_1_preview" class="equation">
\(\)
<img src="/static/images/spinner.bc34f953403f.gif" class="loading" alt="Loading"/>
</div>
</div>
<div class="script_placeholder" data-src="/static/js/capa/src/formula_equation_preview.b1967ab28c31.js"/>
</div></div>
</div>
<div class="action">
<input type="hidden" name="problem_id" value="Question 2" />
<div class="submit-attempt-container">
<button type="button" class="submit btn-brand" data-submitting="Submitting" data-value="Submit" data-should-enable-submit-button="True" aria-describedby="submission_feedback_c8e114b9ecf149febeca5791b4ae6666" >
<span class="submit-label">Submit</span>
</button>
<div class="submission-feedback" id="submission_feedback_c8e114b9ecf149febeca5791b4ae6666">
<span class="sr">Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.</span>
</div>
</div>
<div class="problem-action-buttons-wrapper">
</div>
</div>
<div class="notification warning notification-gentle-alert
is-hidden"
tabindex="-1">
<span class="icon fa fa-exclamation-circle" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="c8e114b9ecf149febeca5791b4ae6666-problem-title">
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
<div class="notification warning notification-save
is-hidden"
tabindex="-1">
<span class="icon fa fa-save" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="c8e114b9ecf149febeca5791b4ae6666-problem-title">None
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
<div class="notification general notification-show-answer
is-hidden"
tabindex="-1">
<span class="icon fa fa-info-circle" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="c8e114b9ecf149febeca5791b4ae6666-problem-title">Answers are displayed within the problem
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
</div>
"
data-graded="False">
<p class="loading-spinner">
<i class="fa fa-spinner fa-pulse fa-2x fa-fw"></i>
<span class="sr">Loading…</span>
</p>
</div>
</div>
</div>
<div class="vert vert-2" data-id="block-v1:MITx+HST.953x+3T2020+type@problem+block@a436bdb719f84f3eb1be6b42e0b5850e">
<div class="xblock xblock-public_view xblock-public_view-problem xmodule_display xmodule_ProblemBlock" data-usage-id="block-v1:MITx+HST.953x+3T2020+type@problem+block@a436bdb719f84f3eb1be6b42e0b5850e" data-graded="False" data-runtime-class="LmsRuntime" data-course-id="course-v1:MITx+HST.953x+3T2020" data-block-type="problem" data-request-token="a9995ff4fe0611ee8dfd026cc65ec0d9" data-has-score="True" data-runtime-version="1" data-init="XBlockToXModuleShim">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Problem"}
</script>
<div id="problem_a436bdb719f84f3eb1be6b42e0b5850e" class="problems-wrapper" role="group"
aria-labelledby="a436bdb719f84f3eb1be6b42e0b5850e-problem-title"
data-problem-id="block-v1:MITx+HST.953x+3T2020+type@problem+block@a436bdb719f84f3eb1be6b42e0b5850e" data-url="/courses/course-v1:MITx+HST.953x+3T2020/xblock/block-v1:MITx+HST.953x+3T2020+type@problem+block@a436bdb719f84f3eb1be6b42e0b5850e/handler/xmodule_handler"
data-problem-score="0"
data-problem-total-possible="1"
data-attempts-used="0"
data-content="
<h3 class="hd hd-3 problem-header" id="a436bdb719f84f3eb1be6b42e0b5850e-problem-title" aria-describedby="block-v1:MITx+HST.953x+3T2020+type@problem+block@a436bdb719f84f3eb1be6b42e0b5850e-problem-progress" tabindex="-1">
Question 3
</h3>
<div class="problem-progress" id="block-v1:MITx+HST.953x+3T2020+type@problem+block@a436bdb719f84f3eb1be6b42e0b5850e-problem-progress"></div>
<div class="problem">
<div>
<div class="wrapper-problem-response" tabindex="-1" aria-label="Question 1" role="group"><p>There was a statistically significant interaction between gender and LDL cholesterol in this dataset</p>
<div class="choicegroup capa_inputtype" id="inputtype_a436bdb719f84f3eb1be6b42e0b5850e_2_1">
<fieldset aria-describedby="status_a436bdb719f84f3eb1be6b42e0b5850e_2_1">
<div class="field">
<input type="radio" name="input_a436bdb719f84f3eb1be6b42e0b5850e_2_1" id="input_a436bdb719f84f3eb1be6b42e0b5850e_2_1_choice_0" class="field-input input-radio" value="choice_0"/><label id="a436bdb719f84f3eb1be6b42e0b5850e_2_1-choice_0-label" for="input_a436bdb719f84f3eb1be6b42e0b5850e_2_1_choice_0" class="response-label field-label label-inline" aria-describedby="status_a436bdb719f84f3eb1be6b42e0b5850e_2_1"> Yes
</label>
</div>
<div class="field">
<input type="radio" name="input_a436bdb719f84f3eb1be6b42e0b5850e_2_1" id="input_a436bdb719f84f3eb1be6b42e0b5850e_2_1_choice_1" class="field-input input-radio" value="choice_1"/><label id="a436bdb719f84f3eb1be6b42e0b5850e_2_1-choice_1-label" for="input_a436bdb719f84f3eb1be6b42e0b5850e_2_1_choice_1" class="response-label field-label label-inline" aria-describedby="status_a436bdb719f84f3eb1be6b42e0b5850e_2_1"> No
</label>
</div>
<div class="field">
<input type="radio" name="input_a436bdb719f84f3eb1be6b42e0b5850e_2_1" id="input_a436bdb719f84f3eb1be6b42e0b5850e_2_1_choice_2" class="field-input input-radio" value="choice_2"/><label id="a436bdb719f84f3eb1be6b42e0b5850e_2_1-choice_2-label" for="input_a436bdb719f84f3eb1be6b42e0b5850e_2_1_choice_2" class="response-label field-label label-inline" aria-describedby="status_a436bdb719f84f3eb1be6b42e0b5850e_2_1"> There is insufficient information
</label>
</div>
<span id="answer_a436bdb719f84f3eb1be6b42e0b5850e_2_1"/>
</fieldset>
<div class="indicator-container">
<span class="status unanswered" id="status_a436bdb719f84f3eb1be6b42e0b5850e_2_1" data-tooltip="Not yet answered.">
<span class="sr">unanswered</span><span class="status-icon" aria-hidden="true"/>
</span>
</div>
</div><div class="solution-span">
<span id="solution_a436bdb719f84f3eb1be6b42e0b5850e_solution_1"/>
</div></div>
</div>
<div class="action">
<input type="hidden" name="problem_id" value="Question 3" />
<div class="submit-attempt-container">
<button type="button" class="submit btn-brand" data-submitting="Submitting" data-value="Submit" data-should-enable-submit-button="True" aria-describedby="submission_feedback_a436bdb719f84f3eb1be6b42e0b5850e" >
<span class="submit-label">Submit</span>
</button>
<div class="submission-feedback" id="submission_feedback_a436bdb719f84f3eb1be6b42e0b5850e">
<span class="sr">Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.</span>
</div>
</div>
<div class="problem-action-buttons-wrapper">
</div>
</div>
<div class="notification warning notification-gentle-alert
is-hidden"
tabindex="-1">
<span class="icon fa fa-exclamation-circle" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="a436bdb719f84f3eb1be6b42e0b5850e-problem-title">
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
<div class="notification warning notification-save
is-hidden"
tabindex="-1">
<span class="icon fa fa-save" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="a436bdb719f84f3eb1be6b42e0b5850e-problem-title">None
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
<div class="notification general notification-show-answer
is-hidden"
tabindex="-1">
<span class="icon fa fa-info-circle" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="a436bdb719f84f3eb1be6b42e0b5850e-problem-title">Answers are displayed within the problem
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
</div>
"
data-graded="False">
<p class="loading-spinner">
<i class="fa fa-spinner fa-pulse fa-2x fa-fw"></i>
<span class="sr">Loading…</span>
</p>
</div>
</div>
</div>
</div>
</div>
© All Rights Reserved