Docsity

Probability and Statistical Inference: Binomial Distribution and Sampling Distributions, Study notes of Data Analysis & Statistical Methods

Toggle sidebar
bg1
Chapter 5
From Probability to Inference
Exploratory data analysis draws conclusions about the individuals for whom we actually
have data. Statistical inference draws conclusions about the a population or a process on the
basis of data.
Recall:
•population,sample
•Parameter: A number describing the population
•Statistic: Arandom variable, a number that can be computed from the data without
making use of any unknown parameters
•Sampling distribution of a statistic: probability distribution
•Population distribution: probability distribution derived from the information on all mem-
bers of the population.
•The population distribution is also the probability distribution of the variable when we
choose one individual from the population at random
5.1 Sampling distributions for counts and proportions
The binomial distribution
The binomial distribution is one of the most widely used discrete probability distributions.
The binomial setting:
1. There are nidentical trials
2. Each trial has only two possible outcomes: “success”, or “failure”
3. Probability of success, denoted by p, is the same for each trial
4. The trials are independent.
5-1
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Probability and Statistical Inference: Binomial Distribution and Sampling Distributions and more Study notes Data Analysis & Statistical Methods in PDF only on Docsity!

Chapter 5 From Probability to Inference

Exploratory data analysis draws conclusions about the individuals for whom we actually have data. Statistical inference draws conclusions about the a population or a process on the basis of data.

Recall:

  • population, sample
  • Parameter: A number describing the population
  • Statistic: A random variable, a number that can be computed from the data without making use of any unknown parameters
  • Sampling distribution of a statistic: probability distribution
  • Population distribution: probability distribution derived from the information on all mem- bers of the population.
  • The population distribution is also the probability distribution of the variable when we choose one individual from the population at random

5.1 Sampling distributions for counts and proportions

The binomial distribution

The binomial distribution is one of the most widely used discrete probability distributions.

The binomial setting:

  1. There are n identical trials
  2. Each trial has only two possible outcomes: “success”, or “failure”
  3. Probability of success, denoted by p, is the same for each trial
  4. The trials are independent.
  • The binomial random variable X: the count of successes in the binomial setting.
  • The distribution of X is called the binomial distribution with parameters n and p, denoted by X ∼ B(n, p).
  • Binomial probability:

P (X = k) =

n k

pk(1 − p)n−k, k = 0, 1 , 2 , ..., n

where

n k

n! k!(n − k)!

  • E(X) = μX = np
  • Var(X) = σ X^2 = np(1 − p), σX =

np(1 − p)

Example 5.1 Refer to Exercise 5.1 (p.383).

Example 5.2 A man claims to have extrasensory perception (ESP). As a test, a fair coin is flipped 10 times, and he is asked to predict the outcome in advance. The man gets 7 out of 10 correct. What is the probability that he would have done at least this well if he had no ESP?

Solution:

Example 5.1 A study by a federal agency found that lie detector tests given to truthful persons have probability about 0. 2 of suggesting that the person is deceptive. A company gives lie detector to 12 job applicants each year. Suppose that all of the applicants are truthful.

(a) What is the probability that the polygraph says at least 1 is deceptive?

(b) What is the mean number among 12 truthful applicants who will be classified as deceptive? What is the standard deviation?

(b) How often does the airline manage to satisfy all customers, both those who make beef and those who make chicken their first choice?

Solution:

Sampling distribution of a count:

Let p be the population proportion of successes. When the population is much larger than the sample, the count of successes in an SRS of size n has approximately the B(n, p) distribution

Sample Proportions

Let p be the population proportion of successes. Choose an SRS of size n from a large population. Let X be the count of successes in the sample. The sample proportion ˆp is defined by

pˆ =

count of successes in sample size of sample

X

n

Mean and standard deviation of a sample proportion

  • μpˆ = p
  • σˆp =

p(1 − p) n

Remark:

  • The formula for σˆp is correct in the binomial setting. It is approximately correct for an SRS when the population size ≥ 10 × sample size
  • The variability of ˆp gets smaller as sample size increases

Normal approximation for proportions

pˆ ≈ N (p,

p(1 − p) n

when np ≥ 10 and n(1 − p) ≥ 10

  • z -score Z =

pˆ − p √ p(1−p) n

≈ N (0, 1)

  • Problems about ˆp can be treated as normal distribution calculation problems discussed in Section 1.

Example 5.3 Your mail-order company advertises that it ships 90% of its orders within three working days. You select an SRS of 100 of the 5000 orders received in the past week for an audit. The audit reveals that 86 of these orders were shipped on time.

(a) What is the sample proportion of orders shipped on time?

(b) If the company really ships 90% of its orders on time, what is the probability that the proportion in an SRS of 100 orders is ≤ .86?

(c) Based on the probability calculation in (b), can you refute the 90% claim?

Solution:

Example 5.4 A city is planning to build a hydroelectric power plant. A local newspaper found that 53% of the voters in this city favor the construction of this plant. Assume that this result holds true for the population of all voters in this city.

(a) What is the probability that more than 50% of the voters in a random sample of 200 voters will favor the construction of this plant?

5.2 The sampling distribution of a sample mean

One of the most common statistics

Refer to Example 5.13 (p.392) A basic principle of investment is that diversification reduces risk.

  • Averages are less variable than individual observation

Parameters:

μ —– mean of population

σ —– standard deviation of population

Statistics:

X¯ —– sample mean calculated from sample data

s —– sample standard deviation calculated from sample data

Select an SRS of size n from a population. Suppose the data are

X 1 , X 2 , ..., Xn

The sample mean of an SRS of size n is defined by

X¯ =^1

n

(X 1 + X 2 + · · · + Xn)

The sample standard deviation is defined by

s =

n − 1

((X 1 − X¯)^2 + (X 2 − X¯)^2 + · · · + (Xn − X¯)^2 )

Mean and standard deviation of a sample mean:

Suppose that X¯ is the sample mean of an SRS of size n drawn from a large population with mean μ and standard deviation σ. Then

  • The mean of X¯ is equal to μ μ (^) X¯ = μ
  • The standard deviation of X¯ is

σ √ n

σ (^) X¯ =

σ √ n

Example 5.6 For 1987 as a whole, the mean return of all common stocks on the NYSE was μ = − 3 .5%. The standard deviation of the returns was σ = 26%. Figure 5.7 (b) (p.392) is the sampling distribution of the mean returns X¯ for all possible samples of 5 stocks. What are the mean and the standard deviation of the distribution in Fig. 5.7(b)?

Solution:

Example 5.7 An automatic grinding machine in an auto parts plant prepares axles with a target diameter μ = 40. 125 mm. The machine has some variability, so the standard deviation of the diameter is σ =. 002 mm. The machine operator inspects a sample of 4 axles each hour for quality control purposes and records the sample mean diameter. What will be the mean and standard deviation of the numbers recorded?

Solution:

Sampling distribution of a sample mean:

Example 5.9 Suppose that the distribution of annual returns on common stocks has mean 9% and standard deviation 28%. Andrew plans to retire in 45 years and is considering investing in stocks. What is the probability that the mean annual return on common stocks over the next 45 years will exceed 15%? less than 5%?

Solution:

Example 5.10 A life insurance company sells a term insurance policy to a 21-year old male that pays $100,000 if the insured dies within the next 5 years. Suppose that the distribution of profit for each policy has mean $100 and standard deviation $9,000.

(a) If the insurance company sells 25 such policies, what is the probability that the average incomes on the 25 policies is less than −$1000?

(b) If the insurance company sells 4,000,000 such policies, what is the probability that the average profit on the 4,000,000 policies is

(i) less than $ (ii) more than $ (iii) $90 to $

Solution:

Example 5.11 The number of traffic accidents per week at an intersection varies with mean 2.2 and standard deviation 1.4.

(a) Let X¯ be the mean number of accidents per week at the intersection during a year ( weeks). What is the approximate distribution of X¯?

(b) What is the approximate probability that X¯ is less than 2?

(C) What is the approximate probability that there are fewer than 100 accidents at the inter- section in a year?

Solution:

Law of Large numbers:

X¯ → μ

  • Mean of X¯ μ (^) X¯ = μ
  • Standard deviation of X¯ σ (^) X¯ =

σ √ n

  • If the population has N (μ, σ), then

X¯ ∼ N (μ, √σ n

  • Central limit theorem: X¯ ≈ N (μ, √σ n