Week eight-Nine

📚 Week_eight-Nine.pdf

Brief overview

This document introduces fundamental concepts in probability and statistics, focusing on random variables and their distributions. Understanding these topics is crucial for analyzing data and making informed statistical inferences.

Key points

  • Introduction to random variables and numerical events.
  • Methods for random sampling, including with and without replacement.
  • Calculation of expected value, variance, and standard deviation.
  • Overview of normal and binomial probability distributions.
  • Application of the Central Limit Theorem and sampling distributions.

1. Introduction to random variables and events

1.1 Numerical events

  • Numerical events: These are outcomes of experiments that can be described by numbers. They are of primary interest to scientists and business professionals.
  • Example: A doctor is interested if all ten patients survive a treatment. This survival can be represented numerically.
  • Example: A businessperson is interested if next year's sales reach 1.5 trillion dollars. This sales figure is a numerical event 4.

1.2 Random variables

  • Random variable (Y): A variable whose value depends on the outcome of a random experiment.
  • Sample space (S or Ω): The set of all possible outcomes of an experiment.
  • Each point in the sample space is assigned a real number representing the value of the random variable 5.

1.2.1 Assigning values to outcomes

  • A random variable is essentially a function mapping sample space points to real numbers.
  • The sample space can be divided into subsets. All points within a subset get the same numerical value from the random variable 6.
  • These subsets form a partition of the sample space, meaning they are mutually exclusive and cover all possibilities.

A Venn diagram illustrating the partitioning of a sample space S into mutually exclusive subsets representing different events.

Event TypeDescription
Y = 0Subset of outcomes assigned the value 0.
Y = 1Subset of outcomes assigned the value 1.
Y = 2Subset of outcomes assigned the value 2.
Y = 3Subset of outcomes assigned the value 3.
Y = 4Subset of outcomes assigned the value 4.
7

1.2.2 Definition and example

  • DEFINITION 1: A random variable is a real-valued function with a sample space as its domain.

📝 Example: Consider tossing two coins. Let Y be the number of heads.

  • Sample space S = {HH, HT, TH, TT}.
  • Assign Y values:
  • HH: 2 heads, so Y = 2.
  • HT: 1 head, so Y = 1.
  • TH: 1 head, so Y = 1.
  • TT: 0 heads, so Y = 0. The random variable Y can take values 0, 1, or 2 8 9 10.
  • Random variables help identify specific numerical events of interest from an experiment.
  • For instance, in an opinion poll, the focus is the number of voters favoring a candidate, not the sampling order 11.

1.3 Discrete random variables

  • Observed values of some random variables can only be specific integers, like 0 or positive integers up to the sample size.

  • Such variables can only have a finite number of distinct values with non-zero probability.

  • DEFINITION 2: A random variable Y is discrete if it can assume a finite or countably infinite number of distinct values.

  • A set is countably infinite if its elements can be matched one-to-one with positive integers.

🔑 Important: A discrete random variable takes on specific, separate numerical values. This is crucial for probability calculations 12 13.

2. Random sampling methods

2.1 Random sampling concepts

Random sampling involves selecting a sample from a population to make inferences about its characteristics. The method of sampling, or experimental design, affects the information gained and the probability of observing a specific outcome17.

  • Population: The larger body of data from which a sample is drawn.
  • Sample: A subset of the population used for observation and inference 14.
  • Random variable: A variable whose value is a numerical outcome of a statistical experiment.

2.1.1 Sampling with and without replacement

Two main methods of sample selection are distinguished by whether elements are returned to the population after selection.

MethodDescriptionProbability of selecting a specific pair (N=5, n=2)
Sampling without replacementElements are selected and not returned to the population.1/101/10
Sampling with replacementElements are selected, returned to the population, and then selected again.2/252/25 16

Sampling without replacement yields a higher probability for distinct pairs.

2.1.2 Simple random sampling

Simple random sampling ensures each possible sample has an equal chance of being selected. Achieving perfect random sampling in practice can be challenging 18.

  • Large population case: Involves numbering each element and selecting chips from a mix.
  • Conceptual case: Assumes an infinite population of measurements from repeated experiments.

Perfect random sampling is difficult to achieve in practice 19.

Partially random techniques may be used to ensure better representation. For example, sampling voters by political district, rather than purely by chance from the entire nation, can prevent an unrepresentative sample 20.

2.2 Probability distribution for a discrete random variable

A discrete random variable can assume a finite or countably infinite number of distinct values. Its probability distribution assigns probabilities to these values.

  • Random variable (uppercase letter): Denotes a variable like YY.
  • Value (lowercase letter): Denotes a specific outcome, like yy 22.
  • Notation: P(Y=y)P(Y = y) represents the probability that YY takes on the value yy 23.

The probability distribution function is often denoted as P(y)P(y) or p(y)p(y).

2.2.1 Defining discrete probability distributions

The probability of a discrete random variable taking a specific value is the sum of probabilities of all sample points assigned that value. A probability distribution function, p(y)p(y), assigns probabilities to each value yy of the random variable 24.

  • Nonzero probabilities: Assigned to only a countable number of distinct yy values.
  • Zero probabilities: Any value not explicitly assigned a positive probability has p(y)=0p(y) = 0 26.

2.2.2 Representing probability distributions

Probability distributions for discrete random variables can be shown using a formula, a table, or a graph 25.

Example 2: Worker selection A supervisor selects two workers randomly from three men and three women. Let YY be the number of women selected.

  • Total ways to choose 2 workers from 6: (62)=15\binom{6}{2} = 15.
  • Probability of each sample point: P(Ei)=1/15P(E_i) = 1/15 27.

The possible values for YY are 0, 1, and 2 28.

Number of women selected (yy)Ways to select (yy women and 2−y2-y men)Probability P(Y=y)P(Y=y)
0(30)(32)=1×3=3\binom{3}{0} \binom{3}{2} = 1 \times 3 = 33/15=1/53/15 = 1/5
1(31)(31)=3×3=9\binom{3}{1} \binom{3}{1} = 3 \times 3 = 99/15=3/59/15 = 3/5
2(32)(30)=3×1=3\binom{3}{2} \binom{3}{0} = 3 \times 1 = 33/15=1/53/15 = 1/5

The outcome Y=1Y=1 is the most likely, which is reasonable given equal numbers of men and women 30.

A graphical representation of this distribution uses a bar chart, where the bar's area equals the probability for the centered value 31.

A bar chart illustrating the distribution of a discrete random variable Y, with probabilities P(y) shown on the y-axis and values of Y on the x-axis.

The distribution can be concisely represented by a formula: p(y)=P(Y=y)=(3y)(32−y)(62),y=0,1,2p(y) = P(Y = y) = \frac{\binom{3}{y} \binom{3}{2-y}}{\binom{6}{2}}, \quad y = 0, 1, 2 32.

2.2.3 Properties of discrete probability distributions

Any discrete probability distribution must satisfy two conditions 33:

  1. Probabilities are non-negative and do not exceed 1: 0≤p(y)≤10 \le p(y) \le 1 for all yy.
  2. The sum of probabilities over all possible values equals 1: ∑yp(y)=1\sum_y p(y) = 1.

All valid probability distributions sum to 1.

🔑 Important: Understanding how to represent and calculate probabilities for discrete random variables is crucial for making statistical inferences.

3. Expected value, variance, and standard deviation

3.1 Expected value

The expected value of a discrete random variable is its theoretical mean. It is calculated by summing the product of each possible value of the variable and its probability.

This value, denoted as E(Y)E(Y) or μ\mu, represents the average outcome if an experiment were repeated many times.

  • Formula for expected value: E(Y)=∑y⋅p(y)E(Y) = \sum y \cdot p(y) 35.

Consider a random variable YY with the following probability distribution:

yP(y)
01/4
11/2
21/4

A probability histogram illustrating the distribution of a discrete random variable Y.

The expected value for this distribution is: E(Y)=(0⋅14)+(1⋅12)+(2⋅14)=0+12+12=1E(Y) = (0 \cdot \frac{1}{4}) + (1 \cdot \frac{1}{2}) + (2 \cdot \frac{1}{4}) = 0 + \frac{1}{2} + \frac{1}{2} = 1 40.

This μ\mu value is analogous to the mean of a sample, yˉ\bar{y}, which is the sum of all measurements divided by the number of measurements 36.

3.2 Variance and standard deviation

The variance measures the spread of a probability distribution. It is defined as the expected value of the squared difference between the random variable and its mean, (Y−μ)2(Y - \mu)^2.

The population variance is denoted by V(Y)V(Y) or σ2\sigma^2.

  • Formula for variance: V(Y)=E[(Y−μ)2=∑(y−μ)2⋅p(y)V(Y) = E[(Y - \mu)^2 = \sum (y - \mu)^2 \cdot p(y).

The standard deviation is the positive square root of the variance. It provides a measure of spread in the original units of the random variable, denoted by σ\sigma 42.

3.3 Calculating mean, variance, and standard deviation

We can calculate these measures for any discrete random variable given its probability distribution.

📝 Example: Find the mean, variance, and standard deviation for a random variable YY with the following distribution:

yP(y)
01/8
11/4
23/8
31/4

A table showing the probability distribution for a random variable Y, with columns for 'y' and 'P(y)'.

Solution:

  • Mean (μ\mu): μ=E(Y)=(0⋅18)+(1⋅14)+(2⋅38)+(3⋅14)\mu = E(Y) = (0 \cdot \frac{1}{8}) + (1 \cdot \frac{1}{4}) + (2 \cdot \frac{3}{8}) + (3 \cdot \frac{1}{4}) μ=0+14+68+34=14+34+34=74=1.75\mu = 0 + \frac{1}{4} + \frac{6}{8} + \frac{3}{4} = \frac{1}{4} + \frac{3}{4} + \frac{3}{4} = \frac{7}{4} = 1.75.

  • Variance (σ2\sigma^2): σ2=E[(Y−μ)2=(0−1.75)2(18)+(1−1.75)2(14)+(2−1.75)2(38)+(3−1.75)2(14)\sigma^2 = E[(Y - \mu)^2 = (0 - 1.75)^2 (\frac{1}{8}) + (1 - 1.75)^2 (\frac{1}{4}) + (2 - 1.75)^2 (\frac{3}{8}) + (3 - 1.75)^2 (\frac{1}{4}) σ2=(−1.75)2(18)+(−0.75)2(14)+(0.25)2(38)+(1.25)2(14)\sigma^2 = (-1.75)^2 (\frac{1}{8}) + (-0.75)^2 (\frac{1}{4}) + (0.25)^2 (\frac{3}{8}) + (1.25)^2 (\frac{1}{4}) σ2=(3.0625)(18)+(0.5625)(14)+(0.0625)(38)+(1.5625)(14)\sigma^2 = (3.0625)(\frac{1}{8}) + (0.5625)(\frac{1}{4}) + (0.0625)(\frac{3}{8}) + (1.5625)(\frac{1}{4}) σ2=0.3828125+0.140625+0.0234375+0.390625=0.9375\sigma^2 = 0.3828125 + 0.140625 + 0.0234375 + 0.390625 = 0.9375.

  • Standard Deviation (σ\sigma): σ=σ2=0.9375≈0.97\sigma = \sqrt{\sigma^2} = \sqrt{0.9375} \approx 0.97 44.

A probability histogram illustrating the distribution of a random variable Y.

The mean μ\mu helps locate the center of the distribution. The standard deviation σ\sigma indicates the typical spread of the data points around this mean.

For instance, the interval (μ−σ,μ+σ)(\mu - \sigma, \mu + \sigma) often contains a significant portion of the probability 45.

🔑 Important: The expected value is the theoretical average of a random variable, while variance and standard deviation quantify its spread.


🔑 Important: For exams, master the formulas for expected value, variance, and standard deviation, and practice applying them to different probability distributions.

4. Normal and binomial distributions

4.1 The normal distribution

The normal distribution, also known as the Gaussian distribution, is a fundamental concept in statistics. It is used to model many real-world phenomena like human heights, exam scores, and measurement errors.

This distribution is characterized by its distinct bell shape 48.

The probability density function for the normal distribution is given by: f(y)=1σ2πe−(y−μ)22σ2f(y) = \frac{1}{\sigma \sqrt{2\pi}} e^{-\frac{(y - \mu)^2}{2\sigma^2}} Here, ee is Euler's constant (≈2.71828\approx 2.71828) and π\pi is pi (≈3.14159\approx 3.14159). The term 1σ2π\frac{1}{\sigma \sqrt{2\pi}} ensures the total area under the curve is 1, representing 100% probability.

The exponential term e−(y−μ)22σ2e^{-\frac{(y - \mu)^2}{2\sigma^2}} determines the curve's shape 50.

When yy is close to the mean (μ\mu), the exponent is near zero, resulting in a high probability density. Conversely, when yy is far from μ\mu, the exponent becomes a large negative number, leading to a small probability density 51.

The normal curve exhibits symmetry around its mean.

  • Mean = Median = Mode.
  • It has a bell shape, with the highest point at the mean and gradually tapering ends 52.

The density value itself is not a direct probability for continuous variables. Probabilities are calculated over intervals.

For instance, P(Y=180)P(Y = 180) is 0, but P(175<Y<185)P(175 < Y < 185) can be calculated 54.

A bell curve illustrating the normal distribution, showing percentages of data within standard deviations from the mean.

The parameters μ\mu (mean) and σ\sigma (standard deviation) influence the curve's position and spread.

  • Changing the mean (μ\mu) shifts the curve left or right.
  • Changing the standard deviation (σ\sigma) affects the curve's width and height. A small σ\sigma results in a narrow, tall curve, while a large σ\sigma creates a wide, flat curve 58.

The empirical rule for a standard normal distribution shows the percentage of data within standard deviations from the mean.

4.2 Standard normal distribution

A special case of the normal distribution occurs when the mean (μ\mu) is 0 and the standard deviation (σ\sigma) is 1. This is known as the standard normal distribution.

The Z-score formula converts any normal variable (YY) into a standard normal variable (ZZ). This score represents how many standard deviations an observation is away from the mean.

Z=Y−μσZ = \frac{Y - \mu}{\sigma}

A Z-score of 2 means the value is 2 standard deviations above the mean.

The probability density function for the standard normal distribution is: f(z)=12πe−z22f(z) = \frac{1}{\sqrt{2\pi}} e^{-\frac{z^2}{2}} 55.

The empirical rule provides approximate percentages of data within certain standard deviations for any normal distribution:

  • Approximately 68% of values fall within μ±1σ\mu \pm 1\sigma.
  • Approximately 95% of values fall within μ±2σ\mu \pm 2\sigma.
  • Approximately 99.7% of values fall within μ±3σ\mu \pm 3\sigma 57.

This chart illustrates the standard normal distribution with varying standard deviations.

4.3 The binomial distribution

A Bernoulli trial is an experiment with exactly two possible outcomes, often labeled as "success" and "failure." The probabilities of these outcomes are pp and qq (q=1−pq = 1 - p), respectively 61.

An indicator random variable, XX, takes the value 1 for success and 0 for failure. For such a variable:

  • The expected value is E[X=pE[X = p.
  • The variance is var[X=p(1−p)=pqvar[X = p(1-p) = pq.

Definition of a Bernoulli random variable X, which takes the value 1 for success and 0 for failure.

The binomial distribution describes the number of successes (kk) in a fixed number (nn) of independent Bernoulli trials. Each trial has the same probability of success (pp).

The probability of exactly kk successes in nn trials is given by the binomial probability formula: P[X=k=(nk)pkqn−kP[X = k = \binom{n}{k} p^k q^{n-k} where (nk)=n!k!(n−k)!\binom{n}{k} = \frac{n!}{k!(n-k)!} 63.

The expected value and variance for a binomial distribution are:

  • E[X=npE[X = np.
  • var[X=npqvar[X = npq.

The binomial distribution models count data from a fixed number of trials.

The formula for the binomial distribution shows the probability of exactly k successes in n trials.

Distribution TypeParametersExpected ValueVariance
Bernoullipppppqpq
Binomialn,pn, pnpnpnpqnpq

🔑 Important: The normal distribution is continuous, while the binomial distribution is discrete. The normal distribution can approximate the binomial distribution for large nn.

5. The Central Limit Theorem and sampling distributions

5.1 Sampling distributions related to the normal distribution

  • Normal distribution: A common probability distribution modeled by a bell-shaped curve. Many real-world phenomena follow this pattern.
  • Theorem 2: If you take a random sample of size nn from a normal distribution with mean μ\mu and variance σ2\sigma^2, the sample mean Yˉ\bar{Y} will also be normally distributed. Its mean will be μ\mu and its variance will be σ2n\frac{\sigma^2}{n} 69.

5.2 The Central Limit Theorem (CLT)

The Central Limit Theorem (CLT) allows us to approximate the sampling distribution of the sample mean (Yˉ\bar{Y}) even if the population distribution is unknown or not normal. This is crucial for statistical inference.

  • CLT Statement: For a large sample size (nn), the sampling distribution of the sample mean (Yˉ\bar{Y}) will be approximately normal. This holds true as long as the individual random variables (YiY_i) are independent and identically distributed with a finite mean (μ\mu) and variance (σ2\sigma^2) 71.

  • Approximation: Probability statements about Yˉ\bar{Y} can be approximated using the standard normal distribution when nn is large. A sample size greater than 30 is typically sufficient for this approximation to be close.

  • Asymptotic Normality: For large nn, Yˉ\bar{Y} is considered asymptotically normally distributed with a mean of μ\mu and a variance of σ2n\frac{\sigma^2}{n} 74.

The CLT is a cornerstone of statistics, enabling us to use normal distribution properties for samples from almost any population.

5.3 Polling and estimating population proportions

Polling uses sample data to estimate characteristics of a larger population, such as the proportion of people supporting a candidate.

  • Key quantities in polling:

  • NN: Population size.

  • pp: True proportion of the population with a specific characteristic (e.g., supporting a candidate).

  • pˉ\bar{p}: Estimated proportion from a sample.

  • The challenge: We know the population size (NN) and sample size (nn), but we want to determine the true population proportion (pp) 77.

  • Sample data: We collect data from a random sample of nn individuals. For example, if XiX_i is 1 if the ii-th person supports a candidate and 0 otherwise, then the sample proportion is p^=∑i=1nXin\hat{p} = \frac{\sum_{i=1}^{n} X_i}{n}.

Formula for p-hat

The sample proportion p^\hat{p} is a random variable because it depends on the random sample chosen 80.

5.3.1 Properties of the sample proportion estimator

We analyze the expected value and variance of the sample proportion (p^\hat{p}) to understand its reliability.

  • Expected value (E[p^]E[\hat{p}]): The average value of p^\hat{p} over many samples is equal to the true population proportion (pp). This means p^\hat{p} is an unbiased estimator of pp 81. E[p^]=pE[\hat{p}] = p

  • Variance (Var[p^]Var[\hat{p}]): The variance of p^\hat{p} measures the spread of its distribution. It depends on the population proportion (pp), the sample size (nn), and the population size (NN) 84.

  • Variance Formula: Var[p^]=p(1−p)n(N−nN−1)Var[\hat{p}] = \frac{p(1-p)}{n} \left(\frac{N-n}{N-1}\right).

  • Correction factor: The term (N−nN−1)\left(\frac{N-n}{N-1}\right) is a finite population correction factor 85.

  • When the population size (NN) is much larger than the sample size (nn), this factor is close to 1. The variance then approximates p(1−p)n\frac{p(1-p)}{n}, similar to sampling with replacement.

  • This factor accounts for sampling without replacement from a finite population.

  • Impact of sample size: A larger sample size (nn) leads to a smaller variance, meaning the sample proportion (p^\hat{p}) is a more precise estimate of the true proportion (pp).

The reliability of a poll's results depends on both the sample size and how it relates to the total population size.


🔑 Important: The Central Limit Theorem is fundamental for understanding how sample statistics, like the sample mean or proportion, behave and can be used to make inferences about population parameters 73.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also