InfluentialPoints.com Biology, images, analysis, design... 

"It has long been an axiom of mine that the little things are infinitely the most important" 

Statistical Power and sample sizeOn this page: Predicting Ztest statistical power Estimating required sample size for a ZtestPredicting statistical power for the ZtestOnetailed testWorked exampleThe population mean (μ_{0}) for the concentration of copper in blood of llamas was taken as 8.72 μmol/litre with the population standard deviation of observations as 1.3825. We ask what would be the probability of a onetailed Ztest correctly rejecting the null hypothesis when comparing a mean of sample size = 4 drawn from a population with a mean μ_{1} of 9.59 μmol/litre.
We can conclude that the chance of getting a significant result with a onetailed test is only 35%. Twotailed testWorked exampleUsing exactly the same parameters as the example above, we ask what would be the probability of a twotailed Ztest correctly rejecting the null hypothesis.
We can conclude that the chance of getting a significant result with a twotailed test is only 24.21%. Note that the probability of a Type III error here is very small at only 0.0006, so it has little effect on the power calculation. Clearly if we only took four samples, our test would have very little power to reject the null hypothesis. The question then is how many samples would be required to give us a reasonable chance (say 80%) of rejecting the null hypothesis. We could use repeated estimates of the power for different sample sizes to produce a power curve: The required number of samples for a power of 80% could then be read of the graph  in this case we would need around 20 samples. But it would be a lot easier to rearrange the equation, and estimate the required number of samples directly.
Estimating required sample size for the ZtestOnetailed testWorked exampleIf the normal concentration of copper in blood of llamas is 8.72 with a standard deviation of 1.3825, how many samples would have to be taken to detect a level of more than 10% above this level (that is a difference of 0.87 or more) with a power of 80%. Using the formula given We can conclude that to obtain a significant difference at the 5% level for a mean 10% greater than the population mean we would have to sample at least 16 animals. Twotailed testSample size calculations for a twotailed test are identical except that you use the z values at α/2 instead of α. Worked exampleIf the normal concentration of copper in blood of llamas is 8.72 with a standard deviation of 1.3825, how many samples would have to be taken to detect a difference of 10% or more above or below this level (that is a difference of 0.87 or more) with a power of 80%. Using the formula given We can conclude that to obtain a significant difference at the 5% level for a mean 10% greater or less than than the population mean we would have to sample at least 20 animals.
