Probability Statistics

Cover

Lecture 4 - Multiple Linear Regression.pptx

1. Introduction to multiple linear regression and its equation

This section introduces the fundamental concept of multiple linear regression, an extension of simple linear regression that incorporates multiple independent variables to predict a dependent variable. It details the general equation, interpretation of coefficients, estimation methods, and practical considerations for model building and interpretation.

1.1 The multiple linear regression equation

Multiple linear regression extends the simple linear model by allowing for more than one independent variable to predict a dependent variable. The general form of the multiple linear regression equation is:

Y=β0+β1X1+β2X2+⋯+βkXk+ϵY = \beta_0 + \beta_1 X_1 + \beta_2 X_2 + \dots + \beta_k X_k + \epsilon

Where:

  • YY is the dependent variable (also known as the response variable).
  • XiX_i represents the ithi^{th} independent variable (also called a predictor or explanatory variable).
  • β0\beta_0 is the intercept, representing the expected value of YY when all independent variables (XiX_i) are equal to zero.
  • βi\beta_i is the coefficient for the ithi^{th} independent variable. It quantifies the expected change in YY for a one-unit increase in XiX_i, holding all other independent variables constant.
  • kk is the total number of independent variables in the model.
  • ϵ\epsilon is the random error term, representing the portion of YY that cannot be explained by the independent variables.

1.2 Estimation and interpretation of coefficients

The regression coefficients (β0,β1,…,βk\beta_0, \beta_1, \dots, \beta_k) are unknown parameters that are estimated from sample data. The estimated coefficients, denoted as b0,b1,…,bkb_0, b_1, \dots, b_k, form the estimated multiple regression equation:

Y^=b0+b1X1+b2X2+⋯+bkXk\hat{Y} = b_0 + b_1 X_1 + b_2 X_2 + \dots + b_k X_k

The estimated coefficients, bib_i, are referred to as partial regression coefficients. They are interpreted as the expected change in the dependent variable (YY) for a one-unit increase in the corresponding independent variable (XiX_i), while holding the values of all other independent variables in the model constant. This "holding constant" aspect is crucial and differentiates partial regression coefficients from the slope in simple linear regression.

Note: The intercept (b0b_0) represents the predicted value of YY when all independent variables are zero. However, this interpretation is only meaningful if Xi=0X_i=0 is a plausible scenario within the context of the data.

1.3 Using Excel's Regression Tool

Excel's Regression Tool can be used to perform multiple linear regression analysis. To use this tool effectively:

  • Ensure that the independent variables are placed in contiguous columns in the spreadsheet. This may require rearranging data.
  • The output provides several key metrics for evaluating the model.

1.3.1 Key output metrics

  • Multiple R: This is the multiple correlation coefficient, indicating the strength of the linear relationship between the observed and predicted values of the dependent variable.
  • R Square: Also known as the coefficient of multiple determination, R2R^2 represents the proportion of the total variation in the dependent variable that is explained by the independent variables included in the model. A higher R2R^2 indicates a better fit of the model to the data.
  • Adjusted R Square: This metric adjusts R2R^2 to account for the number of independent variables and the sample size. It is particularly useful when comparing models with different numbers of predictors, as it penalizes the addition of unnecessary variables. An increase in adjusted R2R^2 when adding or removing a variable suggests an improvement in the model.

1.3.2 ANOVA for multiple regression

The Analysis of Variance (ANOVA) table in the regression output is used to test the overall significance of the entire regression model. It tests the null hypothesis that all regression coefficients (except the intercept) are simultaneously equal to zero (H0:β1=β2=⋯=βk=0H_0: \beta_1 = \beta_2 = \dots = \beta_k = 0) against the alternative that at least one coefficient is not zero (Ha:at least one βi≠0H_a: \text{at least one } \beta_i \neq 0).

  • The F-statistic in the ANOVA table, along with its associated p-value, determines whether the model as a whole is statistically significant in explaining the variation in the dependent variable.

1.3.3 Significance of individual coefficients

In addition to testing the overall model, the regression output also provides information to test the significance of each individual regression coefficient (bib_i). This is typically done using t-tests.

  • The null hypothesis for an individual coefficient is H0:βi=0H_0: \beta_i = 0.
  • The alternative hypothesis is Ha:βi≠0H_a: \beta_i \neq 0.
  • If the p-value associated with a coefficient is less than the chosen significance level (e.g., 0.05), the null hypothesis is rejected, indicating that the independent variable XiX_i is statistically significan
Cover

Lecture 6 Notes.pdf

📚 Lecture 6 Notes.pdf

Brief overview

This document provides a foundational understanding of discrete probability distributions. It establishes key concepts and demonstrates their application through practical examples, crucial for analyzing random phenomena in various contexts.

Key points

  • Overview of fundamental concepts in discrete probability distributions
  • Defining sample spaces and events in probability experiments
  • Constructing and calculating probability distributions for discrete random variables
  • Detailed examples illustrating probability distribution calculations
  • Application of probability distributions in real-world scenarios

1. Introduction to discrete probability distributions (part 1)

1.1 Sample spaces and events

A probability experiment is a process with an uncertain outcome. The set of all possible outcomes is called the sample space, denoted by Ω\Omega.

An event is a specific set of outcomes within the sample space.

The power set is the set of all possible events, including the empty set and the sample space itself. The empty set, denoted by ∅\emptyset, represents an event with no outcomes 5.

A discrete probability distribution describes the probabilities of a random variable's possible outcomes. This distribution assigns a probability to each distinct value the variable can take.

1.2 Validating probability distributions

To be a valid probability distribution, two conditions must be met. First, each probability must be between 0 and 1, inclusive (0≤P(x)≤10 \le P(x) \le 1).

Second, the sum of all probabilities for all possible outcomes must equal 1 (∑P(x)=1\sum P(x) = 1).

Several tables show examples of probability assignments for different variables. Some tables display invalid probabilities.

For instance, one table shows a negative probability for an outcome. Another table lists probabilities that sum to more than 1.

The table below illustrates valid probabilities for a variable xx. The values of xx range from 0 to 4.

The corresponding probabilities, P(x)P(x), are listed. The sum of these probabilities is 1.

xx (Patients with high blood pressure)P(x)P(x)
00.10
10.25
20.30
30.20
40.15
Total1.00

A probability distribution table showing the probability of x patients having high blood pressure.

🔑 Important: Always check that probabilities are between 0 and 1 and that they sum to exactly 1 for a distribution to be valid.

1.3 Probability distribution of coin tosses

Consider tossing a fair coin twice. The possible outcomes are HH, HT, TH, TT.

Let XX be the random variable representing the number of heads. XX can take values 0, 1, or 2.

The probability of getting 0 heads (TT) is 0.25. The probability of getting 1 head (HT or TH) is 0.50.

The probability of getting 2 heads (HH) is 0.25.

XX (Number of heads)P(X)P(X)
00.25
10.50
20.25
Total1.00

This table shows the probability distribution of X, where X represents the number of heads when a fair coin is tossed twice.

🔑 Important: Discrete probability distributions model outcomes with distinct, countable values.

🔑 Important: The sum of probabilities for all possible outcomes in a discrete distribution must always equal 1 9 13 15.

2. Introduction to discrete probability distributions (part 2)

2.1 Probability distributions for discrete random variables

A discrete probability distribution

Cover

Lecture 6.pdf

📚 Lecture 6.pdf

Brief overview

This document introduces the fundamental principles of sampling in research. It outlines the necessary steps for selecting representative samples and discusses various techniques for ensuring research validity and reliability.

Key points

  • Overview of sampling terminology and the necessity of sampling.
  • Detailed exploration of probability sampling techniques.
  • Description of non-probability sampling methods.
  • Factors influencing sample size determination.
  • Final steps in sample selection and data collection.

1. Introduction to sampling and its terminology

1.1 What is sampling?

Sampling is a process used to select a subset of individuals or items from a larger group. This subset is called a sample.

The larger group is known as the population. Researchers use sampling to gather information about a population without studying every single member.

  • Population element: An individual member within the population.
  • Census: An investigation that includes every single element of a population. This is done when the population is small and the cost, labor, and time are not major concerns.

📝 Example: If a researcher wants to study the average height of students in a large university (population), they might measure the height of 100 students (sample).

1.2 Defining the target population and sampling frame

Before selecting a sample, researchers must clearly define their target population. This population consists of elements that share specific, similar characteristics relevant to the study.

A sampling frame is a list or resource from which sample elements can be drawn. This frame contains the sampling units, which are the individual elements within the frame that can be selected.

📝 Example: A target population might be all registered voters in a city. A sampling frame could be the city's voter registration list. Each registered voter on that list is a sampling unit.

TermDefinition
Target populationIndividual elements sharing crucial characteristics for the study.
Sampling frameA list or resource from which a sample is drawn.
Sampling unitsIndividual elements within the sampling frame that are selected.
Working populationThe population as represented by the sampling frame.

1.3 Why sampling is necessary

Sampling is often used because investigating an entire population may be impractical.

  • Cost reduction: Sampling significantly lowers the expenses involved in data collection.
  • Time efficiency: It requires less time to collect data from a sample than from a whole population.
  • Labor savings: Fewer resources and personnel are needed.
  • Accuracy: Properly selected samples can provide reliable and sufficient results.

🔑 Important: Sampling saves money, time, and labor while often yielding accurate results.

The size of the sample needed depends on the diversity within the population.

Population DiversitySample Size
Highly homogeneousSmall
Highly heterogeneousLarger

1.4 Errors in sampling

Two main types of errors can occur in sampling: random sampling error and non-sampling error.

1.4.1 Random sampling error

  • Random sampling error: This is the difference between the results obtained from a sample and the results that would have been obtained from a census of the same population using the same method.
  • Even with proper sampling techniques, selected units might not perfectly represent the population. However, they generally provide reliable estimates.
  • This error can only be confirmed by conducting a census alongside the sample study.

🔑 Important: Random sampling error is inherent to sampling; it is the chance variation that occurs when a sample does not perfectly mirror the population.

1.4.2 Non-sampling error

  • Non-sampling error
Cover

Lecture 7 and 8 Additional_notes(1).pdf

1. Statistics and sampling distributions

This section explores statistics derived from samples and their probability distributions, known as sampling distributions, detailing how these distributions are found and illustrating their mathematical derivation.

1.1 Introduction to statistics and sampling distributions

When a random sample is drawn from a population, numerical descriptive measures calculated from that sample are termed statistics. Examples include the sample mean and sample variance. Because these statistics change with each different random sample selected, they are considered random variables. The probability distributions of these statistics are called sampling distributions, as they reveal the possible values a statistic can take and their frequencies in repeated sampling 3.

1.1.1 Definition of sampling distribution

The sampling distribution of a statistic is the probability distribution that arises for the possible values of that statistic when random samples of size nn are repeatedly drawn from a population 4.

1.1.2 Methods for finding sampling distributions

There are three primary methods for determining the sampling distribution of a statistic:

  1. Mathematical derivation: Using the laws of probability to derive the distribution theoretically.
  2. Simulation: Approximating the distribution by drawing a large number of samples of size nn, calculating the statistic for each, and creating a relative frequency histogram. A large number of samples will yield a histogram closely resembling the theoretical distribution.
  3. Statistical theorems: Employing established statistical theorems to derive exact or approximate sampling distributions.

1.2 Mathematical derivation of sampling distributions

This method involves applying probability theory to determine the distribution of a statistic.

1.2.1 Example: Sampling distribution of the mean of two dice

To derive the sampling distribution of the mean (xˉ\bar{x}) for two dice, one can enumerate all possible outcomes and their corresponding means. Let X1X_1 and X2X_2 represent the random variables for the two dice. The probability of the sample mean being KK is equivalent to the probability of the sum of the two dice being 2K2K.

The probability can be expressed as: P(12(X1+X2)=K)=P(X1+X2=2K)P\left(\frac{1}{2}(X_1 + X_2) = K\right) = P(X_1 + X_2 = 2K) =136∑m=max⁡(1,2K−6)min⁡(6,2K−1)1= \frac{1}{36} \sum_{m=\max(1, 2K-6)}^{\min(6, 2K-1)} 1 =136(min⁡(6,2K−1)−max⁡(1,2K−6)+1)= \frac{1}{36} (\min(6, 2K-1) - \max(1, 2K-6) + 1) where 2K2K is an integer from 2 to 12, inclusive 8.

1.2.2 Example: Sum of two independent uniform random variables

Consider two independent random variables, X1X_1 and X2X_2, uniformly distributed on the interval. Their probability density function (pdf) is fX1(x1)=1f_{X_1}(x_1) = 1 if 0≤X1≤10 \le X_1 \le 1, and 0 otherwise. The pdf of their sum, S=X1+X2S = X_1 + X_2, can be derived using the convolution integral: fS(s)=∫−∞∞fX1(x1)fS−X1(s−x1)dx1f_S(s) = \int_{-\infty}^{\infty} f_{X_1}(x_1) f_{S-X_1}(s-x_1) dx_1 Since X2X_2 has support on fS−X1(s−x1)f_{S-X_1}(s-x_1) represents fX2(s−x1)f_{X_2}(s-x_1), which is 1 when 0≤s−x1≤10 \le s-x_1 \le 1. The range of ss is from 0 to 2 1 9.

For 0≤s≤10 \le s \le 1: fS(s)=∫0s1⋅1dx1=sf_S(s) = \int_{0}^{s} 1 \cdot 1 dx_1 = s

For 1<s≤21 < s \le 2: fS(s)=∫s−111⋅1dx1=[x1]s−11=1−(s−1)=2−sf_S(s) = \int_{s-1}^{1} 1 \cdot 1 dx_1 = [x_1]_{s-1}^{1} = 1 - (s-1) = 2 - s

Thus, the pdf of SS is: fS(S)={sif 0≤S≤12−sif 1<S≤20,otherwisef_S(S) = \begin{cases} s & \text{if } 0 \le S \le 1 \\ 2 - s & \text{if } 1 < S \le 2 \\ 0, & \text{otherwise} \end{cases} This distribution is triangular in shape 10.

1.2.3 Sum of two independent normal distributions

For two independent random variables, XX and YY, following normal distributions N(μX,σX2)N(\mu_X, \sigma_X^2) and N(μY,σY2)N(\mu_Y, \sigma_Y^2) respectively, the pdf of their sum Z=X+YZ = X+Y can be derived using the convolution integral: fZ(z)=∫−∞∞fY(z−x)fX(x)dxf_Z(z) = \int_{-\infty}^{\infty} f_Y(z-x) f_X(x) dx The resulting distribution for ZZ is also normal: fZ(z)=N(z;μX+μY,σX2+σY2)f_Z(z) = N(z; \mu_X + \mu_Y, \sigma_X^2 + \sigma_Y^2) This means ZZ follows a normal distribution with a mean equal to the sum of the individual means and a variance equal to the sum of the individual variances 14.

1.3 Simulation for approximating sampling distributions

When mathematical derivation is complex, simulation offers a practical alternative to approximate sampling distributions. This involves:

  • Drawing a large number of random samples, each of size nn, from the population.
  • Calculating the statistic of interest for each sample.
  • Constructing a relative frequency histogram of these calculated statistics.
  • As the number of samples increases, the histogram will closely approximate the theoretical sampling distribution 5.
Cover

Lecture 7 Notes (1).pdf

📚 Lecture 7 Notes (1).pdf

Brief overview

This document introduces the fundamental principles of statistical inference, exploring the relationship between population parameters and sample estimates. It is essential for understanding how to draw conclusions about populations from sample data.

Key points

  • Overview of statistical inference and its core components
  • How sample statistics relate to population parameters
  • Understanding sampling distributions and the Central Limit Theorem
  • Principles of hypothesis testing, including null and alternative hypotheses
  • Calculating and interpreting Z-tests and p-values for hypothesis decisions

1. Introduction to statistical inference (part 1)

1.1 The goal of statistical inference

Statistical inference is the process of drawing conclusions about a larger group using data from a smaller one. We use information from a sample to understand a population.

A parameter describes the whole population. A statistic describes the sample.

🔑 Important: We aim to make educated guesses about population parameters using sample statistics 12.

1.2 Understanding probability distributions

Probability distributions show how likely different outcomes are. A probability density curve illustrates these probabilities.

The area under the curve represents the probability of values falling within a certain range.

For example, the shaded area under a curve between values 3 and 4 shows the probability of observing a value in that interval 5.

A probability density curve showing the proportion of the population with values between 3 and 4.

The area under any probability density curve always equals 1. This total area represents 100% of the possible outcomes.

Shading a region between two values on the curve shows the probability of a result falling within that specific range 7.

A probability density curve showing the distribution of a population, with the area between 4 and 6 shaded to represent a probability of 0.16.

As values increase, the probability density can decrease. An area of 0.63 under the curve from 0 to 1 suggests a high probability for values in this range.

The area between 1 and 2 is smaller (0.23), indicating a lower probability for values in that range 9.

A probability density curve with shaded areas representing probabilities between intervals.

1.3 The Normal Distribution

The Normal Distribution is a very common bell-shaped curve used in statistics. It is defined by its mean (μ\mu) and standard deviation (σ\sigma).

The mean is the center of the distribution, and the standard deviation measures the spread of the data.

Different means shift the curve left or right. A higher standard deviation makes the curve wider and flatter, while a lower standard deviation makes it narrower and taller 13.

Two normal distribution curves are shown, one with mean 0 and standard deviation 1, and another with mean 5 and standard deviation 1.

The Empirical Rule

Cover

Lecture 7.pdf

📚 Lecture 7.pdf

Brief overview

This document introduces Principal Component Analysis (PCA), a technique for reducing data dimensionality by transforming variables into new uncorrelated components. Understanding PCA is crucial for simplifying complex datasets while retaining essential information for analysis.

Key points

  • Overview of Principal Component Analysis (PCA) and its purpose in data dimension reduction.
  • How to compute and interpret the first and second principal components.
  • The impact of variable scaling and the uniqueness of principal components.
  • Methods for selecting the appropriate number of principal components to retain.
  • The mathematical foundation of PCA through eigenvalues and eigenvectors.

1. Introduction to principal component analysis

1.1 What is principal component analysis?

PCA is a method for reducing data dimensions. It involves computing principal components.

These components are then used to understand the data. PCA is an unsupervised approach.

This means it does not require a target variable.

PCA can be used for several purposes:

  • Deriving new variables for supervised learning methods.
  • Visualizing data, which can include variables or observations.

1.2 Computing the first principal component

The first principal component (PC1) is the direction that captures the most variance in the data. It is found by identifying the eigenvector associated with the largest eigenvalue of the covariance matrix.

This eigenvector represents the direction of maximum variability.

Consider a dataset with two variables, X1X_1 and X2X_2. The first principal component is a linear combination of these variables: z1=ϕ11X1+ϕ12X2z_1 = \phi_{11}X_1 + \phi_{12}X_2 Here, ϕ11\phi_{11} and ϕ12\phi_{12} are the components of the first loading vector.

The loading vector indicates how the original variables contribute to the principal component.

📝 Example: If a dataset includes "crime rate" and "urbanization level," PC1 might represent the general "level of criminal activity."

1.3 Interpreting the first principal component

Interpretation of the first principal component depends on the meaning of the original variables. The loading vector's values, ϕ1j\phi_{1j}, show the weight of each original variable XjX_j in the component.

Larger absolute values indicate a stronger influence.

  • Positive loading: If a variable has a positive loading, increases in that variable contribute to an increase in the principal component's value.
  • Negative loading: If a variable has a negative loading, increases in that variable contribute to a decrease in the principal component's value.

📝 Example: In a dataset of US states, with variables like "Assault," "Murder," "Rape," and "UrbanPop," PC1 might have roughly equal positive loadings for "Assault," "Murder," and "Rape." A low loading for "UrbanPop" suggests it influences PC1 less. This component would then represent overall rates of serious crimes.

1.4 Computing the second principal component

The second principal component (PC2) captures the second largest amount of variance in the data. It is orthogonal (uncorrelated) to the first principal component.

PC2 corresponds to the eigenvector associated with the second largest eigenvalue.

The second principal component is also a linear combination of the original variables: z2=ϕ21X1+ϕ22X2z_2 = \phi_{21}X_1 + \phi_{22}X_2 The loadings ϕ21\phi_{21} and ϕ22\phi_{22} are the components of the second loading vector. This vector is orthogonal to the first loading vector.

1.5 Interpreting the second principal component

The interpretation of PC2 also relies on the original variables and their loadings. PC2 explains the remaining variance not accounted for by PC1.

It represents a different pattern or dimension within the data.

📝 Example: Continuing with the US states data, PC2 might have a large positive loading primarily for "UrbanPop." This would suggest that PC2 represents the level of urbanization of a state. States with high urbanization would score high on PC2.

1.6 Principal component decomposition and plotting

PCA decomposes the original data into principal components. These components can be plotted to visualize the data in a lower-dimensional space.

Plotting the first two principal components is common for exploratory data analysis.

  • Plotting observations: Each data point is represented by its scores on PC1 and PC2.
  • Plotting variables:
Cover

Lecture 7 Sampling distribution-1.pdf

1. Introduction to statistics and sampling distributions

This section introduces statistics derived from samples and their probability distributions, known as sampling distributions, outlining methods for determining these distributions and providing an illustrative example.

1.1 Statistics and sampling distributions

When a random sample is selected from a population, the numerical descriptive measures computed from this sample are termed statistics. Examples of statistics include the sample mean (barx\\bar{x}) and the sample variance (s2s^2). A key characteristic of these statistics is that they are random variables, meaning their values can vary for each different random sample drawn from the population 3.

1.1.1 Definition of sampling distribution

The probability distributions associated with statistics are referred to as sampling distributions. These distributions are crucial because they inform us about the potential values a statistic can take and the frequency with which each value occurs across repeated sampling experiments.

Definition: The sampling distribution of a statistic is the probability distribution that describes the possible values a statistic can assume when random samples of a fixed size, nn, are drawn repeatedly from a population 4.

1.1.2 Methods for determining sampling distributions

There are three primary methods to ascertain the sampling distribution of a statistic 5:

  1. Mathematical Derivation: Employing the laws of probability to mathematically derive the exact distribution.

  2. Simulation: Approximating the distribution through simulations. This involves drawing a large number of samples of size nn, calculating the statistic for each sample, and then creating a relative frequency histogram of these values. As the number of samples increases, this histogram closely approximates the theoretical sampling distribution.

  3. Statistical Theorems: Utilizing established statistical theorems to derive either exact or approximate sampling distributions.

Note: Statistical theorems often provide efficient ways to determine sampling distributions without the need for extensive mathematical derivations or simulations, especially for common statistics like the sample mean under certain conditions 6.

1.1.3 Example: Sampling distribution of the sample mean and median

Consider a population consisting of five distinct numbers, where each number has an equal probability of p(x)=1/5p(x) = 1/5 of being selected. The population mean and median can be calculated from this distribution 8.

To find the sampling distribution for statistics like the sample mean (barx\\bar{x}) and sample median (mm), it is necessary to determine the range of values these statistics can assume when samples are drawn.

For a population of size N=5N=5 and a sample size of n=3n=3, there are binom53=10\\binom{5}{3} = 10 possible unique random samples. Each of these samples is equally likely, with a probability of 1/101/10. Table 7.3 lists these samples along with their corresponding sample means (barx\\bar{x}) and sample medians (mm) 9.

Example: Table 7.3 demonstrates that certain values of the sample mean (barx\\bar{x}) are more probable than others because they appear in multiple samples. For instance, a specific value of barx\\bar{x} might be the result of several different sample combinations 10.

By compiling the values from Table 7.3, the sampling distributions for both the sample mean (barx\\bar{x}) and the sample median (mm) can be constructed. Table 7.4 presents these distributions, and Figure 7.2 provides a graphical representation 11.

Table 7.4: Sampling Distributions for (a) the Sample Mean and (b) the Sample Median

Statistic

Probability

$\bar{x}$ values

$p(\bar{x})$

...

...

$m$ values

$p(m)$

6

Cover

Lecture 7 Sampling distribution.pdf

1. Understanding statistics and sampling distributions

This section introduces statistics as descriptive measures of samples and explores their probability distributions, known as sampling distributions.

1.1 Statistics as random variables

When a random sample is selected from a population, any numerical descriptive measure calculated from that sample is termed a statistic. Examples include the sample mean (xˉ\bar{x}) and the sample variance (s2s^2). Since these statistics are derived from random samples, their values will vary with each different sample drawn. Consequently, statistics are considered random variables 3.

1.2 Sampling distributions

A sampling distribution is the probability distribution of a statistic. It provides insight into:

  • The possible values a statistic can take when samples are repeatedly drawn.
  • The frequency with which each of these values occurs.

Definition: The sampling distribution of a statistic is the probability distribution that describes the possible values of the statistic obtained when random samples of a specific size (nn) are drawn repeatedly from a population 4.

1.3 Methods for determining sampling distributions

There are three primary methods to determine the sampling distribution of a statistic:

  1. Mathematical derivation: This involves using the laws of probability to logically derive the exact distribution.
  2. Simulation: This approach approximates the distribution by drawing a large number of samples of size nn. For each sample, the statistic is calculated. The results are then tabulated and often visualized using a relative frequency histogram. As the number of simulated samples increases, this histogram closely approximates the theoretical sampling distribution 5.
  3. Statistical theorems: Established statistical theorems can be employed to derive either exact or approximate sampling distributions 6.

1.4 Example: Sampling distribution of the sample mean and median

Consider a population with five distinct numbers, each having an equal probability of p(x)=15p(x) = \frac{1}{5}. The population mean and median can be calculated. When drawing random samples of size n=3n=3 from this population of size N=5N=5, there are (53)=10\binom{5}{3} = 10 possible unique samples. Each of these samples is equally likely, occurring with a probability of 110\frac{1}{10} 8.

Table 7.3 lists these 10 samples and the corresponding values for the sample mean (xˉ\bar{x}) and sample median (mm) calculated for each 9.

Note: Some values of the sample mean (xˉ\bar{x}) are more probable than others because they can be obtained from multiple different samples. For instance, a particular value of xˉ\bar{x} might appear in two or more of the listed samples 10.

By aggregating the results from Table 7.3, the sampling distributions for both the sample mean (xˉ\bar{x}) and the sample median (mm) can be constructed. Table 7.4 presents these distributions, and Figure 7.2 graphically illustrates them.

Example: For the sample median, a value of 6 might occur with a probability of 0.3, a value of 9 with a probability of 0.4, and a value of 12 with a probability of 0.3, as shown in Table 7.4.

StatisticPossible ValuesProbability
Sample Mean (xˉ\bar{x})VariesVaries
Sample Median (mm)60.3

*Table 7.4: Sampling Distributions for (a) the Sample Mean and (b) the Sample Median * 11.

2. The Central limit theorem and its application to sample means

The Central Limit Theorem (CLT) is a foundational statistical theorem that describes the behavior of sample sums and means, stating that they tend to follow an approximately normal distribution as the sample size increases, irrespective of the original population's distribution.

2.1 Understanding the Central Limit Theorem

The Central Limit Theorem (CLT) is a fundamental statistical concept that explains the tendency for sums and means of random samples to approximate a normal distribution when the sample size grows sufficiently large. This holds true even if the original population from which the samples are drawn does not follow a normal distribution.

Cover

Lecture 7 Sampling distribution.pdf

1. Introduction to statistics and sampling distributions

This section explores statistics derived from samples and introduces the fundamental concept of sampling distributions, their purpose, and methods of derivation, supported by practical examples and the Central Limit Theorem.

1.1 Statistics and sampling distributions

When a random sample is selected from a population, numerical descriptive measures computed from the sample are termed statistics. Examples include the sample mean (xˉ\bar{x}) and sample variance (s2s^2). These statistics are inherently variable, changing with each different random sample obtained, thus functioning as random variables 3.

The probability distributions associated with these statistics are known as sampling distributions. They elucidate the possible values a statistic can take and the frequency with which each value occurs when samples of a specific size (nn) are repeatedly drawn from a population 4.

1.1.1 Methods for determining sampling distributions

There are three primary methods to determine the sampling distribution of a statistic 5:

  1. Mathematical Derivation: This involves using the laws of probability to derive the distribution theoretically.
  2. Simulation: A large number of samples of size nn are drawn, the statistic is calculated for each, and the results are tabulated into a relative frequency histogram. As the number of samples increases, this histogram closely approximates the theoretical sampling distribution.
  3. Statistical Theorems: Utilizing established statistical theorems allows for the derivation of exact or approximate sampling distributions.

1.2 Deriving sampling distributions: A practical example

Consider a population consisting of five distinct numbers, each with an equal probability of p(x)=1/5p(x) = 1/5. The population mean (μ\mu) and median can be calculated from this distribution 8.

To illustrate the derivation of a sampling distribution, let's examine the process for sample means and medians. Suppose we are interested in samples of size n=3n = 3 drawn from a population of size N=5N = 5. There are (53)=10\binom{5}{3} = 10 possible combinations for such samples, each with a probability of 1/101/10.

Table 7.3 lists these 10 possible samples and the corresponding sample means (xˉ\bar{x}) and medians (mm) for each 9.

Example: In Table 7.3, the value xˉ=7\bar{x} = 7 occurs in three different samples, indicating it is more probable than a value that appears in only one sample 10.

By aggregating these values from Table 7.3, we can construct the sampling distributions for the sample mean (xˉ\bar{x}) and the sample median (mm), as presented in Table 7.4 and visually represented in Figure 7.2 12.

StatisticProbability (Sample Mean)Probability (Sample Median)
60.10.3
70.30.4
80.30.3

Table 7.4: Sampling Distributions for (a) the Sample Mean and (b) the Sample Median 11.

1.3 The Central Limit Theorem (CLT)

The Central Limit Theorem (CLT) is a crucial statistical theorem that describes the behavior of sampling distributions, particularly for statistics that involve sums or averages of measurements 14.

1.3.1 Core principle of the CLT

Under general conditions, the CLT states that sums and means of random samples drawn from a population tend to follow an approximately normal distribution, irrespective of the original population's distribution 15.

1.3.2 Illustrative example: Dice tossing

Consider the experiment of tossing a balanced die. A single toss (n=1n=1) results in a random variable xx representing the number on the upper face. This variable follows a discrete uniform distribution, with each outcome (1 through 6) having a probability of 1/61/6. The distribution is symmetric with a mean (μ\mu) of 3.5 and a standard deviation (σ\sigma) of approximately 1.71 16 17.

When we increase the sample size, for instance, by tossing two dice (n=2n=2) and recording the sum (∑xi=x1+x2 \sum x_i = x_1 + x_2), and then calculate the average (xˉ=∑xi/n\bar{x} = \sum x_i / n), the distribution of these averages begins to change. There are 36 equally likely outcomes when tossing two dice, each with a probability of 1/361/36 18.

Table 7.5(b) and Figure 7.4 show the sampling distribution of xˉ\bar{x} for n=2n=2 dice. This distribution is more mound-shaped and symmetric around the population mean μ=3.5\mu = 3.5, deviating from the initial uniform distribution of a single die toss 19.

As the sample size increases further (e.g., n=3n=3 and n=4n=4), the sampling distribution of xˉ\bar{x} becomes progressively more closely approximated by a normal distribution, while its spread also decreases 21 22.

Cover

Lecture 8 Large-Sample Estimation-1.pdf

1. Introduction to large-sample estimation and point estimation

This section introduces the fundamental concepts of large-sample estimation, focusing on the method of point estimation to approximate unknown population parameters using sample statistics, while emphasizing desirable properties such as unbiasedness and minimum variance.

1.1 The concept of point estimation

Point estimation is a statistical method used to estimate an unknown population parameter by calculating a single value from a sample. The goal is to find a statistic that serves as the "best guess" for the true population parameter. The selection of an appropriate estimator is guided by the properties of its sampling distribution. Ideally, the sampling distribution of a point estimator should be centered on the true parameter value, indicating that it tends to produce estimates close to the actual population parameter over many repeated samples 3.

1.2 Unbiased estimators

An estimator is considered unbiased if the mean of its sampling distribution is equal to the true value of the parameter it is estimating. This means that, on average, the estimator does not systematically over- or under-estimate the parameter.

Definition of an unbiased estimator: A statistic u(X1,X2,…,Xn)u(X_1, X_2, \ldots, X_n) is an unbiased estimator of a parameter θ\theta if E[u(X1,X2,…,Xn)]=θE[u(X_1, X_2, \ldots, X_n)] = \theta. If this condition does not hold, the estimator is considered biased.

Note: The sampling distribution of an unbiased estimator is centered around the true parameter value, while a biased estimator's distribution is shifted away from the true value 4 5.

1.3 Minimizing variance in estimators

Beyond being unbiased, a desirable point estimator should also have a sampling distribution with the smallest possible variance. A smaller variance implies that individual estimates are more likely to be close to the true parameter value. When comparing two unbiased estimators, the one with the smaller variance is preferred because it provides more precision in estimation.

Example: Figure 8.3 visually demonstrates that while both estimators are unbiased, the one with a smaller variance results in estimates that are more tightly clustered around the true parameter, making it a better choice 6.

1.4 Error of estimation and margin of error

The error of estimation quantifies the difference between an observed estimate and the true value of the population parameter. This error is typically measured in terms of standard errors.

Margin of error: A practical measure for the error of estimation is the margin of error. For example, a 95% margin of error provides an upper bound for the likely error in an estimate. This concept is often visualized with the sampling distribution of an unbiased estimator, where the margin of error defines a range around the estimate within which the true parameter is likely to lie 7 8.

Important: The 95% margin of error is generally calculated as 1.96×Standard Error of the Estimator1.96 \times \text{Standard Error of the Estimator}.

1.5 Point estimation of population parameters

Point estimation involves using a statistic derived from sample data to estimate a population parameter.

  • Point estimator: A statistic computed from sample measurements.
  • 95% Margin of error: Calculated as 1.961.96 times the standard error of the estimator 9.

1.5.1 Estimating a population mean

To estimate the population mean (μ\mu) for a quantitative population, the sample mean (xˉ\bar{x}) is commonly used as a point estimator. It is an unbiased estimator.

  • Standard error of the sample mean: Estimated as sn\frac{s}{\sqrt{n}}, where ss is the sample standard deviation and nn is the sample size.
  • 95% Margin of error for the population mean: Estimated as 1.96×sn1.96 \times \frac{s}{\sqrt{n}}, typically used when n≥30n \ge 30 10.

Example 8.4: A sample of n=50n=50 polar bears yielded an average weight of 980 pounds with a standard deviation of 105 pounds. The point estimate for the average weight of all Arctic polar bears is xˉ=980\bar{x}=980 pounds. The 95% margin of error is calculated as: Margin of Error=1.96×10550≈29.1 pounds\text{Margin of Error} = 1.96 \times \frac{105}{\sqrt{50}} \approx 29.1 \text{ pounds}