Skip to content

Commit ac58292

Browse files
committed
adding errorbar3
1 parent d1eca17 commit ac58292

7 files changed

Lines changed: 752 additions & 41 deletions

File tree

‎docs/activities.html‎

Lines changed: 70 additions & 40 deletions
Large diffs are not rendered by default.
328 KB
Loading

‎docs/listings.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"/projects/conductor.html",
1616
"/projects/ecology.html",
1717
"/projects/earth.html",
18+
"/projects/errorbar3.html",
1819
"/projects/black.html",
1920
"/projects/exo.html",
2021
"/projects/fluidmechanics.html",

‎docs/projects/errorbar3.html‎

Lines changed: 620 additions & 0 deletions
Large diffs are not rendered by default.

‎docs/search.json‎

Lines changed: 22 additions & 1 deletion
Large diffs are not rendered by default.

‎img/Male_and_female_appensa.jpg‎

328 KB
Loading

‎projects/errorbar3.qmd‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: "Error bars and animal sizes"
3+
image: ../img/Male_and_female_appensa.jpg
4+
categories:
5+
- All Ages
6+
- Data Science
7+
- Spreadsheets
8+
---
9+
10+
[![](../img/Male_and_female_appensa.jpg){fig-align="center" height=400}](https://commons.wikimedia.org/wiki/File:Male_and_female_A._appensa.jpg)
11+
12+
In some species, the males have a different average size than the females
13+
14+
# Animal dimorphism
15+
16+
The image above shows an example of size dimorphism in the spider species <i>Argiope appensa</i>. On the left is the female and on the right is the male. As you can see there the female (left) is much larger than the male (right).
17+
18+
There are many species where the females are larger than the males (ex. cicadas, some species of Octopus), and there are many examples of species where the males are larger than the females (ex. lions, elephant seals, Orangutangs). In humans, for example, males are on average 7% taller than females. There are, of course, many examples of females who are taller than the average height of males and males who are shorter than the average height of females, but <i>on average</i> men tend to be 7% taller than women.
19+
20+
In some species, like the <i>Argiope appensa</i> spider, the difference is pretty big whereas other species (like cicadas or humans) the difference is not as large as that. <b>How big or how small the difference in average sizes between male and female tells you something interesting about that species and their life cycle!</b> So if there was a new species discovered we would want to know what the size difference was and whether males or females tend to be larger on average.
21+
22+
## The problem
23+
24+
If a new species has been discovered we might only have a few specimens to determine the average sizes. If we have at least one male and at least one female we can estimate the difference in average sizes, but <b>how do we know if the few individuals we have to measure are unusually large or small?</b>
25+
26+
## Solution: Calculate the error on the mean
27+
28+
We discussed this exact situation in [Are my error bars big or small?](errorbar2.html). Specifically we discussed situations where we have some number of trials and we need to know not just the average value, but we also need to know the uncertainty in the average value (a.k.a. the error on the mean). Here is the procedure that we discussed where we have replaced measuring tire PSI with measuring animal sizes:
29+
30+
If you have multiple specimens that are either all male or all female then you can calculate the error on the mean as follows:
31+
32+
* Calculate the mean of all the male specimens (later do all these steps again for all the female specimens)
33+
* For each specimen, subtract that specific size from the mean you just calculated. Take that result and square it.
34+
* Do this step of subtracting the result of each specimen size from the mean and square it for all your meausrements
35+
* Take all of these values where you have subtracted the measurement and the mean and squared it and add them all together
36+
* Take the result of that adding these values together and divide by the number of measurements
37+
* Take the result from dividing by the number of measurements and take the square root
38+
39+
<b>Done!</b> You have calculated the error on the mean! If you just did this calculation for the male specimens, now do the calculation for the female specimens!

0 commit comments

Comments
 (0)