Professional Documents
Culture Documents
Statistical Inference 1 and 2 1
Statistical Inference 1 and 2 1
Testing of hypothsis
Inferential statistics
inferential statistics help you make predictions from the data.
In inferential statistics, the data are taken from the sample
and allows you to generalize the population. In general,
inference means “guess”, which means making inference
about something. So, statistical inference means, making
inference about the population. To take a conclusion about
the population, it uses various statistical analysis techniques.
In this article, one of the types of statistics called inferential
statistics is explained in detail.
Population
It includes all the elements from the data set and measurable
characteristics of the population such as mean and standard
deviation are known as a parameter. For example, All people
living in Pakistan indicates the population of Pakistan.
There are different types of population. They are:
Finite Population
Infinite Population
Existent Population
Hypothetical Population
Finite Population
The finite population is also known as a countable population
Sample
It includes one or more observations that are drawn from the
life
A teacher assumes that 60% of his college's students come
To put this company's claim to the test, create a null and alternate
hypothesis.
There are a variety of statistical tests available, but they are all
based on the comparison of within-group variance (how
spread out the data is within a category) versus between-
group variance (how different the categories are from one
another).
Step 4: Decide whether to reject or fail to reject your null hypothesis
variable
One Sample T Hypotheis test formula
Where
x̅ is observed sample mean
μ0 is population mean
s is sample standard
deviation
n is the number of the
claim.
One Sample T Test Hypothesis
Null hypothesis (H0): The difference between population
mean and the hypothesized value is equal to zero
Alternative hypothesis (H1):
The population mean is not equal to hypothesized value
(two-tailed)
The population mean is greater than hypothesized value
Degrees of freedom:15-1= 14
Calculate the critical value
If the calculated t value is less than -2.145 or greater than
2.145, then reject the null hypothesis.
Test statistics
x̅ = 123
μ0 = 120
Interpret the results
: Compare t calc to t critical . In hypothesis testing, a critical
value is a point on the test distribution compares to the test
statistic to determine whether to reject the null hypothesis.
The calculated t statistic value less than the critical value,
hence we failed to reject null hypothesis.
Right-tailed test
than or lower than the national average, the problem calls for a
two‐tailed test. First, state the null and alternative hypotheses:
null hypothesis: H 0: μ = 5.7
alternative hypothesis: H a : μ ≠ 5.7
Testing Of Hypothesis
Two Sample tests
What is a Two Sample T Hypothesis Test
distributed
When Would You Use a Two Sample T Hypothesis
Tests
The two sample t test most likely used to compare two
process means, when the data is having one nominal variable
and one measurement variable. It is a hypothesis test of
means. Use two sample Z test if the sample size is more than
30.
Two sample T hypotheis tests are performed when the two
claim.
Two-tailed (Equal variance)
Example: Apple orchard farm owner wants to compare the two
farms to see if there are any weight difference in the apples.
From farm A, randomly collected 15 apples with an average
weight of 86 gms, and the standard deviation is 7. From farm
B, collected 10 apples with an average weight of 80 gms and
standard deviation of 8. With a 95% confidence level, is there
any difference in the farms?
Null Hypothesis (H0) : Mean apple weight of farm A is equal
to farm B
Alternative Hypothesis (H1) : Mean apple weight of farm A is
0.05 α column
For 2 tailed test the t-critical is based on the given α divided
by 2
The commonly used T-critical value for a 2 tailed test is in the
0.025 α column
INTERPRETATION
Finally, interpret the decision in the context of the original
claim.
Example
Example: Dogs are fed with two different diets. Test if the two
diets differ significantly as regards their effect on their
weight. Assuming the population variance is unequal, at 95%
confidence level, is there enough evidence to support the
claim?
Null Hypothesis (H0) : The mean dog weights are the same
with Diet 1 and Diet 2
Alternative Hypothesis (H1) : The mean dog weights are not
t = xdiff / (sdiff/√n)
where:
xdiff: sample mean of the differences
s: sample standard deviation of the differences
n: sample size (i.e. number of pairs)
If the p-value that corresponds to the test statistic t with (n-
1) degrees of freedom is less than your chosen significance
level (common choices are 0.10, 0.05, and 0.01) then you can
reject the null hypothesis.
Paired Samples t-test: Assumptions
For the results of a paired samples t-test to be valid, the
following assumptions should be met:
normally distributed.
There should be no extreme outliers in the differences.
Paired Samples t-test: Example
seconds, n1 = 20
Call Center B: Sample mean, X̄2 = 135 seconds, SD, S2 = 20
seconds, n2 = 20
use a two-sample t-test to determine if the difference between
HINT: null
hypothesis: H 0: μ 1
=μ2
or H 0: μ 1 – μ 2 = 0
alternative
hypothesis: H a : μ 1
>μ2
or: H a : μ 1 – μ 2 >
0