I am learning statistical analysis, and am now confused about calculating the standard error of the mean.
My dataset looks like..
Condition A:
animal 1 - 3,4,4,3,6
animal 2 - 5,5,5,8,7
Condition B:
animal 3 - 3,4,5,1,6
animal 4 - 3,1,1,4,8
How can I calculate the standard error of the mean for condition A? I am confused by two methods
1) Simply taking the mean for two animals and use the means of them, like
mean for animal 1: 4
mean for animal 2: 6
overall mean : 5
SD: $\sqrt{\frac{\left[\left(6-5\right)^{2} + \left(4-5\right)^{2}\right]}{2-1}} = \sqrt{2}$
SE: $\frac{\sqrt{2}}{\sqrt{2}} = 1$
or maybe using all the measurements like
SD: $\sqrt{\frac{\left[\left(3-5\right)^{2} + \left(4-5\right)^{2} + \left(4-5\right)^2 + ...... + \left(8-5\right)^2 + \left(7-5\right)^{2}\right]}{\left(10-1\right)}} = \sqrt{\frac{24}{9}}$
SE: $\frac{\sqrt{\frac{24}{9}}}{\sqrt{10}} = 0.51$
Whichi is right? Thanks in advance.