Bernoulli_SD
Bernoulli_SD.Rmd
Derivation notes
For a series of Bernoulli observations, Y_i, the variance of the observations is given by
where is the mean of the observations.
However, if the data is structured as Binomial observations, ( trials, successes, and failures) we need to weight the observations by the number of trials, to understand the underlying Bernoulli process.
First, to determine the mean of the underlying Bernoulli process:
i.e. the sum of observed successes divided by the total number of trials.
Then, we can sub-divide the sum of squares into the sum of squares of the successes and the sum of squares of the failures:
We follow simialr process to enumerate the variance of the fitted values, . The mean of the fitted values is:
and the variance is: