March 2020
Beginner to intermediate
352 pages
8h 40m
English
Let's perform hypothesis testing using the stats library. Let's consider the following scenario.
In a study about mental health in youth, 48% of parents believed that social media was the cause of their teenagers' stress:
Data: 4,500 people were surveyed, and 65% of those who were surveyed believed that their teenagers' stress is due to social media.
Let's start the hypothesis testing:
import statsmodels.api as smimport numpy as npimport matplotlib.pyplot as pltimport pandas as pd
n = 4500pnull= 0.48phat = 0.65
Read now
Unlock full access