You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li><ahref="#how-to-calculate-the-error-on-the-mean" id="toc-how-to-calculate-the-error-on-the-mean" class="nav-link" data-scroll-target="#how-to-calculate-the-error-on-the-mean">How to calculate the error on the mean</a>
150
-
<ulclass="collapse">
149
+
<li><ahref="#how-to-calculate-the-error-on-the-mean" id="toc-how-to-calculate-the-error-on-the-mean" class="nav-link" data-scroll-target="#how-to-calculate-the-error-on-the-mean">How to calculate the error on the mean</a></li>
151
150
<li><ahref="#task-example-data" id="toc-task-example-data" class="nav-link" data-scroll-target="#task-example-data">Task: Example data</a></li>
152
-
</ul></li>
153
151
<li><ahref="#things-to-notice" id="toc-things-to-notice" class="nav-link" data-scroll-target="#things-to-notice">Things to notice</a></li>
<p><b>Done!</b> You have calculated the error on the mean (a.k.a. <ahref="https://youtu.be/Vm1NcJuJeeY?si=oBoA21bTB030B9Ix">the standard error</a>)</p>
217
215
<p>Bear in mind that you <b>only do this when the conditions are the same</b>. In the soccer ball example you would not combine results from different PSI when you do the calculation above because different PSI means different conditions.</p>
218
-
<sectionid="task-example-data" class="level3">
219
-
<h3class="anchored" data-anchor-id="task-example-data">Task: Example data</h3>
216
+
</section>
217
+
<sectionid="task-example-data" class="level2">
218
+
<h2class="anchored" data-anchor-id="task-example-data">Task: Example data</h2>
220
219
<p>Let’s take the example of kicking the soccer ball. We try to kick it with the same effort for ten kicks and the measured distance comes out like this:</p>
<p>If you do the procedure in the previous section and take the measurement minus the average and square it and do that for each number and add it all up you would get 72.9. Then divide by the number of measurements which is 10 so then you have 7.29 and then take the square root which would give 2.7 feet.</p>
224
223
<p>So the average distance would be 37.9 feet +/- 2.7 feet, which seems resonable given that the range of values is from 34 feet to 42 feet and that we only did 10 trials. Specifically the uncertainty of 2.7 feet is the uncertainty “on the mean”</p>
225
224
<p>Here is another set of data – let’s say that your friend kicked the ball and they can kick further than you. Here is the data:</p>
<p><b> Verify that the average distance</b> is 44.4 feet with an uncertainty on the mean of +/- 4.4 feet</p>
226
+
<p><b> Verify that the average distance</b> is 44.4 feet with an uncertainty on the mean of +/- 4.4 feet. After you can confirm this with a calculator (or maybe <ahref="http://desmos.com">desmos</a>) confirm it using a spreadsheet!</p>
228
227
<p><b>Generate a set of measurements (just make up some data!) and calculate the mean and the uncertainty</b> and give them to your friend to see that you came up with the same values</p>
229
228
</section>
230
-
</section>
231
229
<sectionid="things-to-notice" class="level2">
232
230
<h2class="anchored" data-anchor-id="things-to-notice">Things to notice</h2>
233
231
<p>Because we are dividing by the number of measurements, as we do more measurements the error on the mean (a.k.a. <ahref="https://youtu.be/Vm1NcJuJeeY?si=oBoA21bTB030B9Ix">standard error</a>) should decrease, which makes sense because as we do more trials the mean from all those trials should get more and more accurate.</p>
"section": "How to calculate the error on the mean",
1582
-
"text": "How to calculate the error on the mean\nIf you have multiple trials with THE SAME CONDITIONS (in the example the same PSI) then you can calculate the error on the mean as follows:\n\nCalculate the mean of all the trials\nFor each trial, subtract that specific number from the mean you just calculated. Take that result and square it.\nDo this step of subtracting the result of each trial from the mean and square it for all your meausrements.\nTake all of these values where you have subtracted the measurement and the mean and squared it and add them all together.\nTake the result of that adding these values together and divide by the number of measurements\nTake the result from dividing by the number of measurements and take the square root\n\nDone! You have calculated the error on the mean (a.k.a. the standard error)\nBear in mind that you only do this when the conditions are the same. In the soccer ball example you would not combine results from different PSI when you do the calculation above because different PSI means different conditions.\n\nTask: Example data\nLet’s take the example of kicking the soccer ball. We try to kick it with the same effort for ten kicks and the measured distance comes out like this:\n35 feet, 39 feet, 40 feet, 42 feet, 37 feet, 34 feet, 41 feet, 35 feet, 36 feet, 40 feet\nThe average distance would be 37.9 feet.\nIf you do the procedure in the previous section and take the measurement minus the average and square it and do that for each number and add it all up you would get 72.9. Then divide by the number of measurements which is 10 so then you have 7.29 and then take the square root which would give 2.7 feet.\nSo the average distance would be 37.9 feet +/- 2.7 feet, which seems resonable given that the range of values is from 34 feet to 42 feet and that we only did 10 trials. Specifically the uncertainty of 2.7 feet is the uncertainty “on the mean”\nHere is another set of data – let’s say that your friend kicked the ball and they can kick further than you. Here is the data:\n45 feet, 47 feet, 38 feet, 39 feet, 47 feet, 51 feet, 40 feet, 41 feet, 46 feet, 50 feet\n Verify that the average distance is 44.4 feet with an uncertainty on the mean of +/- 4.4 feet\nGenerate a set of measurements (just make up some data!) and calculate the mean and the uncertainty and give them to your friend to see that you came up with the same values"
1582
+
"text": "How to calculate the error on the mean\nIf you have multiple trials with THE SAME CONDITIONS (in the example the same PSI) then you can calculate the error on the mean as follows:\n\nCalculate the mean of all the trials\nFor each trial, subtract that specific number from the mean you just calculated. Take that result and square it.\nDo this step of subtracting the result of each trial from the mean and square it for all your meausrements.\nTake all of these values where you have subtracted the measurement and the mean and squared it and add them all together.\nTake the result of that adding these values together and divide by the number of measurements\nTake the result from dividing by the number of measurements and take the square root\n\nDone! You have calculated the error on the mean (a.k.a. the standard error)\nBear in mind that you only do this when the conditions are the same. In the soccer ball example you would not combine results from different PSI when you do the calculation above because different PSI means different conditions."
"title": "WeTeach_CS 2025 Summer Teacher Training Schedule",
1966
1966
"section": "Week 2, Wednesday",
1967
1967
"text": "Week 2, Wednesday\n\nAny extra questions about activities covered, or activities we did not have time to go over (1 hour)\nZoom breakouts / check ins / individual plans to do more data science and CS in their classes + any extra questions about any activities covered (2.5 hours)"
"text": "Task: Example data\nLet’s take the example of kicking the soccer ball. We try to kick it with the same effort for ten kicks and the measured distance comes out like this:\n35 feet, 39 feet, 40 feet, 42 feet, 37 feet, 34 feet, 41 feet, 35 feet, 36 feet, 40 feet\nThe average distance would be 37.9 feet.\nIf you do the procedure in the previous section and take the measurement minus the average and square it and do that for each number and add it all up you would get 72.9. Then divide by the number of measurements which is 10 so then you have 7.29 and then take the square root which would give 2.7 feet.\nSo the average distance would be 37.9 feet +/- 2.7 feet, which seems resonable given that the range of values is from 34 feet to 42 feet and that we only did 10 trials. Specifically the uncertainty of 2.7 feet is the uncertainty “on the mean”\nHere is another set of data – let’s say that your friend kicked the ball and they can kick further than you. Here is the data:\n45 feet, 47 feet, 38 feet, 39 feet, 47 feet, 51 feet, 40 feet, 41 feet, 46 feet, 50 feet\n Verify that the average distance is 44.4 feet with an uncertainty on the mean of +/- 4.4 feet. After you can confirm this with a calculator (or maybe desmos) confirm it using a spreadsheet!\nGenerate a set of measurements (just make up some data!) and calculate the mean and the uncertainty and give them to your friend to see that you came up with the same values"
Copy file name to clipboardExpand all lines: projects/errorbar2.qmd
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ If you have multiple trials with THE SAME CONDITIONS (in the example the same PS
46
46
47
47
Bear in mind that you <b>only do this when the conditions are the same</b>. In the soccer ball example you would not combine results from different PSI when you do the calculation above because different PSI means different conditions.
48
48
49
-
###Task: Example data
49
+
## Task: Example data
50
50
51
51
Let's take the example of kicking the soccer ball. We try to kick it with the same effort for ten kicks and the measured distance comes out like this:
52
52
@@ -62,7 +62,7 @@ Here is another set of data -- let's say that your friend kicked the ball and th
<b> Verify that the average distance</b> is 44.4 feet with an uncertainty on the mean of +/- 4.4 feet
65
+
<b> Verify that the average distance</b> is 44.4 feet with an uncertainty on the mean of +/- 4.4 feet. After you can confirm this with a calculator (or maybe [desmos](http://desmos.com)) confirm it using a spreadsheet!
66
66
67
67
<b>Generate a set of measurements (just make up some data!) and calculate the mean and the uncertainty</b> and give them to your friend to see that you came up with the same values
0 commit comments