Professional Documents
Culture Documents
Statistics
Statistics
STATISTICS
TOPIC 1
WHAT IS STATISTICS?
Statistics is a field of study, which implies collecting,
organizing, analyzing and interpreting data as a basis for
explanation, description and comparison in order to make
decision.
Example
MMU – students’ result is dropping
Why?
1
05/07/19
TYPES OF STATISTICS
Descriptive Statistics
is a field of study which involves organizing, displaying and
describing data by using tables, graphs (graphical techniques) and
summary measures (numerical techniques).
Inferential Statistics
is a field of study that used sample results to make decisions about
population.
Population Sample
2
05/07/19
Measures of
central tendency
Measures of
Organizing data dispersion
• Range, standard deviation
and Variance
Population: σ 2
Sample: s 2
Sampling Theory
We look at sample characteristics to gain understanding of
the population at hand. Recognize random variables and
random sample.
The usual assumption that a sample comes from a normally
distributed population. Written as X~ N ( µ , σ ) .
2
X to estimate µ
s2 to estimate σ2
3
05/07/19
4
05/07/19
Cases
σ known σ unknown σ unknown
n ≥ 30 n < 30
Approximation Normal Normal t-distribution
Standardization X −µ X −µ X −µ
Z= Z= T=
σ s s
n n n
CLT
Example 1:
5
05/07/19
Example 2:
Statistical Inference
Sample
Inference
Parameter Statistic
6
05/07/19
Statistical Inference
Statistical inference
7
05/07/19
ESTIMATION
Estimation is a procedure by which numerical value(s) are assigned
to a population parameter based on the information collected from
a sample.
Example
A lecturer wants to estimate the average time taken by
the students to browse Internet per day.
X
Is the point estimate
of
µ s 2 Is the pointof estimate σ 2
8
05/07/19
**
σ
µ = = x ± zα ( )
2 n
b) Large sample and σ unknown
s
µ = = x ± zα ( )
2 n
c) Small sample and σ unknown
s
µ = = x ± tα ( )
2 n
9
05/07/19
Example
?
?
Example:
10
05/07/19
Example:
Example:
11
05/07/19
Example:
12
05/07/19
Estimating a proportion
(confidence interval for a population
proportion)
13
05/07/19
Example:
14
05/07/19
Example:
Hypothesis Testing
Test a certain given theory about a population
parameter by using some sample
information(statistic).
Useful in determining a new procedure is better than the existing
one.
E.g.:
- Drink Company claims that on average its cans contains 12 ounces
of soda.
- A researcher thinks that if knee surgery patients go to physical
therapy twice a week (instead of 3 times), their recovery period will
be longer
15
05/07/19
Statistical hypothesis
16
05/07/19
Test statistics
A value computed from sample data
17
05/07/19
Two-tailed test:
Sign for H1 is “≠”.
Keyword:
“changed”
“different”
E.g.: Mean family size in US
was 3.18. We want to check
either the mean has changed or
not.
Right-tailed test:
Sign for H1 is “>”.
Keyword:
“more than”
E.g.: School teacher’s
salary was $2000. We want
to test the current salary is
higher than $2000
18
05/07/19
Left-tailed test:
Sign for H1 is “<”.
Keyword:
“less than”
E.g.: Cans contain an average
12 ounces. We want to test
either the mean amount is less
than 12 ounces.
Example:
Explain which of the following is a two-tailed test, a left-tailed test
and a right-tailed test.
19
05/07/19
Example:
Write the null and alternative hypotheses for each of the
following examples. Determine the tail (s) of the test.
20
05/07/19
Types of error
Type I error
• True H0 is rejected.
• α = significance level of the test
• α = P (H0 is rejected | H0 is true)
Type II error
• False H0 is not rejected.
• 1- β = power of the test
• β = P (H0 is not rejected | H0 is false)
21
05/07/19
22
05/07/19
Test statistic
Critical Region
Decision rule Reject H0 if test statistic falls in critical region
x−µ x−µ x−µ
p-value 2P Z >
σ
PZ <
σ
PZ >
σ
n n n
Critical Region
Decision rule Reject H0 if test statistic falls in critical region
x−µ x−µ x−µ
p-value 2P Z >
s
PZ <
s
PZ >
s
n n n
23
05/07/19
Example:
24
05/07/19
Example:
Example:
25
05/07/19
Example:
Test statistic =
̂ =
26
05/07/19
Example:
χ2 < χ2 α
1−
2 or χ 2 < χ 21−α χ 2 > χ 2α
Critical Region
χ 2 > χ 2α
2
27
05/07/19
Example:
28
05/07/19
Example:
Example:
29