What's the right way to compute the Standard Error of the Mean of the ratio of two random variables that follow a binomial distribution?
I asked a similar question here using Weibull distributions and now I'm interested on the relationship between binomial distributions.
I'm running an experiment that tracks success/failure rate of two distinct groups over 7 days in a row. These two two groups follow a binomial distribution:
$$X \sim \mbox{B}({ n }_{ 1 },{ p }_{ 1 })$$ $$Y \sim \mbox{B}({ n }_{ 2 },{ p }_{ 2 })$$
The experiment starts with a sample of ~ 10k observations in each group but the sample size differs during the following days (eg: I can have [10k 5k 7k 3k 2k 1k 0.5k 0.8k]
observations for a group. Each number equals the number of observations of that group in a specific day, no day will have more than the initial sample size observations, an observation on day 3 can also be observed on day 5 and all observations will always be included on day 0).
I want to calculate the $SEM$ of the following ratio:
$$Z=\frac {X-Y}{Y}$$
The method I'm following is obtaining the Expected Value and Variation of the ratio by using Taylor Expansions.
Since both distributions have $N*\hat{p} > 5$ and $N*(1-\hat{p})> 5$ we can assume it follows a normal distribution and compute the $SEM$ by using:
$${SEM_i}= \frac{{\sigma_i}}{\sqrt{N_i}}$$
where ${N_i}$ is the sample size in day $i$.
It turns out that this yields
- a very small $SEM$ (about 0.2~1% of the mean) when I use ${N_i}={Nx_i}+{Ny_i}$ and
- a really huge $SEM$ (about 2~3 times the mean) when I use ${N_i} = 7-i$ (the number of days I run the experiment), so it makes me question the right $N$ to use.
Which one of these points is the correct one to get the $ {N_i} $?