Assignment-3/Part-1/tests/q2.py test = { 'name': 'q2', 'points': 2, 'suites': [{'cases': [{'code': '>>> assert x >= XXXXXXXXXXor x >> assert ab_reasonable == True\n', 'hidden': False, 'locked':...

part2 in assignment 3 is not to be done, instead it has to be done from the updated part2 file


Assignment-3/Part-1/tests/q2.py test = { 'name': 'q2', 'points': 2, 'suites': [{'cases': [{'code': '>>> assert x >= 0.0093 or x <= 0.9907\n',="" 'hidden':="" false,="" 'locked':="" false}],="" 'scored':="" true,="" 'setup':="" '',="" 'teardown':="" '',="" 'type':="" 'doctest'}]}="" assignment-3/part-1/tests/q7.py="" test="{'name':" 'q7',="" 'points':="" 2,="" 'suites':="" [{'cases':="" [{'code':="" '="">>> assert ab_reasonable == True\n', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]} Assignment-3/Part-1/tests/q1.py test = { 'name': 'q1', 'points': 2, 'suites': [ { 'cases': [{'code': '>>> assert observed == 0.02625;\n>>> assert observed_diabetes_distance == 0.01695\n', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]} Assignment-3/Part-1/tests/q14.py test = {'name': 'q14', 'points': 2, 'suites': [{'cases': [], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]} Assignment-3/Part-1/tests/q12.py test = { 'name': 'q12', 'points': 2, 'suites': [{'cases': [{'code': '>>> assert framingham_simulated_stats.size == 1000\n', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]} Assignment-3/Part-1/Assignment3_Part1.ipynb { "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "deletable": false, "editable": false }, "outputs": [], "source": [ "# Initialize Otter\n", "import otter\n", "grader = otter.Notebook()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Instructions" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## **Assignment Instructions**" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "* **How to install 'otter'**: Run `pip install otter-grader` in your Anaconda Command Prompt\n", "* **Otter**: It is an autograder that we will be using for grading your notebooks.\n", "* **grader.check('qn')**: This command runs test cases for nth question `qn` provided to you and displays the result. But these are not the only test cases, these are provided just for your basic testing. There will be some *hidden test cases* on which your answers will be tested as well.\n", "* You are **not** allowed to edit any pre-defined variables and as per the instructions for every question you have to assign your answers to these variables.\n", "* Write your answers in place of `...` where prompted" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## **Submission Instructions**" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "* There are two parts of this assignment. You should name both notebooks as **YourRollNumber_PartNumber.ipynb**. (e.g. this part should be named as *`2XXXXXXX_1.ipynb`*)\n", "* You must submit a zip file containg just two notebooks and it must not has any folder or any other file. \n", "* The name of the zip file must be your `Roll Number`" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## **Grading**" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Grading is broken down into autograded answers and free response.\n", "\n", "* For autograded answers, the results of your code are compared to provided and/or hidden tests.\n", "* There are default assignments in some questions, storing the state of the dataframes at the time of that particular question in '*#_q#*' variables. Do NOT change any of these assignments as they are used by the auto-grader to check your answers.\n", "* For free response, readers will evaluate how well you answered the question and/or fulfilled the requirements of the question." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### **Importing Libraries**" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "id": "3Y120dBkpzdC" }, "outputs": [], "source": [ "import pandas as pd\n", "import numpy as np\n", "%matplotlib inline\n", "import matplotlib.pyplot as plots\n", "import matplotlib.pyplot as plt\n", "plots.style.use('fivethirtyeight')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# The Framingham Heart Study" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The [Framingham Heart Study](https://en.wikipedia.org/wiki/Framingham_Heart_Study) is an observational study of cardiovascular health. Cardiovascular disease is one of the leading causes of death in the United States, as you will see in tomorrow’s homework. The initial study followed over 5,000 volunteers for several decades, and followup studies even looked at their descendants. In this lab, we'll investigate some of its key findings about diet, cholesterol, and heart disease.\n", "\n", "Run the cell below to examine data for almost 4,000 subjects from the first wave of the study, collected in 1956." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### **Loading Data**" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 388 }, "id": "GkS1TPoyqidw", "outputId": "84610cea-e225-47d2-84ea-b40b7d28b569", "scrolled": false }, "outputs": [ { "data": { "text/html": [ "
\n", "\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n",





























AGESYSBPDIABPTOTCHOLCURSMOKEDIABETESGLUCOSEDEATHANYCHD
039106.070.0195.00077.001

Nov 18, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here