https://colab.research.google.com/drive/1hUgt3_-gjWjLu0g9CZUpqE091wpZN4GI?usp=sharing

1 answer below »
https://colab.research.google.com/drive/1hUgt3_-gjWjLu0g9CZUpqE091wpZN4GI?usp=sharing
Answered Same DayOct 15, 2021

Answer To: https://colab.research.google.com/drive/1hUgt3_-gjWjLu0g9CZUpqE091wpZN4GI?usp=sharing

Suraj answered on Oct 16 2021
133 Votes
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# GEOG 380L Lab 07: Inferential Statistics With Python -- Statistical Hypothesis Testing With Python\n",
"\n",
"Lecture Instructor: Dr. Liping Yang\n",
"\n",
"Lab instructor: Dr. Liping Yang "
]
},
{
"cell_type": "code",
"execution_count": 108,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"welcome to GEOG 380L Lab 07, the last Lab for GEOG380L!\n"
]
}
],
"source": [
"print (\"welcome to GEOG 380L Lab 07, the last Lab for GEO
G380L!\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# In order to be able to learn statistics with Python, we need to learn the basic syntax and usages of python. No Python programming experience and Jupyter notebook usage expericen before? Do not worry. All the things will be covered through this course and we will learn as we build!\n",
"The goal of Lab 07\n",
"\n",
" Test how well you have mastered the theory and coding skills you have learned from both lecture along with demo using Python to do hypothesis testing tasks\n",
" Test how well you have mastered how to manipulate a given dataset using pandas and numpy libraries to solve hypothesis testing tasks.\n",
"\n",
"The total points of Lab 07, which contains four (4) tasks, are 30.\n",
"How to submit your lab assignments to UNM Learn.\n",
"\n",
"Important, read THIS before you work on your Lab 02 for how to submit your lab assignments to UNM Learn.\n",
"Task 00 -- importing required libraries and Loading the dataset (Dr. Yang has done this for you)\n",
"\n",
"We will use the same heart disease dataset we used in the lecture demo for this Lab. They are loaded below by Dr. Yang for you."
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"# Importing required libraries.\n",
"import pandas as pd\n",
"import numpy as np"
]
},
{
"cell_type": "code",
"execution_count": 18,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"
\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",
"\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",
"\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",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"
agesexcptrestbpscholfbsrestecgthalachexangoldpeakslopecathaltarget
063131452331015002.30011
137121302500118703.50021
241011302040017201.42021
356111202360117800.82021
457001203540116310.62021
\n",
"
"
],
"text/plain": [
" age sex cp trestbps chol fbs restecg thalach exang oldpeak slope \\\n",
"0 63 1 3 145 233 1 0 150 0 2.3 0 \n",
"1 37 1 2 130 250 0 1 187 0 3.5 0 \n",
"2 41 0 1 130 204 0 0 172 0 1.4 2 \n",
"3 56 1 1 120 236 0 1 178 0 0.8 2 \n",
"4 57 0 0 120 354 0 1 163 1 ...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here