{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Computing Mean Reaction Times and Confidence Intervals\n", "\n", "This continues the previous lesson, which got a bit long for one lesson. Recall that our task was to read three data files in the `data` directory, each RT data from a different participant, and combine them in a DataFrame named `df`. We did all that in the previous lesson, and got as far as calculating the mean RT for each participant. In this lesson, we'll continue the task by calculating the mean RT across all participants, and calculating the 95% confidence intervals (CIs) for the mean RT for each participant and for the mean RT across all participants. \n", "\n", "Since this is a new notebook file, we need to import the libraries we will use, and import the data. To do this, we've copied and pasted the code from the previous lesson into the code cell below (a few lines were deleted for simplicity)." ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | participantID | \n", "trial | \n", "RT | \n", "
---|---|---|---|
0 | \n", "s2 | \n", "1 | \n", "0.433094 | \n", "
1 | \n", "s2 | \n", "2 | \n", "0.392526 | \n", "
2 | \n", "s2 | \n", "3 | \n", "0.396831 | \n", "
3 | \n", "s2 | \n", "4 | \n", "0.417988 | \n", "
4 | \n", "s2 | \n", "5 | \n", "0.371810 | \n", "