I need to test the effects of different treatments on plants and I would like to know the optimal sample size (number of plants that I need to sample). The variable I need to measure is the average number of insects present in a single plant. In the experiment, I have 3 main treatments and, in each treatment, I have 2 sub-treatments. The information I can provide are the following:
- Average number of larvae per plant: ranging between 0.03 and 0.1
- Standard deviation: ranging between 0.09 and 0.28
- The desired $Z$-score is 1.96
- I have no idea about the minimum detectable effect size but I can guess it could be 10%
Looking online, I have found different formulas that return different results. The first formula was:
$$n_1=\frac{(\sigma_1^2+\sigma_2^2/K)(z_{1-\alpha/2}+z_{1-\beta})^2}{\Delta^2},$$ where:
- $\Delta =|\mu_2-\mu_1|$ is the absolute difference between two means,
- $\sigma_1$, $\sigma_2$ are variances of mean #1 and #2,
- $n_1$, $n_2$ are sample sizes for group #1 and #2,
- $\alpha$ is the probability of type I error (usually 0.05),
- $\beta$ is the probability of type II error (usually 0.2),
- $z$ is the critical $Z$ value for a given $\alpha$ or $\beta$, and
- $k$ is the ratio of sample size for group #2 to group #1.
With this formula, comparing these two means (0.03 and 0.09) and using a standard deviation of 0.09, I am getting $n = 35$ for each treatment.
A different formula I found is:
$$n=\frac{2\sigma^2 Z^2}{d^2},$$ where
- $n$ is the required sample size per sub-treatment group,
- $\sigma^2$ is the estimated variance,
- $Z$ is the $Z$ score, and
- $d$ is the minimum detectable effect size.
With this formula, using a mean of 0.03 and a standard deviation of 0.09, I am getting $n > 6000$ for each treatment.
Could you suggest me a simple and efficient formula for calculating the sample size?