ArticleslgStudy

mathematics

Sample mean and covariance

Sample mean and covariance is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Sample mean and covariance rather than just read about it. In short: The sample mean (sample average) or empirical mean (empirical average), and the sample covariance or empirical covariance are statistics computed from a sample of data on one or more random variables. The sample mean is the average value (or mean value) of a sample of numbers taken from a larger population of numbers, where "population" indicates not number of people but the entirety of relevant data, whether collec…

Key takeaways

  • Sample mean and covariance belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Sample mean and covariance to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Sample mean and covariance from memory before moving on to harder problems.

Reference excerpt

The sample mean (sample average) or empirical mean (empirical average), and the sample covariance or empirical covariance are statistics computed from a sample of data on one or more random variables. The sample mean is the average value (or mean value) of a sample of numbers taken from a larger population of numbers, where "population" indicates not number of people but the entirety of relevant data, whether collected or not. A sample of 40 companies' sales from the Fortune 500 might be used for convenience instead of looking at the population, all 500 companies' sales. The sample mean is used as an estimator for the population mean, the average value in the entire population, where the estimate is more likely to be close to the population mean if the sample is large and representative. The reliability of the sample mean is estimated using the standard error, which in turn is calculated using the variance of the sample. If the sample is random, the standard error falls with the size of the sample and the sample mean's distribution approaches the normal distribution as the sample size increases. The term "sample mean" can also be used to refer to a vector of average values when the statistician is looking at the values of several variables in the sample, e.g. the sales, profits, and employees of a sample of Fortune 500 companies. In this case, there is not just a sample variance for each variable but a sample variance-covariance matrix (or simply covariance matrix) showing also the relationship between each pair of variables. This would be a 3×3 matrix when 3 variables are being considered. The sample covariance is useful in judging the reliability of the sample means as estimators and is also useful as an estimate of the population covariance matrix. Due to their ease of calculation and other desirable characteristics, the sample mean and sample covariance are widely used in statistics to represent the location and dispersion of the distribution of values in the sample, and to estimate the values for the population.

Definition of the sample mean

The sample mean is the average of the values of a variable in a sample, which is the sum of those values divided by the number of values. Using mathematical notation, if a sample of N observations on variable X is taken from the population, the sample mean is:

X ¯ = 1 N ∑ i = 1 N X i . {\displaystyle {\bar {X}}={\frac {1}{N}}\sum _{i=1}^{N}X_{i}.}

Under this definition, if the sample (1, 4, 1) is taken from the population (1,1,3,4,0,2,1,0), then the sample mean is x ¯ = ( 1 + 4 + 1 ) / 3 = 2 {\displaystyle {\bar {x}}=(1+4+1)/3=2} , as compared to the population mean of μ = ( 1 + 1 + 3 + 4 + 0 + 2 + 1 + 0 ) / 8 = 12 / 8 = 1.5 {\displaystyle \mu =(1+1+3+4+0+2+1+0)/8=12/8=1.5} . Even if a sample is random, it is rarely perfectly representative, and other samples would have other sample means even if the samples were all from the same population. The sample (2, 1, 0), for example, would have a sample mean of 1. If the statistician is interested in K variables rather than one, each observation having a value for each of those K variables, the overall sample mean consists of K sample means for individual variables. Let x i j {\displaystyle x_{ij}} be the ith independently drawn observation (i=1,...,N) on the jth random variable (j=1,...,K). These observations can be arranged into N column vectors, each with K entries, with the K×1 column vector giving the i-th observations of all variables being denoted x i {\displaystyle \mathbf {x} _{i}} (i=1,...,N). The sample mean vector x ¯ {\displaystyle \mathbf {\bar {x}} } is a column vector whose j-th element x ¯ j {\displaystyle {\bar {x}}_{j}} is the average value of the N observations of the jth variable:

x ¯ j = 1 N ∑ i = 1 N x i j , j = 1 , … , K . {\displaystyle {\bar {x}}_{j}={\frac {1}{N}}\sum _{i=1}^{N}x_{ij},\quad j=1,\ldots ,K.}

Thus, the sample mean vector contains the average of the observations for each variable, and is written

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Sample mean and covariance

Start with the simplest possible case. Write down what Sample mean and covariance claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Sample mean and covariance before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Sample mean and covariance ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Sample mean and covariance

In research
Sample mean and covariance appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Sample mean and covariance in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Sample mean and covariance is common in secondary-school and first-year university syllabi. It links to neighbouring topics Covariance and correlation, Estimation methods, Matrices (mathematics), so understanding it makes those chapters shorter.
In everyday life
Look for Sample mean and covariance outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Sample mean and covariance” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Sample mean and covariance in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Sample mean and covariance means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Sample mean and covariance out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Sample mean and covariance in simple terms?

The sample mean (sample average) or empirical mean (empirical average), and the sample covariance or empirical covariance are statistics computed from a sample of data on one or more random variables. The sample mean is the average value (or mean value) of a sample of numbers taken from a larger po…

Why does Sample mean and covariance matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Sample mean and covariance?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Sample mean and covariance.

Tags

  • Covariance and correlation
  • Estimation methods
  • Matrices (mathematics)
  • Summary statistics
  • U-statistics

Keep exploring