Docsity

Statistical Methods: Regression Analysis and Time Series Forecasting, Study notes of Applied Statistics

Toggle sidebar
bg1
Chapter 6
Simple Random Sample
A simple random sample is chosen by a process that selects a sample of n objects from a
population in such a way that each member of the population has the same probability of being
selected, the selection of one member is independent of the selection of any other member
Sampling Distributions
The sampling distribution of the sample mean is the probability distribution of the sample
means obtained from all possible samples of the same number of observations drawn from the
population.
Development of a Sampling Distribution
If we were selecting from a population of several thousand or more, then the change in
probability from the first to the second observation would be ignored.
Thus, we assume that we are sampling with replacement of the first observation in essentially
all real-world sampling studies.
6.2 Sampling Distributions of Sample means
Sample Mean
Let the random variables denotes a random sample from a population. The
𝑋1, 𝑋2, . . . , 𝑋𝑛
sample mean value of these random variables is defined as follows:
𝑋‾ = 1
𝑛𝑖 = 1
𝑛
∑ 𝑋𝑖
The expectation of a linear combination of random variables is the linear combination of the
expectations:
𝐸[𝑋‾]=𝐸[1
𝑛𝑖=1
𝑛
∑𝑋𝑖]= 𝑛µ
𝑛=µ
Thus, the mean of the sampling distribution of the sample means is the population mean.
Furthermore, the variance of the sampling distribution of the sample means, also called the
standard error of the mean, is given by the population variance divided by the sample size:
𝑉𝑎𝑟(𝑋‾)= σ2
𝑛
This shows that as the sample size increases, the spread of the sampling distribution of the
sample means decreases, making the sample mean a more accurate estimator of the population
mean.
If samples of n random and independent observations are repeatedly and independently drawn
from a population, then as the number of samples becomes very large, the mean of the sample
means approaches the true population mean.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b

Partial preview of the text

Download Statistical Methods: Regression Analysis and Time Series Forecasting and more Study notes Applied Statistics in PDF only on Docsity!

Chapter 6

Simple Random Sample

A simple random sample is chosen by a process that selects a sample of n objects from a population in such a way that each member of the population has the same probability of being selected, the selection of one member is independent of the selection of any other member

Sampling Distributions

The sampling distribution of the sample mean is the probability distribution of the sample means obtained from all possible samples of the same number of observations drawn from the population.

Development of a Sampling Distribution

If we were selecting from a population of several thousand or more, then the change in probability from the first to the second observation would be ignored. Thus, we assume that we are sampling with replacement of the first observation in essentially all real-world sampling studies.

6.2 Sampling Distributions of Sample means

Sample Mean

Let the random variables 𝑋 1 , 𝑋 2 ,... , 𝑋𝑛denotes a random sample from a population. The

sample mean value of these random variables is defined as follows:

𝑋‾^ = (^1) 𝑛 𝑖 = 1

𝑛 ∑ 𝑋𝑖

The expectation of a linear combination of random variables is the linear combination of the

expectations: 𝐸[𝑋‾] = 𝐸[ (^1) 𝑛 𝑖=

𝑛 ∑ 𝑋𝑖] = 𝑛μ𝑛 = μ

Thus, the mean of the sampling distribution of the sample means is the population mean.

Furthermore, the variance of the sampling distribution of the sample means, also called the standard error of the mean, is given by the population variance divided by the sample size:

2 𝑛 This shows that as the sample size increases, the spread of the sampling distribution of the sample means decreases, making the sample mean a more accurate estimator of the population mean.

If samples of n random and independent observations are repeatedly and independently drawn from a population, then as the number of samples becomes very large, the mean of the sample means approaches the true population mean.

CENTRAL LIMIT THEOREM

Let X 1 , X 2 ,... , Xn be a set of n independent random variables having identical distributions with

mean μ, variance 𝝈^2 , and 𝑋‾as the mean of these random variables. As n becomes large, the central limit theorem states that the distribution of

𝑍 =

𝑋‾ − μ𝑥‾ σ𝑥‾

approaches the standard normal distribution.

A related and important result is the law of large numbers , which concludes that given a random sample of size n from a population, the sample mean will approach the population mean as the sample size n becomes large, regardless of the underlying probability distribution.

Acceptance Intervals

An acceptance interval is an interval within which a sample mean has a high probability of occurring, given that we know the population mean and variance.

Acceptance intervals based on the normal distribution are defined by the distribution mean and variance. From the central limit theorem we know that the sampling distribution of sample means is often approximately normal. Assuming that we know the population mean μ, variance 𝝈^2 , then we can construct a symmetric acceptance interval:

μ ± 𝑧α/2σ𝑥‾

provided that 𝑥‾^ has a normal distribution and 𝑧α/2 is the standard normal when the upper tail

probability is 𝛼 / 2. The probability that the sample mean 𝑥‾is included in the interval is 1 - 𝛼.

6.3 Sampling Distributions of Sample proportions

Sample Proportion

Let X be the number of successes in a binomial sample of n observations with the parameter P. The parameter is the proportion of the population members that have a characteristic of interest. We define the sample proportion as follows

𝑝 ^ = 𝑋𝑛

X is the sum of a set of n independent Bernoulli random variables, each with probability of success P.

As a result, 𝑝^ ^is the mean of a set of independent random variables.

In addition, the central limit theorem can be used to argue that the probability distribution for 𝑝^ ^ can be modeled as a normally distributed random variable. If random samples are obtained from the population and the success or failure is determined for each observation, then the sample proportion of success approaches P as the sample size increases.

Chi-Square Distribution of Sample and Population Variances

Given a random sample of n observations from a normally distributed population whose

population variance is 𝜎^2 and whose resulting sample variance is s^2 , it can be shown that

𝑥(𝑛−1) 2 = (𝑛−1) * 𝑠

2 σ^2 =^

𝑖=

𝑛 ∑ (𝑥𝑖−𝑥‾)^2 σ^2

has a distribution known as the chi-square ( χ^2 ) distribution with n - 1 degrees of freedom. The chi-square distribution with n - 1 degrees of freedom is the distribution of the sum of squares of n - 1 independent standard normal random variables.

We can characterize a particular member of the family of chi-square distributions by a single parameter referred to as the degrees of freedom, denoted as 𝑣. The mean and variance of this distribution are:

  • 𝐸[𝑋] = 𝑣
  • 𝑉𝑎𝑟(𝑋) = 2𝑣

Sampling Distribution of the Sample Variances

Let s^2 denote the sample variance for a random sample of n observations from a population with

a variance 𝜎^2.

1. The sampling distribution of s^2 has mean 𝜎^2 :

𝐸[𝑠^2 ] = σ^2

  1. The variance of the sampling distribution of s^2 depends on the underlying population distribution. If that distribution is normal, then: 𝑉𝑎𝑟(𝑠^2 ) = 2σ

4 𝑛−

  1. If the population distribution is normal, then 𝑥(𝑛−1)^2 = (𝑛−1) * 𝑠

2 σ^2 is distributed as the chi-squared distribution with n - 1 degrees of freedom

Chapter 7

7.1 Properties of Point Estimators

Estimator and Estimate

An estimator of a population parameter is a random variable. A specific value of that random variable is called an estimate One possible estimator of the population mean is the sample mean. If the mean of a random sample of weekly sales is found to be 3,280 gallons, then 3,280 is an estimate of the population mean weekly sales.

Point Estimator and Point Estimate

A point estimator of a population parameter is a function of the sample information that produces a single number called a point estimate.

For example, the sample mean 𝑋‾is a point estimator of the population mean, and the value that 𝑋‾^ assumes for a given set of data is called the point estimate, 𝑥‾. We evaluate estimators based on two important properties: unbiasedness and efficiency

Unbiased Estimator

A point estimator θis said to be an unbiased estimator of a population parameter if its

^

expected value is equal to that parameter → if: 𝐸[θ

^

] = θ

An unbiased estimator is correct on the average. We know that:

Bias

Let θ^ ^^ be an estimator of a population parameter θ. The bias in θ^ ^is defined as the difference

between its mean and θ: 𝑏𝑖𝑎𝑠(θ

^

) = 𝐸[θ

^

] − θ

For example, if the population is normally distributed, both the sample mean and the median are unbiased estimators of the population mean.

Most Efficient Estimator and Relative Efficiency

The unbiased estimator with the smallest variance is called the most efficient estimator , or the

minimum variance unbiased estimator. Let θ^ ^ 1 and θ^ ^ 2 be two unbiased estimators of θ, based on

the same number of sample observations. Then:

  1. θ^ ^ 1 is said to be more efficient than θ^ ^ 2 if 𝑉𝑎𝑟(θ^ ^ 1 ) < 𝑉𝑎𝑟(θ^ ^ 2 ), and
  2. the relative efficiency of θ with respect is the ratio of their variances ^ 1 θ

^ 2 𝑟𝑒𝑙𝑎𝑡𝑖𝑣𝑒 𝑒𝑓𝑓𝑖𝑐𝑖𝑒𝑛𝑐𝑦 =

𝑉𝑎𝑟(θ^ ^ 2 ) 𝑉𝑎𝑟(θ^ ^ 1 )

Reducing Margin of Error

The factors that affect the margin of error are: the population standard deviation, the sample size n , and the confidence level.

Keeping all other factors constant, the more that the population standard deviation can be reduced, the smaller the margin of error.

Another way to reduce the margin of error is to increase the sample size. This will reduce the standard deviation of the sampling distribution of the sample mean and, hence, the margin of error. Notice that the interval width is directly proportional to 1/ 𝑛. For example, if the original sample size were 100, an increase to a sample size of 400 would lead to an interval half the width of the original confidence interval. The disadvantage to an increased sample size is increased costs.

Finally, if the confidence level (1 − α)is decreased, the margin of error is also reduced. For example, a 95% confidence interval is shorter than a 99% confidence interval based on the same information. Caution : The reduction of the confidence level reduces the probability that the interval includes the value of the true population parameter.

7.3 Confidence interval estimation for the mean of a normal

distribution: Population variance Unknown

Student’s t Distribution

The Student’s t distribution is the ratio of the standard normal distribution to the square root of the chi-square distribution divided by its degrees of freedom, 𝑣.

The development of Section 7.2 was based on the fact that the random variable Z, given by:

𝑍 = 𝑋 has a standard normal distribution.

‾ − μ σ/ 𝑛

In the case where the population standard deviation is unknown , this result cannot be used directly. It is natural in such circumstances to consider the random variable obtained by replacing the unknown 𝜎 by the sample standard deviation, s, giving:

𝑡 = 𝑥

‾ − μ 𝑠/ 𝑛 Its distribution is known and is a member of a family of distributions called Student’s t.

Student’s t Distribution

Given a random sample of n observations, with mean 𝑥‾ and standard deviation s , from a normally distributed population with mean μ, the random variable t follows the Student’s t distribution with (𝑛 − 1)degrees of freedom and is given by:

𝑡 = 𝑥

‾ − μ 𝑠/ 𝑛 As the number of degrees of freedom increases, the Student’s t distribution becomes increasingly similar to the standard normal distribution.

Just as 𝑧α/2 is the value from the standard normal such that the upper tail probability is α/2, so

𝑡𝑣, α/2 is the value from the Student’s t distribution for 𝑣 such that the upper tail probability isα/

Confidence Intervals for the Variance of a Normal Population

7.6 Confidence Interval Estimation: Finite Populations

The sample size is considered to be relatively large compared to the population size if it is more than 5% of the population size, if n > 0.05N. We assume that the sample is sufficiently large and that recourse to the central limit theorem is appropriate. As a result, the finite population correction factor , (𝑁 − 𝑛)/(𝑁 − 1). In these situations the individual members are not distributed independently of one another and sampling is without replacement.

Population Mean and Population Total

Estimation of the Population Total, Finite Population

Suppose a simple random sample of size n from a population of size N is selected and that the quantity to be estimated is the population total → Nμ.

  1. An unbiased estimation procedure for the population total Nμ yields the point estimate 𝑁𝑥‾.
  2. An unbiased estimation procedure for the variance of our estimator of the population total yields the point estimate: 𝑁 2 σ𝑥‾ 2 = 𝑁 2 𝑠^2 𝑛 (^

𝑁−𝑛 𝑁−1 ) It follows that:

𝑁σ𝑥‾ = 𝑁𝑠𝑛 ( 𝑁−𝑛𝑁−1 )

  1. A 100(1 − α)% confidence interval for the population total , Nμ, is obtained from: 𝑁𝑥‾ ± 𝑡𝑛 − 1, α/2𝑁σ𝑥‾

^

where ME, the margin of error, is given by: 𝑀𝐸 = 𝑡𝑛 − 1, α/2𝑁σ𝑥‾ ^

Population Proportion

Consider the case where it is required to estimate the proportion P of individuals in the population possessing some specific characteristic. Inference about this proportion should be based on the hypergeometric distribution when the number of sample members is not very small compared to the number of population members. Again, assume that the sample size is large enough to allow the central limit theorem to be invoked.

7.7 Sample-size determination: large Populations

We can fix in advance the width of the confidence interval, choosing a sample size big enough to guarantee that width. In this section we consider how sample size can be chosen in this way for two interval estimation problems

Sample Sizes for Simple Random Sampling: Estimation of Population

Proportion

Chapter 8

We will see that confidence interval estimates of the difference between the means of normally

distributed populations X and Y will be as follows: (𝑥‾ − 𝑦‾) ± 𝑀𝐸and similarly for the population proportions.

8.1 Confidence Interval Estimation of the Difference Between two

normal Population means

Dependent Sample

We consider samples to be dependent if the values in one sample are influenced by the values in the other sample. Dependent samples are either matched pairs or the same individual or objects tested twice.

Confidence Intervals of Two Means: Dependent Samples (Matched Pairs)

Suppose that there is a random sample of n matched pairs of observations from normal distributions with means μ𝑥and μ𝑦. That is, let x 1 , x 2 ,... , xn denote the values of the observations

from the population with mean μ𝑥and let y 1 , y 2 ,... , yn denote the matched sampled values from

the population with the mean μ𝑦.

Let 𝑑‾and sd denote the observed sample mean and standard deviation for the n differences 𝑑𝑖 = 𝑥𝑖 − 𝑦𝑖. If the population distribution of the differences is assumed to be normal, then a

100(1 − α)% confidence interval for the difference between two means, dependent samples

(μ𝑑 = μ𝑥 − μ𝑦) is given by: 𝑑‾ ± 𝑡𝑛 − 1, α/2 or equivalently.

𝑆𝑑 𝑛 𝑑

The Standard deviation of the differences, sd, and the margin of error, ME, are:

𝑠𝑑 = and

∑(𝑑𝑖−𝑑‾)^2 𝑛−1 𝑀𝐸 = 𝑡𝑛 − 1, α/

𝑆𝑑 𝑛

where tn-1, a/2 is the number for which: 𝑃(𝑡𝑛−1 > 𝑡𝑛−1, α/2) = α 2

In addition to matched pairs, another type of situation that involves dependent samples is sometimes known as repeated measurements since two scores are obtained for each individual.

Two Means, Independent Samples, and Unknown Population Variances Not

Assumed to Be Equal

8.3 Confidence interval estimation of the difference Between two

Population Proportions

Let 𝑃𝑥 denote the observed proportion of successes in a random sample of 𝑛𝑥observations from

a population with proportion 𝑃𝑥 of successes, and let 𝑝^ ^𝑦denote the proportion of successes

observed in an independent random sample of 𝑛𝑦 observations from a population with

proportion 𝑃𝑦of successes. Then, if the sample sizes are large (generally at least 40 observations

in each sample), a 100(1 − α)%confidence interval for the difference between population proportions, (𝑃𝑥 − 𝑃𝑦), is given by

(𝑝

^ 𝑥 − 𝑝

^ 𝑦) ± 𝑧α/

𝑝^ ^𝑥(1−𝑝^ ^𝑥) 𝑛𝑥^ +^

𝑝^ ^𝑦(1−𝑝^ ^𝑦) 𝑛𝑦

Chapter 9

9.1 Concepts of Hypothesis Testing

First, we need to define two alternatives that cover all possible outcomes. Then, by using statistics computed from random samples, we select one of the two alternatives. Since these statistics have a sampling distribution, our decision is made in the face of random variation. Thus, clear decision rules are needed for choosing between the two alternatives.

We begin the hypothesis-testing procedure by considering a value for a population probability distribution parameter such as the mean , the variance , or the proportion.

Our approach starts with a hypothesis about the parameter, the NULL HYPOTHESIS , that will be maintained unless there is strong evidence against this null hypothesis. If we reject the null hypothesis, then the second hypothesis, named the alternative hypothesis, will be accepted. If we fail to reject the null hypothesis, we can’t conclude that the null hypothesis is correct.

If the observed statistic falls in a range of values with a low probability of occurring under the null hypothesis, we reject the null hypothesis.

The null hypothesis is assumed true unless strong evidence suggests otherwise. By setting a low significance level (α), we minimize the risk of rejecting a true null hypothesis.

Significance level : The probability αof rejecting a null hypothesis that is true. Power: The probability of rejecting a null hypothesis that is false.

A test of the Mean of a Normal Distribution (Variance Known): Composite Null and

Alternative Hypotheses

The procedure for testing, at significance level α, the null hypothesis: 𝐻 0 : μ ≤ μ 0 against the

alternative 𝐻 1 : μ > μ 0 is precisely the same as when the null hypothesis is 𝐻 0 : μ = μ 0. In addition,

the p -values are also computed in exactly the same way.

Two-Sided Alternative Hypothesis

We consider the test of the null hypothesis: 𝐻 0 : μ = μ 0 against the alternative: 𝐻 1 : μ ≠ μ 0.

Again, if the random variable has a normal distribution with known variance σ, we obtain a test with significance level αby using the result that under the null hypothesis, 𝑃(𝑍 > 𝑧α/2) = α 2 𝑎𝑛𝑑 𝑃(𝑍 <− 𝑧α/2) = α 2

In this case we have divided the significance level αequally between the two tails of the normal distribution. Hence, the probability that Z either exceeds 𝑧α/2 or is less than − 𝑧α/2 is α.

The decision rule for a test with significance level α is: 𝑟𝑒𝑗𝑒𝑐𝑡 𝐻 0 𝑖𝑓 is either greater than 𝑥‾−μ 0 σ/ 𝑛 𝑧α/ or less than − 𝑧α/2.

In addition, the p-values can be computed by noting that the corresponding tail probability would be doubled to reflect a p-value that refers to the sum of the upper and lower-tail probabilities for the positive and negative values of Z.

9.3 Tests of the Mean of a Normal Distribution: Population Variance

Unknown

For sample sizes greater than 100 the normal probability distribution can be used to approximate the Student’s t distribution.

Using the sample mean and variance, we know that the random variable: 𝑡𝑛−1 = (^) 𝑠/ 𝑛𝑥‾−μ follows a

Student’s t distribution, with 𝑛 − 1 degrees of freedom.

Procedure :

  1. To test either null hypothesis: 𝐻 0 : μ = μ 0 𝑜𝑟 𝐻 0 : μ ≤ μ 0 against the alternative 𝐻 1 : μ > μ 0 the

decision rule is:

  • 𝑟𝑒𝑗𝑒𝑐𝑡 𝐻 0 𝑖𝑓 𝑡 = 𝑥‾−μ 0 𝑠/ 𝑛 > 𝑡𝑛−1, α
  • or equivalently 𝑟𝑒𝑗𝑒𝑐𝑡 𝐻 0 𝑖𝑓 𝑥‾ > 𝑥^ ‾ 𝑐= μ 0 + 𝑡𝑛−1, α𝑠/ 𝑛
  1. To test either null hypothesis 𝐻 0 : μ = μ 0 𝑜𝑟 𝐻 0 : μ ≥ μ 0 against the alternative 𝐻 1 : μ < μ 0 the

decision rule is:

  • 𝑟𝑒𝑗𝑒𝑐𝑡 𝐻 0 𝑖𝑓 𝑡 = 𝑥‾−μ 0 𝑠/ 𝑛 <− 𝑡𝑛−1, α
  • or equivalently 𝑟𝑒𝑗𝑒𝑐𝑡 𝐻 0 𝑖𝑓 𝑥‾ < 𝑥^ ‾ 𝑐= μ 0 − 𝑡𝑛−1, α𝑠/ 𝑛
  1. To test the null hypothesis 𝐻 0 : μ = μ 0 against the alternative 𝐻 1 : μ ≠ μ 0 the decision rule is:
  • 𝑟𝑒𝑗𝑒𝑐𝑡 𝐻 0 𝑖𝑓 𝑡 = 𝑥‾−μ 0 𝑠/ 𝑛 <− 𝑡𝑛−1, α/2^ 𝑜𝑟 𝑡 =^

𝑥‾−μ 0 𝑠/ 𝑛 > 𝑡𝑛−1, α/

where 𝑡𝑛−1, α/2 is the Student’s t value for n - 1 degrees of freedom and the tail probability is α/2.