Biostatistics (Hfs3283) Inferential Statistics

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 33

BIOSTATISTICS (HFS3283)

INFERENTIAL STATISTICS
Dr. Mohd Razif Shahril
School of Nutrition & Dietetics
Faculty of Health Sciences
Universiti Sultan Zainal Abidin

KNOWLEDGE FOR THE BENEFIT OF HUMANITY

1
Topic Learning Outcomes
At the end of this lecture, students should be able to;
• define inferential statistics.
• explain hypothesis tests, p value and type I and II error
• explain how to interpret confidence interval

2
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
3
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
What is INFERENTIAL STATISTICS?
• It is the Statistical Technique/ method used to
infer the result of the sample (statistic) to the
population (parameter)

Population Sample

4
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
Two types of inferential statistics
1• Hypothesis tests
– e.g.
• Comparing 2 means
• Comparing 2 proportions
• Association between one variable and another variable
2• Estimation (Confidence interval)
– e.g.
• Estimating a mean (numerical)
• Estimating a proportion (categorical)

5
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
Hypothesis
• A statement derived from primary research
question(s)
• There may be more than one hypothesis to be
tested in one study, but the fewer the better.
• It usually comes out of a hunch, an educated
guess based on published results or preliminary
observations
• In writing a hypothesis;
– State hypothesis (hypotheses) clearly and specifically
– Include study and outcome factors

6
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
Research question??
• A statement derived from primary research
question(s)
• Most studies are concerned with answering the
following questions:
– What is the magnitude of a health problem or health
factor?
– What is the causal relation between one factor (or
factors) and the disease or outcome of interest?
– What is the efficacy of an intervention?

7
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
Hypothesis testing
• In Hypothesis testing, we answer to a specific
question related to a population parameter (e.g.
population mean nutrition knowledge score)
using a sample statistic (e.g. sample mean
nutrition knowledge score).

8
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
Hypothesis testing
• In Hypothesis testing, we answer to a specific
question related to a population parameter (e.g.
population mean BMI) using a sample statistic
(e.g. sample mean BMI).
• RQ – Is the BMI of the population different
from 24.5 kg/m2 or not?
• Answer – Yes or No
– Null hypothesis (Ho ; µ = 24.5)
– Alternate hypothesis (Ha ; µ ≠ 24.5)

9
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
Null hypothesis
• Is a mathematical statement of equality stated
before data collection or data analysis
• After statistical analysis, a p value is calculated.
• Based on this p value, decision is made to
either accept or reject the Ho.

10
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
Null hypothesis (cont.)

11
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
Hypothesis testing (cont.)
• RQ - Is the BMI of the population different
from 24.5 kg/m2 or not?
– Ho ; µ = 24.5 mean = 26.1, SD = 4.3
– Ha ; µ ≠ 24.5 n = 130
• This test is called “One sample t test”.
• At the end of the hypothesis testing, we will get a
P value.
– If the P value is < 0.05, we reject the Null Hypothesis
(Ho). And conclude as Ha.
– If the P value is ≥ 0.05, we cannot reject the Null
Hypothesis (Ho). And conclude as Ho.
12
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
Hypothesis testing (cont.)
• RQ - Is the BMI of the population different
from 24.5 kg/m2 or not?
– Ho ; µ = 24.5 mean = 26.1, SD = 4.3
– Ha ; µ ≠ 24.5 n = 130
• In above example, if we get P = 0.01, we reject the
null hypothesis (Ho), then ...
– We conclude as Alternative Hypothesis (Ha) … “the mean
BMI of the population is different from 24.5 kg/m2”.
– Alternatively, we may report as … “the mean BMI is
significantly different from 24.5 kg/m2”.
• Note:
• (1) The second conclusion is more commonly used in the literature.
• (2) These are “statistical conclusion”, not yet “research conclusion”. 13
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
Hypothesis testing (cont.)
• RQ - Is the BMI of the population different
from 24.5 kg/m2 or not?
– Ho ; µ = 24.5 mean = 26.1, SD = 4.3
– Ha ; µ ≠ 24.5 n = 130
• In above example, if we get P = 0.08, we CANNOT
reject the null hypothesis, then …
– We conclude as … “the mean BMI in the population is NOT
different from 24.5 kg/m 2”.
– Alternatively we may report as ... “the mean BMI is NOT
significantly different from 24.5 kg/m 2”.

14
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
Hypothesis testing (cont.)
• RQ - Is the BMI of the population different
from 24.5 kg/m2 or not?
– Ho ; µ = 24.5 mean = 26.1, SD = 4.3
– Ha ; µ ≠ 24.5 n = 130
• In this one sample t test, there are assumptions or
requirements that we need to fulfil/check.
– (1) The sample is selected by using random sampling.
– (2) Observations are independent.
– (3) The data is “normally distributed” (called “Normality
Assumption”).

15
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
Steps in Hypothesis Testing
Step (1): Generate null and alternative hypothesis
Step (2): Set the significance level (α)
Step (3): Decide which statistical test to use and check
the assumptions of the test
Step (4): Perform test statistic and associated p -value
Step (5): Make interpretation (based on p value & CI)
Step (6): Draw conclusion

16
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
P value?
• The p value is the probability (likehood) that the
result or difference was due to chance.
• A p value of 0.05 indicates that a 5% probability
that the difference observed between the groups
was due to chance

17
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
P value? (cont.)
• RQ - Is the BMI of the population different
from 24.5 kg/m2 or not?
– Ho ; µ = 24.5 mean = 26.1, SD = 4.3
– Ha ; µ ≠ 24.5 n = 130
• If the P value < 0.05, we reject the Null Hypothesis.
• P value is the probability of error if you reject the Null
Hypothesis and conclude as the Alternative Hypothesis.
• Example: P value = 0.01. It means that …
– There is 1% probability of error in our conclusion, if we conclude
as Alternative Hypothesis (“significantly different”).
– We normally, allow less than 5% error. That is why the cut-off
point for P value is 0.05.
18
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
P value? (cont.)

• RQ - Is the BMI of the population different


from 24.5 kg/m2 or not?
– Ho ; µ = 24.5 mean = 26.1, SD = 4.3
– Ha ; µ ≠ 24.5 n = 130
• If the P value < 0.05, we reject the Null Hypothesis.
• P value is the probability of error if you reject the Null
Hypothesis and conclude as the Alternative Hypothesis.
• Example: P value = 0.2. It means that …
– There is 20% probability of error in our conclusion, if we
conclude as Alternative Hypothesis (“significantly different”).
– Therefore, we can’t conclude as it is “significantly different”.
We have to conclude as “the difference is not significant”.
19
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
P value? (cont.)
• RQ - Is the BMI of the population different
from 24.5 kg/m2 or not?
– Ho ; µ = 24.5 mean = 26.1, SD = 4.3
– Ha ; µ ≠ 24.5 n = 130
• If the P value < 0.05, we reject the Null Hypothesis.
• It means that we have set the cut-off point at P less than
0.05 to reject the Ho.
• We say this as setting the “Alpha” at 0.05
• Because the type of error that we have been talking
about, is called “Type I error” or “Alpha error”.

20
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
One-sided or Two-sided test?
• RQa - Is the BMI of the population different
from 24.5 kg/m2 or not?
– Ho ; µ = 24.5 Two--sided hypothesis test
Two
– Ha ; µ ≠ 24.5
• RQb - Is the BMI of the population more than
24.5 kgm2 or not?
– Ho ; µ ≤ 24.5
One--sided hypothesis test
One
– Ha ; µ > 24.5
• RQc - Is the BMI of the population less than
24.5 kgm2 or not?
– Ho ; µ ≥ 24.5
One--sided hypothesis test
One
– Ha ; µ < 24.5 21
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
One-sided or Two-sided test? (cont.)

22
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
Type I (α) and Type II (ɞ) Error
Usually we set;
• Type I (α) error
= 5%
• Type II (ɞ) error
= 20%

23
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
Type I (α) and Type II (ɞ) Error (cont.)

Power =1-ɞ
Usually, power = 1 – 0.2
= 0.8 or 80%
24
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
Type I (α) and Type II (ɞ) Error (cont.)

25
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
Estimation (Confidence Interval)
• Used to express degree of confidence in an
estimate
• Denotes the range of possible values the
estimate may assume, with a certain degree of
assurance
• Gives reliability on an estimate.
• E.g.
– If mean systolic BP level is 118 mmHg and 95% CI is
(110, 125); it means that you can be 95% confident
that the true systolic BP level mean lies between
110mmHg and 125mmHg.
26
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
Estimation a Mean
• Formula = mean ± (t α/2 x SE)
• Calculation example;
– The systolic BP of 100 students in a class
Mean = 123.4 mmHg
SD = 14.0 mmHg
– The 95% CI = Mean ± t α/2 x (SD/√n)
= 123.4 ± (1.98 x 14/10)
– The 95% CI ranges from 120.6 mmHg to 126.2 mmHg
– We can be 95% sure that this range includes the true
population mean.

27
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
Assumption or Requirement
Calculation can be made only ...
1) When the sample is selected by using random
sampling
2) When the observations are independent
3) When the data is “normally distributed” (called
“Normality Assumption”)

28
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
Estimation a Proportion
• Formula = p ± (Z α/2 x SE)
• Calculation example;
– The abnormal systolic BP of 100 students in a class
Prevalence = 37%
– The 95% CI = p ± (Z α/2 x SE)
= 0.37 ± (1.96 x √((0.37*0.63)/100)
– The 95% CI ranges from 0.27 to 0.47 (or 27% to
47%)
– We can be 95% sure that this range includes the
true population proportion.

29
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
Assumption or Requirement
Calculation can be made only ...
1) When the sample is selected by using random
sampling
2) When the observations are independent
3) BOTH (n*p) and (n *(1-p)) must be more than 5
count.

Note:
• Recode into 0 and 1;
– 1 should be ‘disease’ or condition of interest.
– 0 should be ‘non-disease’ or the rest. 30
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
P value and Confidence Interval
• When using statistics to compare 2 groups, 2
approaches can be used;
– Calculation of p value
– Calculation of confidence interval
• Both p values and confidence interval are
complimentary and should be used together.

31
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
Limitation of P value
• p values are sensitive to sample size
– Large sample size, smaller p value
• p values are sensitive to the magnitude of
difference between the two group:
– If the difference is small but samples are large, results
can still be statistically significant
– If the difference is large but samples are small, result
would not be statistically significant

32
SCHOOL OF NUTR ITION AND DIETETICS • UNIVER S ITI SULTAN ZAINA L ABIDIN
Thank You

33

You might also like