STAT401 Lecture 10
STAT401 Lecture 10
• Inferential Statistics
Descriptive Statistics
• Organize Data
• Frequency table, Pie chart, Bar chart,
histogram, dotplot, stem-and-leaf diagram
• Summarize Data
• mean, median, mode, midrange
• variance, standard deviation, range
• five-number summary, boxplot
Review: Frequency table, Pie chart, Bar chart, histogram
Review: Dotplot and stem-and-leaf plot
Q1 = 23, Q2 = 30.5, Q3 = 36.5; Potential outlier: 66; Adjacent values: 5 and 43.
Review: sample mean and sample variance
𝒏
𝟏
ഥ = 𝒙𝒊
𝒙
𝒏
𝒊=𝟏
𝒏
𝟏
𝒔𝟐 = ഥ
𝒙𝒊 − 𝒙 𝟐
𝒏−𝟏
𝒊=𝟏
𝟐
𝒏 𝒏
𝟏 𝟐 𝟏
= 𝒙𝒊 − 𝒙𝒊
𝒏−𝟏 𝒏
𝒊=𝟏 𝒊=𝟏
Problem 1. In a survey, the observations of a sample are shown
in the stem-and-leaf diagram below
|𝑨|
𝑷 𝑨 = .
|𝑺|
b. Let 𝐴 be the event the die comes up odd; let 𝐵 be the event
the die comes up 4 or more. Find the events 𝐴 and 𝐵.
a. Let 𝐴 be the event the die comes up odd; let 𝐵 be the event
the die comes up 4 or more. Find the events 𝐴 and 𝐵.
c. Suppose the die is fair, find the probability 𝑃(𝐴 ∪ 𝐵).
{162} {162}
{168}
{168}
{188}
{192} ഥ, 𝒔𝟐
Statistics: 𝒙
Parameters: 𝝁, 𝝈𝟐
• 𝜒 2 -interval:
• relative margin of error 𝒅
• sample size required given 𝑑 and 𝛼
𝟏 𝒛𝜶/𝟐 𝟐
𝒏=
𝟐 𝒅
Confidence interval for population mean (𝝈 known)
(n > 30)
Problem 4. A sample of 32 bags of the same brand of candies
was selected at random. The sample mean weight was 2.4
ounces. Assume the population distribution of bag weights is
normal with population variance 0.04 ounce.
(n > 30)
Problem 6. A pharmaceutical company makes tranquilizers. It is
assumed that the distribution for the length of time they last is
approximately normal. Researchers in a hospital used the drug on
a random sample of 9 patients. The sample mean effective time
is 4.61 and the sample standard deviation is 0.78.
A simple random
sample of size 𝒏
{1}
{0} {0}
{1}
{1}
{1}
{0} ෝ
Statistic: 𝒑
Parameter: 𝒑 {𝒃𝟏 , 𝒃𝟐 , ⋯ , 𝒃𝒏 }
𝑬 𝒃 = 𝝁𝒃 = 𝒑 number of successes
𝒙 = 𝒃𝟏 + 𝒃𝟐 + ⋯ + 𝒃𝒏 = ∑𝒃𝒊
𝑽𝒂𝒓(𝒃) = 𝝈𝟐𝒃 = 𝒑𝒒
ഥ
ෝ = 𝒙/𝒏 = ∑𝒃𝒊 /𝒏 = 𝒃
𝒑
Review: Point and interval estimations
• Point estimate:
• 𝒑
ෝ is an unbiased estimator of 𝒑
• ෝ𝒈 for 𝒑
If an educated guess 𝒑 ෝ is available, then the reduced
sample size is
𝒛𝜶/𝟐 𝟐
𝒏=𝒑 ෝ𝒈 𝒒
ෝ𝒈
𝑬
rounded up to the next larger integer if necessary.