CGRP MSC Stat 3 PDF
CGRP MSC Stat 3 PDF
Engineering.
University of Port Harcourt.
M. Sc. Programme
2. Null hypothesis, Ho
It provides a statement which is contrary to the hypothesis.
It’s a negative statement: there is no relationship between
independent and dependent variables. This hypothesis states
that there is no difference between groups or no
relationship between variables.
3. Alternate hypothesis, H1
This hypothesis should state what you expect the data to
show, based on your research on the topic.
Example:
HO :Conc. of reactants does not have effect on reaction rate
H1: Conc. of reactants does have effect on reaction rate.
4. Significance level
This is the percentage risks of making a wrong decision. A
significance level of 0.05 is often used in hypothesis testing.
Generally, the level of significance is taken as 1%, 5% and 10%.
If the results of the study indicates a probability lower than
the significance level, the researcher can reject the null higher
and vice versa.
Parametric and non-parametric tests
t - test
The t - test is a statistical test used to determine if there is a
significant difference between the means of two groups or
samples. It is commonly employed when dealing with small
sample sizes (<30) and unknown population standard
deviations. By calculating the t-statistic and comparing it to
the critical value, the t-test helps assess the probability that
the observed difference between the means is due to chance
or a genuine effect.
Criteria
tcritical ≤ tstatistic - reject null hypothesis
tcritical > tstatistic - fail to reject or accept null hypothesis
Example
Is there a significant difference in test scores between 25
students who received in-person instruction and 25 students
who received online instruction? The mean test score for the
in-person group is 80 (SD = 5) and for the online group is 75
(SD = 7).
Solution
This is a two samples t-test problem as the two groups being
compared are independent of each other. To perform the t-
test, we first calculate the t-stat value using the t test formula:
F = s2 1 / s2 2
F = Larger sample variance/Smaller sample variance
Note
• The larger variance should always go in the numerator
• For two-tailed tests, divide alpha by 2 before finding the
right critical value.
• If you are given standard deviations they must be
squared to get the variances.
Example
Use an appropriate statistical test to determine the variability
of salt content in two different populations in the given data
below:
Salt content mg/125ml
Brand A Brand B
860 540
850 640
750 600
870 640
940 300
410 610
410 430
820 280
890 300
890 610
Solution
H0: There is no relationship between gender and preferred courses
H1: There is a relationship between gender and preferred courses.
2. Use the formula for expected values and calculate for each value
Observed Expected values O - E (
values (O) (E)
100 114.29 -14.29 204.20 1.79
70 61.90 8.10 65.61 1.06
30 23.81 6.19 38.32 1.61
140 125.71 14.29 204.20 1.62
60 68.10 -8.10 65.61 0.96
20 26.19 -6.19 38.32 1.46
= 8.50
Types
A one-way ANOVA uses one independent variable or factor. It compares
three or more levels of one factor.
Two-way ANOVA uses two independent variables or factors. It compares
the effect of multiple levels of two factors.
The test statistic is F – test
Assumptions
• Population is assumed to be normally distributed
• Samples are selected randomly
• Data is independent
The null hypothesis (H0) of ANOVA is that there is no difference among
group means. The alternative hypothesis (H1) is that at least one group
differs significantly from the overall mean of the dependent variable.
ANOVA =
If:
> 1 reject Ho
= 1 fail to reject Ho
Mathematically,
Variance between group:
Where
Xi is the ith observation in gp I
Xj is the mean of gp j
For method A
(10 – 8.7)^2 + (9 - 8.7)^2 + (8 – 8.7)^2 + (7.5 – 8.7)^2 + (8.5 –
8.7)^2 + (9 - 8.7)^2 + (10 – 8.7)^2 + (8 – 8.7)^2 + (8 – 8.7)^2 +
(9 - 8.7)^2 = 6.6
Method B = 10.9
Method C = 10.5
where
X = individual observation,
Xj = sample mean of the jth treatment (or group),
X bar = overall sample mean,
k = the number of treatments or independent comparison
groups, and
N = total number of observations or total sample size.
Source of Sum of Degree of Mean squares F
variation squares, SS freedom (MS)
B/w 0.2 2 0.10 0.096
treatments,
SSB
Error 28.0 27 1.04 -
(within), SSE
Total, SST 28.2 29 - -
Kruskal Wallis H test
The Kruskal Wallis H test is the non parametric alternative to
the One Way ANOVA. The H test is used when the
assumptions for ANOVA aren’t met (like the assumption of
normality). The test determines whether the medians of two
or more groups are different. The test statistic used in this test
is called the H statistic.
Where:
N = sum of sample sizes for all samples,
k = number of samples,
Rj = sum of ranks in the jth sample,
nj = size of the jth sample.
Example
The following data set is selected from a non normal distribution.
With the application of an appropriate statistical test determine if
the null hypothesis will be rejected or accepted at a significance level
of 0.05.
Hstat = 5.924
Using Degree of Freedom = 3 – 1 = 2, find the value of
Hcritical using Chi square table
Chi square tables = 5.991
Hstat < X^2
Since the Hstat value is less than critical chi square value, we
fail to reject the null hypothesis.
Assignment 1
1. In the synthesis of a locally formulated retarder in the
Chemical Engineering lab of Uniport, the thickening times
from analysis are presented in the table below. Use a relevant
statistical test to determine if there a relationship between the
two variables and draw a conclusion.
Conc 1 Conc 2 Conc 3 Total
Commercial retarder 180 120 80 380
Local retarder 130 70 45 245
Total 310 190 125 625