diff --git a/solution/HPLstats_notebook-solution.ipynb b/solution/HPLstats_notebook-solution.ipynb new file mode 100644 index 0000000..55c726b --- /dev/null +++ b/solution/HPLstats_notebook-solution.ipynb @@ -0,0 +1,70 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "
\n", + " How People Learn - Autumn 2019-2020
\n", + " C. Hardebolle, R. Tormey - CC BY NC SA 4.0 International
\n", + "
" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Solution of the exercise\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "**A. Getting familiar with the code.**\n", + "1. In the code cells above, where is the t-test computed?\n", + "1. What are the two parameters that the t-test function takes as input?\n", + "1. If you wanted to change the population mean to a different value, like $\\mu = 5.4$ cm for instance, in which cell would you change it? \n", + "1. What is the result of the t-test if you compare the Vullierens sample to a population mean of $\\mu = 5.4$ cm?\n", + "\n", + "*Change the value of $\\mu$ back to 5.552 before working on the following questions.*\n", + "\n", + "**B. Analyzing another dataset.**\n", + "\n", + "A researcher from Tokyo sends you the results of a series of measurements she has done on the Irises of the [Meiji Jingu Imperial Gardens](http://www.meijijingu.or.jp/english/nature/2.html). The dataset can be found in the `iris-sample2-meiji.csv` file. \n", + "How similar (or different) is the Meiji sample compared to the Iris virginica population documented by Edgar Anderson?\n", + "\n", + "The following questions are designed to guide you in analyzing this new dataset using this notebook.\n", + "\n", + "1. Which of the code cells above loads the data from the file containing the Vullierens dataset? Modify it to load the Mejij dataset.\n", + "1. Do you need to modify anything else in the code to analyze this new dataset?\n", + "1. What can you conclude about the Meiji sample from this analysis?\n", + "\n", + "**C. Going a bit further in the interpretation of the t-test.**\n", + "1. In the code cells above, where is the cut-off point $\\alpha$ defined? Change its value to 0.01 and re-execute the notebook. \n", + "1. How does this affect the result of the t-test for the Meiji sample?" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.6.8" + } + }, + "nbformat": 4, + "nbformat_minor": 4 +}