Covariance of Sample Mean and Sample Standard Deviation
Last updated on
Oct 29, 2022
4 min read
Introduction
Let be a random sample (i.e.
are independent and identically distributed).
The sample mean and sample standard deviation are defined respectively
as:
If the sample is taken from a normal population, then and are independent. Without the assumption of normality, Zhang (2007) shows
that the covariance of and is , where
is the third central moment of and denotes the sample size,
and Sen (2012) provides the correlation between and . Now
naturally it is of interest to know what the covariance of and
is without the assumption of normality. In the next section we
present our main results; we give the proofs in Section 3 and an example
in Section 4.
Main Results
In what follows, denote the mean, variance, third and fourth central
moments of by , , and ,
respectively.
Theorem 1. The asymptotic covariance of and is
Corollary. The asymptotic correlation between and is
where
Remark 1: The
result shown in the
Corollary has been given in Miller (1997), but there is no proof or derivation.
Proofs
Proof of Theorem 1. Let
It
follows that
where
and are the sample mean and sample standard deviation of
. Thus,
Since the Taylor's expansion of function
at is we have
from which
it follows that
Therefore,
Proof of the Corollary. We have obtained the asymptotic covariance of
and , and we need to derive the variances of and
. Since
we only need to show
how to derive the asymptotic mean of . If we keep the quadratic term,
then the Taylor's expansion of at is
Now we
have
Thus,
it follows that
if the terms are discarded. (Note that in the above for
the variance of , we used the formula in Miller, 1997, p. 7. A
direct derivation of the variance formula is available from the author
upon request.)
An Example
The accuracy of the result in Theorem 1
depends on the parent distribution and sample size ; in this section,
we use an example to illustrate its accuracy.
Let be independent and identically distributed
Bernoulli random variables and , where . In this case
the third central moment of and the
standard deviation of
thus the
asymptotic covariance of and is
Noticing that for , we have
where and it has the binomial
distribution . Now, we write
where the binomial probability mass
For some given
values of and , we are able to compute the exact and asymptotic
covariance respectively; we present the results in Table 1. We see from
Table 1 that the results given by Theorem 1 is accurate even for the sample size as
small as .
Table 1: For various values of and , we obtain exact (indicated by “Exact”) and asymptotic (indicated by “Asy”) covariances.
Remark 2: For regardless of the value of , our numerical
results suggest that the covariance is equal to .
Reference
Miller, R. G. (1997). Beyond ANOVA. Chapman and Hall.
Sen, A. (2012). On the Interrelation Between the Sample Mean and the
Sample Variance. The American Statistician, 66, 112-117.
Zhang, L. (2007). Sample Mean and Sample Variance: Their Covariance and
Their (In)Dependence. The American Statistician, 61, 159-160.