{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "
Introduction to hypothesis testing
\n", "\n", "An important part of the scientific process is to make hypotheses about the world or about the results of experiments. These hypotheses need then to be checked by collecting evidence and making comparisons. Hypothesis testing is a step in this process where statistical tools are used to test hypotheses using data.\n", "\n", "**This notebook is designed for you to learn**:\n", "* How to distinguish between \"population\" datasets and \"sample\" datasets when dealing with experimental data\n", "* How to compare a sample to a population, test a hypothesis using a statistical test called the \"t-test\" and interpret its results\n", "* How to use Python scripts to make statistical analyses on a dataset\n", "\n", "In the following, we will use an example dataset representing series of measurements on a type of flower called Iris." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "---" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Introduction\n", "\n", "shift + enter
.You can check your answer by clicking on the \"...\" below.
\n", "mu
and sets its value to 5.552
.mu
mu_versicolor
with a value of 4.26
and display it. \n",
"\n", " | petal_length | \n", "petal_width | \n", "
---|---|---|
0 | \n", "5.090981 | \n", "1.787443 | \n", "
1 | \n", "5.224431 | \n", "2.259538 | \n", "
2 | \n", "7.251620 | \n", "2.055940 | \n", "
3 | \n", "5.607932 | \n", "2.311074 | \n", "
4 | \n", "6.118801 | \n", "1.997534 | \n", "
\"petal_width\"
?You can check your answer by clicking on the \"...\" below.
\n", "\"petal_width\"
column of the table: we simply change the name of the column we want to access. \n",
"\n", " | petal_length | \n", "petal_width | \n", "
---|---|---|
count | \n", "50.000000 | \n", "50.000000 | \n", "
mean | \n", "5.713045 | \n", "2.021249 | \n", "
std | \n", "0.518940 | \n", "0.248203 | \n", "
min | \n", "4.694441 | \n", "1.484636 | \n", "
25% | \n", "5.428526 | \n", "1.834893 | \n", "
50% | \n", "5.692604 | \n", "2.036254 | \n", "
75% | \n", "6.070874 | \n", "2.204745 | \n", "
max | \n", "7.251620 | \n", "2.633884 | \n", "
You can check your answer by clicking on the \"...\" below.
\n", "5.713045 cm
.0.518940 cm
.\n",
"sample_stats
table?You can check your answer by clicking on the \"...\" below.
\n", "sample_stats
table: we use the name of the line containing the value, std
, and we store the result in a variable called sample_std
.\n",
"