Basic Inferential Statistics Nov. 5
Basic Inferential Statistics Nov. 5
October 7, 2023
Inferential Statistics
• It is about testing hypothesis.
• Establishing null and alternative hypotheses
can be a frustrating and confusing process.
• H0 = initially is assumed to be true.
– Null means that nothing is new.
– Analogous to the courtroom ideal of innocent
until proven guilty.
Approaches to
Hypothesis Testing
• Classical/tabular
approach
• p-value approach
p-value approach
Test of Difference
Findings for central Parametric Non-parametric Poisson
location: Regression (rare
Z- test Chi-square
• Mean occurrence)
• Median T-test
• Mode ANOVA
Test of Relationship
Parametric Non-parametric
Measures for variability
• Range Linear-Correlation Spearman Rank
Correlation
• Mean Absolute
Deviation
• Standard Deviation Test of Association
• Variance
Parametric
Linear Regression
What is data analysis?
Before After
3 8
2 7
4 9
2 8
3 5
6 7
9 8
8 8
Testing of Hypothesis
1. Problem Statemen
2. What is the hypothesis?
3. Statistical tool to be used
4. Level of significance
5. Computation
6. Decision
7. Conclusion
Example of T-Test (dependent)
• Problem: Is there are significant increase of participants’ rating of how jittery they
feel before and after drinking Red Bull?
• Hypotheses:
– Null: There is no significant increase in participants’ rating before and after…
– Alternative: There is a significant increase of participants’ rating before and after…
D 2.875
t = ------------------------------------- t = ---------------------------
√[(117 – (529 /8)] / 8(8-1)
√[(𝞢D² - (𝞢D)² /n] / n(n-1)
Answer: 3.06
n-1 = 8
Alpha = .05
Example of T-Test (dependent)
• Decision
– Since the computed value (3.01) is greater than the tabular
value (2.306), REJECT Null hypothesis.
• Conclusion
– There is a significant increase of feeling of “jittery” for
participants before and after drinking Red Bull.
Example of T-Test (independent)
• The following are the scores of 10 males and females training attendees. Test the null
hypothesis that there is no significant difference between the performance of male and
female attendees in the said test. Use the T-Test at .05 level of significance.
• Problem: Is there are significant difference between the performance of male and
female attendees in the said test?
• Hypotheses:
– Null: There is no significant difference between the performance of male and female attendees in the
said test.
– Alternative: There is a significant difference between the performance of male and female attendees
in the said test.
x1 – x2
t = -------------------------------------------------------
√(SS1 +SS2 / n1 + n2 – 2) (1/n1 + 1/n2)
Example of T-Test (independent)
Male (x1) Female (x2) Male (x1)2 Female (x2)2
14 12 196 144
18 9 324 81
17 11 289 121
16 5 256 25
4 10 16 100
14 3 196 9
12 7 144 49
10 7 100 49
9 6 81 36
17 13 289 169
Σx1 = 131 Σx2 = 78 Σx 21 = 1891 Σx 22 = 738
n1 = 10 n2 = 10
Mean x1 = 13.1 Mean x2 = 7.8
x1 – x2
t = -------------------------------------------------------
√(SS1 +SS2 / n1 + n2 – 2) (1/n1 + 1/n2)
Answer: 2.88
n-1 = 9
Alpha = .05
Example of T-Test (independent)
• Decision
– Since the computed value (2.88) is greater than the tabular
value (2.262), REJECT Null hypothesis.
• Conclusion
– There is a significant difference between the performance
of male and female attendees in the said test.
Application of Linear Regression
Linear Trend Projection
• Used for forecasting linear trend line
• Assumes relationship between response
variable Y & time X is a linear function
Correlation
Range (+ or -) Description
.81 – 1.0 Very High
.61 - .80 High
.41 - .60 Moderate
.21 - .40 Low
.0 - .20 Very low
Simple Linear Regression
Formulas for Calculating “a”
and “b”
a = y - bx
n xy - x y
b=
n x 2 - ( x ) 2
𝑛 σ 𝑥𝑦 − σ 𝑥 σ 𝑦
𝑏=
𝑛 σ 𝑥 2 − (σ 𝑥)2
Simple Linear Regression Model:
y = b0 + b1 x
Where:
• y = the predicted value
• b0 = sample intercept (y-intercept)
• b1 = sample slope (estimator of the slope of
the population regression)
• x = the predictor value
Exercise (1)
Exercise (2)
Next Topic: Analysis of Variance
(ANOVA)
F-Test and ANOVA (Analysis of Variance)
• Problem: Is there are significant difference among the performance of the 3 groups
who took the entrance examination?
• Hypotheses:
– Null: There is no significant difference among the performance of the 3 groups who took the entrance
examination
– Alternative: There is a significant difference among the performance of the 3 groups who took the
entrance examination
Answer: 13
Numerator degrees of freedom: 2
Denominator: 13
Table: 3.81
Answer: 11.37
Numerator degrees of freedom: 2
Denominator: 13
Table: 3.81
Example of One Way ANOVA
• Decision
– Since the computed value is greater (11.31) than the
tabular value (3.81), REJECT Null hypothesis.
• Conclusion
– There is a significant difference among the performance of
job applicants in terms of examination scores.
• Thank You.