{
  "id": "sample-mean",
  "title": "Sample Mean",
  "lang": "en",
  "source_lang": "en",
  "summary": "The sample mean is the arithmetic average of observed values, used to describe a dataset’s center and estimate a population mean.",
  "category": "mathematics",
  "subcategory": "probability-statistics",
  "type": "concept",
  "aliases": [
    "Sample average",
    "Empirical mean",
    "Arithmetic sample mean"
  ],
  "generated_at": "2026-10-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/sample-mean/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/sample-mean/",
      "json": "https://aiwiki.page/zh/sample-mean.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "The sample mean is the arithmetic average of a finite collection of numerical observations. In statistics, it serves both as a descriptive measure of a dataset’s center and as an estimator of a population mean. These roles are distinct: an observed sample mean is a number calculated from data, whereas the sample mean considered before observations are collected is a random variable whose value depends on the sample obtained. (online.stat.psu.edu)"
    },
    {
      "heading": "Definition and notation",
      "text": "For observations \\(x_1,x_2,\\ldots,x_n\\), with \\(n\\geq1\\), the sample mean is\n\n\\[\\bar{x}=\\frac{1}{n}\\sum_{i=1}^{n}x_i.\\]\n\nThe notation \\(\\bar{x}\\), pronounced “x-bar,” usually denotes the observed value. If the observations are modeled as random variables \\(X_1,\\ldots,X_n\\), the corresponding statistic is written\n\n\\[\\bar{X}_n=\\frac{1}{n}\\sum_{i=1}^{n}X_i.\\]\n\nThe population mean is commonly denoted by \\(\\mu\\). Unlike \\(\\bar{x}\\), it describes the population or underlying probability distribution, rather than one particular sample. (online.stat.psu.edu)\n\nFor example, the observations \\(2,4,4,10\\) have sample mean \\(20/4=5\\). The mean need not equal any observed value. It has the same measurement units as the observations and gives each observation equal weight. These properties follow directly from its defining formula. (online.stat.psu.edu)"
    },
    {
      "heading": "Algebraic properties",
      "text": "The deviations from the sample mean sum to zero:\n\n\\[\\sum_{i=1}^{n}(x_i-\\bar{x})=0.\\]\n\nConsequently, the mean acts as a balance point for numerical observations. It also respects changes of scale and origin: if \\(y_i=ax_i+b\\), then \\(\\bar{y}=a\\bar{x}+b\\). Both identities follow by substituting the definition of \\(\\bar{x}\\). (online.stat.psu.edu)\n\nThe sample mean uniquely minimizes the sum of squared deviations from a constant. For any real number \\(c\\),\n\n\\[\\sum_{i=1}^{n}(x_i-c)^2 = \\sum_{i=1}^{n}(x_i-\\bar{x})^2 +n(c-\\bar{x})^2.\\]\n\nThe last term is nonnegative and vanishes precisely when \\(c=\\bar{x}\\). Thus, the mean is the fitted constant under ordinary least squares, and it minimizes the corresponding mean squared error criterion. (heogden.github.io)"
    },
    {
      "heading": "Expectation and sampling variability",
      "text": "Suppose the observations are independent and identically distributed, with finite expected value \\(\\mu\\) and variance \\(\\sigma^2\\). Then\n\n\\[\\mathbb{E}[\\bar{X}_n]=\\mu, \\qquad \\operatorname{Var}(\\bar{X}_n)=\\frac{\\sigma^2}{n}.\\]\n\nThe first identity means that the sample mean has zero estimator bias for \\(\\mu\\): its average over repeated samples equals the population mean. This does not imply that any individual sample mean equals \\(\\mu\\). (online.stat.psu.edu)\n\nThe standard deviation of its sampling distribution, called its standard error, is \\(\\sigma/\\sqrt{n}\\). With the underlying population unchanged, quadrupling the sample size halves this standard error. When \\(\\sigma\\) is unknown, it is commonly estimated using \\(s/\\sqrt{n}\\), where\n\n\\[s^2=\\frac{1}{n-1}\\sum_{i=1}^{n}(x_i-\\bar{x})^2, \\qquad n>1.\\]\n\nThe denominator \\(n-1\\) is Bessel’s correction for estimating population variance; the mean itself still uses \\(n\\). (online.stat.psu.edu)\n\nStatistical independence is important for the usual variance formula. More generally, when second moments exist,\n\n\\[\\operatorname{Var}(\\bar{X}_n) = \\frac{1}{n^2} \\left[ \\sum_i\\operatorname{Var}(X_i) +2\\sum_{i<j}\\operatorname{Cov}(X_i,X_j) \\right].\\]\n\nThis is obtained by expanding the variance of the sum. Nonzero covariances therefore change the uncertainty of the mean. (bpb-us-e1.wpmucdn.com)"
    },
    {
      "heading": "Large-sample behavior",
      "text": "Under independent, identically distributed sampling with a finite absolute first moment, the law of large numbers establishes that the sample mean approaches the population mean as sample size increases. In particular, it exhibits convergence in probability to \\(\\mu\\), making it a consistent estimator. Consistency concerns increasing sample size, while unbiasedness concerns expectation at a given size. (pstat120b.github.io)\n\nIf the common variance is finite and positive, the central limit theorem gives\n\n\\[\\frac{\\sqrt{n}(\\bar{X}_n-\\mu)}{\\sigma} \\xrightarrow{d}N(0,1).\\]\n\nThus, for sufficiently large samples, the sampling distribution is approximately a normal distribution. For normally distributed observations, this normality is exact at every sample size. For nonnormal populations, approximation quality depends on the underlying distribution as well as sample size; pronounced skewness can require larger samples. (openstax.org)"
    },
    {
      "heading": "Confidence intervals and tests",
      "text": "For independent normal observations with unknown variance and \\(n>1\\),\n\n\\[T=\\frac{\\bar{X}_n-\\mu}{S/\\sqrt{n}}\\]\n\nhas Student’s t-distribution with \\(n-1\\) degrees of freedom. A two-sided \\(100(1-\\alpha)\\%\\) confidence interval for \\(\\mu\\) is therefore\n\n\\[\\bar{x}\\pm t_{1-\\alpha/2,n-1}\\frac{s}{\\sqrt{n}}.\\]\n\nThe same standardized difference forms a test statistic in statistical hypothesis testing of a proposed population mean. (itl.nist.gov)\n\nThe confidence level describes the interval procedure’s long-run coverage under its assumptions. It is not a probability assigned to the fixed population mean after a particular interval has been observed. Outside normal sampling, t-based intervals can provide approximations, but small samples and severe departures from normality can impair their coverage. (itl.nist.gov)"
    },
    {
      "heading": "Interpretation and limitations",
      "text": "The sample mean uses every observation and is sensitive to extreme values. Replacing one observation by a value larger by \\(d\\) changes the mean by \\(d/n\\), directly from the definition. A few large observations can therefore pull the mean away from the bulk of the data. The median, determined by ordered position, is less sensitive to such extremes. For skewed distributions, mean and median describe different aspects of location rather than interchangeable notions of a “typical” value. (online.stat.psu.edu)"
    }
  ],
  "links": [
    "statistics",
    "estimator",
    "random-variable",
    "probability-distribution",
    "ordinary-least-squares",
    "mean-squared-error",
    "expected-value",
    "variance",
    "estimator-bias",
    "standard-deviation",
    "sampling-distribution",
    "standard-error",
    "bessels-correction",
    "statistical-independence",
    "covariance",
    "law-of-large-numbers",
    "convergence-in-probability",
    "consistent-estimator",
    "central-limit-theorem",
    "normal-distribution",
    "students-t-distribution",
    "degrees-of-freedom",
    "confidence-interval",
    "test-statistic",
    "statistical-hypothesis-testing",
    "median"
  ],
  "sources": [
    {
      "title": "online.stat.psu.edu/stat414/Lesson08",
      "url": "https://online.stat.psu.edu/stat414/Lesson08"
    },
    {
      "title": "heogden.github.io/math1063/",
      "url": "https://heogden.github.io/math1063/"
    },
    {
      "title": "online.stat.psu.edu/stat500/Lesson04",
      "url": "https://online.stat.psu.edu/stat500/Lesson04"
    },
    {
      "title": "bpb-us-e1.wpmucdn.com/sites.psu.edu/dist/9/130137/files/2023/06/prob_lectures20…",
      "url": "https://bpb-us-e1.wpmucdn.com/sites.psu.edu/dist/9/130137/files/2023/06/prob_lectures2023.pdf"
    },
    {
      "title": "pstat120b.github.io/Files/Lectures/3_Estimation3.pdf",
      "url": "https://pstat120b.github.io/Files/Lectures/3_Estimation3.pdf"
    },
    {
      "title": "openstax.org/books/introductory-statistics/pages/7-1-the-central-limit-theorem-…",
      "url": "https://openstax.org/books/introductory-statistics/pages/7-1-the-central-limit-theorem-for-sample-means-averages"
    },
    {
      "title": "itl.nist.gov/div898/handbook/eda/section3/eda352.htm",
      "url": "https://itl.nist.gov/div898/handbook/eda/section3/eda352.htm"
    },
    {
      "title": "itl.nist.gov/div898/handbook/prc/section1/prc14.htm",
      "url": "https://www.itl.nist.gov/div898/handbook/prc/section1/prc14.htm"
    }
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}