Learn practical skills, build real-world projects, and advance your career
Created 4 years ago
Hypothesis Testing
Credits: Forked from CompStats by Allen Downey. License: Creative Commons Attribution 4.0 International.
from __future__ import print_function, division
import numpy
import scipy.stats
import matplotlib.pyplot as pyplot
from IPython.html.widgets import interact, fixed
from IPython.html import widgets
import first
# seed the random number generator so we all get the same results
numpy.random.seed(19)
# some nicer colors from http://colorbrewer2.org/
COLOR1 = '#7fc97f'
COLOR2 = '#beaed4'
COLOR3 = '#fdc086'
COLOR4 = '#ffff99'
COLOR5 = '#386cb0'
%matplotlib inline
Part One
As an example, let's look at differences between groups. The example I use in Think Stats is first babies compared with others. The first
module provides code to read the data into three pandas Dataframes.
live, firsts, others = first.MakeFrames()