A strategy has four years of monthly returns, and their average is the obvious guess for its expected monthly return. How good is that guess, and how far from the true value might it be? The answer depends on a model of how the returns were generated, and on which properties of that model are actually used. This lesson derives the estimator from a likelihood, shows with the law of large numbers that it settles at the right value as data accumulate, and uses the central limit theorem and exact normal results to attach a standard error and a confidence interval, keeping track of which statements are exact and which are limits.
Key terms
Likelihood function
Definition A statistical model for data is a family of joint densities or probability mass functions , indexed by a parameter in a parameter set . The likelihood function is , the joint density at the observed data, read as a function of with held fixed. When the model makes the observations independent with a common density , the joint density factors and
On the set of with , the log-likelihood is
and because the logarithm is strictly increasing, and are largest at the same parameter values. Independence is what produces the product. For dependent observations, such as a time series, the joint density factors instead into conditional densities,
where . The likelihood is not a probability distribution over . Its integral over need not be or even finite, and it becomes a posterior density only after it is multiplied by a prior and normalized.
In plain words The data are already in hand and stay fixed. For each candidate parameter, the likelihood measures how much density the model would have put on exactly these observations, so comparing two parameter values means comparing two numbers computed from the same data.
Example Four constructed returns , , and , in percent, are modeled as independent draws from , a normal law with unknown mean and known standard deviation . Adding and subtracting the sample mean inside each square gives , so
The difference says that the likelihood at is times the likelihood at . The integral of over all real is about , not , which confirms that is not a density for .
Maximum likelihood estimator
Definition A maximum likelihood estimate for data is a value with
The maximum likelihood estimator is the rule , and applied to the random sample it gives a random variable . A maximizer need not exist and need not be unique, so each model needs its own argument. For independent observations from with known and , the log-likelihood and its derivative are
The derivative is zero only where , that is, at . The second derivative is for every , so is strictly concave and is its unique global maximizer. The estimator is . If is unknown as well, with parameter set , the likelihood is maximized at and
provided this average squared residual is positive. If all observations are equal, the likelihood grows without bound as and no maximizer exists. Because , the estimator has mean , while the sample variance , with divisor and defined for , is unbiased.
In plain words Choose the parameter under which the observed data would have been most likely. For a normal mean with known variance that is the sample average. Maximum likelihood and unbiasedness are different criteria, which is why the variance has two common estimators with different divisors.
Example For the returns , , and , the estimate of the mean is , whatever the known value of . The residuals , , and have squared sum . Dividing by gives the maximum likelihood variance estimate , and dividing by gives the unbiased estimate , both in percent squared.
Consistency
Definition Let be an estimator computed from the first observations of a specified sampling scheme. The sequence is consistent for if, for every and every ,
which means that converges to in probability. For independent observations with common mean and common finite variance , the sample mean has and , and Chebyshev’s inequality gives
The bound tends to zero, so the sample mean is consistent. Unbiasedness, at a fixed , is a different property. A biased estimator can be consistent, as is in the normal model, and an unbiased estimator can fail to be consistent. Without independence the variance of the mean is
so the covariance terms decide whether it shrinks at all.
In plain words Consistency is a promise about a sequence of ever larger samples drawn from the model. It does not say that the error in one dataset of a given size is small, and it holds only for the sampling scheme it was proved for.
Example Take and , so the Chebyshev bound is . It is for , which says nothing, for and for . Under a normal model the actual probability at is about , so the bound is valid but conservative. Now suppose a dataset of entries consists of copies of one observation with mean and variance . Its average equals for every , so it is unbiased, but its variance stays instead of . Under a normal model for every , and the average is not consistent.
Law of large numbers
Definition The weak law of large numbers states that if are independent and identically distributed with and , then in probability. Finite variance is not needed. A proof outline truncates the observations. For a level put and , which tends to as because is integrable. Then
Markov’s inequality gives for every . The truncated variables are bounded by , so Chebyshev’s inequality gives . The last term satisfies . When , these combine to
Given , first choose with , and then every makes the probability at most . Since and are arbitrary, this proves the law. The order matters, since the truncation level is fixed before the sample grows. The strong law, which says that with probability , holds under the same hypotheses and is stated here without proof.
In plain words Averages of independent draws from one integrable distribution settle at the population mean. The variance argument is only the easiest case. The law says where the average goes, not how fast it gets there or how large the remaining error is.
Example A return model with a Student t law with degrees of freedom, shifted to have center , has a finite mean and infinite variance. For independent draws from it, the Chebyshev bound is unavailable, but the weak law still gives in probability. The standard Cauchy law, the t law with degree of freedom, has , and the average of independent standard Cauchy draws is again standard Cauchy for every . So for every , and the average never settles.
Central limit theorem
Definition The central limit theorem states that if are independent and identically distributed with mean and variance , where , then
that is, the probability that the left side is at most tends to for every real . A proof outline uses characteristic functions. The standardized observation has mean and variance , and its characteristic function satisfies
as , which needs only the finite second moment. By independence the standardized sum has characteristic function , and for every real
the characteristic function of . Lévy’s continuity theorem, stated here without proof, says that pointwise convergence of characteristic functions to the characteristic function of a distribution implies convergence in distribution. No moment generating function is required. With infinite variance the theorem does not apply, and other scalings and limits can occur. With a finite third absolute moment , the Berry-Esseen theorem bounds the error of the normal approximation at every by , with an absolute constant below , so the quality of the approximation still depends on the size of .
In plain words The law of large numbers says the average settles. The central limit theorem describes the remaining error, which, magnified by , is approximately normal for large . It is a statement about the normalized average. Individual observations keep their own distribution, and a short sample does not become normal.
Example A constructed loan book has loans that default independently, each with probability . The number of defaults has mean and standard deviation . The exact binomial probability of at least defaults is about , while the normal approximation
is less than a third of it. The theorem is a limit, and for a skewed count with a small mean, a sample of is far from that limit in the tail.
Standard error and confidence interval
Definition The standard error of an estimator is the standard deviation of its sampling distribution, . For the mean of independent observations with variance it is , and the estimate replaces by the sample standard deviation. A confidence interval at level is a pair of statistics with , or at least , for every . For independent observations with known, is exactly standard normal, so the interval
covers with probability exactly . In the same normal model with unknown and , a standard result states that has the Student t distribution with degrees of freedom, and the interval is exact. Outside the normal model, for independent identically distributed observations with finite positive variance, the interval has coverage that tends to as , by the central limit theorem combined with consistency of , with no guarantee at a fixed . The probability statement concerns the random endpoints before the data are seen. Once a sample is observed, the interval is two fixed numbers that either contain the fixed or not, and the frequentist calculation assigns no probability to itself.
In plain words The standard error is the typical size of the estimation error across repeated samples. A confidence interval is a procedure that, under its assumptions, captures the true value in a stated fraction of repeated samples. Its guarantee is exact, asymptotic or absent depending on which assumptions hold.
Example For the four returns with known , the standard error is , and the exact percent interval is , about , under the stated normal model. If is unknown, then and . The quantile gives the exact interval , which is wider. Putting into the known-variance formula instead gives , and under the normal model with that procedure covers with probability only about .
Check yourself
- A model treats daily returns as independent draws from a normal distribution with known standard deviation percent. Their sample mean is percent. Find the standard error of the sample mean and a percent confidence interval for the expected daily return, and say what the percent refers to.
Show the answer
The standard error is percent. The interval is
in percent. Under the model, the random interval built this way covers the fixed expected return in percent of repeated samples of returns. The observed interval either contains it or not, so it is wrong to say that the expected return lies in with probability . The interval contains , which means the data are compatible with a zero mean at this level, not that the mean is zero.
- A file of daily returns turns out to contain each of returns twice. The distinct returns are modeled as independent with known standard deviation percent. An analyst reports the standard error for the mean of the file. What is wrong, and what is the correct standard error?
Show the answer
The mean of the rows equals the mean of the distinct returns, because every value appears exactly twice. Its variance is therefore , and the correct standard error is , larger by the factor . The formula assumes independent observations, and the two copies of a return have correlation . In the double sum for , each pair of identical rows contributes four terms equal to , two variances and two covariances, where two independent rows would contribute only the two variances. With this gives
An interval would cover the true mean with probability only , not . More rows do not add information unless they are new observations.
- Times between trades, in seconds, are modeled as independent exponential variables with density for and an unknown rate . The observed times are , , and . Derive the maximum likelihood estimate, check that it is a maximum, and decide whether the estimator is unbiased and whether it is consistent.
Show the answer
The log-likelihood is . Its derivative is zero only at , and its second derivative is negative on all of , so is strictly concave and per second is the unique maximizer. In general , provided the times are not all zero. The estimator is biased. The sum of independent exponential times has a gamma distribution, and a direct integration gives
which is for . It is consistent. Since is finite, the law of large numbers gives in probability, and because is continuous at , the continuous mapping theorem gives in probability. The bias factor tends to , another case of a biased but consistent estimator.