Inferential statistics takes data from a sample and makes inferences about the larger population from which the sample was drawn.
Make use of the PPT to have a better understanding of Inferential statistics.
1. Dr. Shivakumar B. N.
Assistant Professor
Department of Mathematics
CMR Institute of Technology
Bengaluru
Inferential Statistics
2. β’ Definition of null, Alternate, Simple and composite
hypothesis;
β’ Level of significance;
β’ Type I and type II errors;
β’ Testing equality of single and two means (large
samples), Single and two proportions;
β’ Independence of attributes.
4. Gather data
Statistical Inference
Draw conclusions
Ask a question
Analyse data
Gather data
Gather data
Census
Sample
Sample
Can we reliably use the results from a single
sample to make conclusions about a
population?
5. Population: The totality of units (objects), having some common characteristic
of interest, under consideration for a statistical investigation, is called
population.
It might be finite or infinite. The size of finite sample is denoted by N.
Example: If we are undertaking a statistical investigation about βmonthly
expenditure on foodβ, all the households in a city will constitute the population.
Parameters: The characteristics that describe the population like mean, variance
etc., are called the parameters of the population.
6. Sample: Small portion of the population.
Example: Let us assume that there are 1000 households in the
city and we randomly select only 50 households for the study.
These 50 households form a sample size 50.
Statistic: The characteristics that describe the sample, like the
arithmetic mean, and the sample variance are called statistics.
7. Statistical Hypothesis
A statistical hypothesis is an assertion or conjecture about the distribution of one or more
random variables. If a statistical hypothesis completely specifies the distribution, it is referred
to as a simple hypothesis, if not, it is referred to as a composite hypothesis.
A statistical hypothesis is denoted by H.
Example:
1. H: The population is normall distributed with parameter π = 50 and π2 = 9
This a simple hypothesis since, not only is the functional form of the distribution specified, but
also the values of all parameters.
2. π»: π β₯ 10,000
This a composite hypothesis since, π > 10,000 does not assign a specific value to parameter π,
nor does it specify the functional form of the distribution.
8. Null and alternate hypothesis
The hypothesis which is being tested statistically for possible rejection
is called the null hypothesis and is usually denoted by π»0.
The rejection of the null hypothesis, π»0, leads to the acceptance of an
alternative hypothesis, denoted by π»1.
9. Type I error: Taking a wrong decision to reject the null hypothesis when it is
actually true is called the error of the first kind or type I error.
Type II error: Taking a wrong decision to accept the null hypothesis when it is
actually not true is called the error of the second kind or type II error.
Level of significance:
The probability of occurrence of the first kind of error is called the level of
significance and is denoted by πΌ
Note:
β’ If πΌ = 0.05, the critical value π = 1.96 and
β’ If πΌ = 0.01, the critical value π = 2.58
10. One-Tailed Test
A one-tailed test is a statistical test in which the critical area of a distribution is one-sided so
that it is either greater than or less than a certain value, but not both.
The Basics of a One-Tailed Test
β’ A basic concept in inferential statistics is hypothesis testing.
β’ Hypothesis testing is run to determine whether a claim is true or not, given a population
parameter.
β’ When the testing is set up to show that the sample mean would be higher or lower than the
population mean, it is referred to as a one-tailed test.
11. KEY TAKEAWAYS
β’A one-tailed test is a statistical hypothesis test set up to show that
the sample mean would be higher or lower than the population mean,
but not both.
β’When using a one-tailed test, the analyst is testing for the possibility
of the relationship in one direction of interest, and completely
disregarding the possibility of a relationship in another direction.
β’Before running a one-tailed test, the analyst must set up a null
hypothesis and an alternative hypothesis and establish a probability
value (p-value).
12.
13.
14.
15.
16.
17.
18. Test on two means (Tests for equality of means)
π =
π₯1 β π₯2
π1
2
π1
+
π2
2
π2
If, for the samples, π πππ > π, π»0 is rejected and if, on the other hand, π πππ β€ π, π»0 is accepted.
Level of significance:
β’ If πΌ = 0.05, the critical value π = 1.96 and
β’ If πΌ = 0.01, the critical value π = 2.58
19. Example: It is known that IQ of boys has standard deviation 10 and that IQ of girls has standard deviation 11. Mean IQ of 100
randomly selected boys is 95 and Mean IF of 80 randomly selected girls is 97. Can it be concluded that on an average, boys and
girls have the same IQ? (use 1% level of significance)
π =
π₯1 β π₯2
π1
2
π1
+
π2
2
π2
20. Test for proportion
Suppose the proportion of an attribute in a population is not known
and we want to test weather the proportion is given value π0.
π =
π β π0
π0π0
π
Where
π =
π₯
π
21. Example: The manufacturers of a certain brand of pens opined that 35% of the pens users in Bengaluru used their brand of pens.
To verify this claim, a survey of pen users was conducted. Among 347 of them 107 people said they used particular brand. Does
this figure support the manufacturers claim.
π =
π β π0
π0π0
π
π =
π₯
π
22. Test for equality of proportion
Suppose there are two population with unknown proportions and we
wish to test weather the proportions in the two populations are
equal.
The null hypothesis is π»0: π1 = π2 (the proportions are equal)
The alternative hypothesis is π»1 = π1 β π2
π =
π1 β π2
ππ
1
π1
+
1
π2
Where
π =
π₯1 + π₯2
π1 + π2
23. Example: In a random sample consisting 326 teenagers, 143 claimed to watch National Geographic channel regularly.
Among a random sample of 213 adults 137 watch it regularly. Test weather the proportion teenage viewers differs from
the adult viewers. (Use 5% level of significance)
π1 =
π₯1
π1
and π2 =
π₯2
π2
π =
π₯1 + π₯2
π1 + π2
π = 1 β π
π»0: π1 = π2 = π
π»1: π1 β π2
24. TESTS BASED ON t-DISTRIBUTION FOR SMALL SAMPLES
1. Test for single mean
π =
π = π
π/ π
Where π =
Ο ππβπ π
πβπ
For the sample if π πππ > π, π―π is rejected
If π πππ β€ π, π―π is accepted
The critical value k for level of significance πΆ is
π = ππΆ/π, π β π
25.
26. Example 1: A manufacturer manufactures a kind of an axle with a specified diameter 0.700 inch. A random sample of 10
parts shows a mean diameter 0.742 inches with a standard deviation of 0.040 inches. Is the manufacture producing goods
that meet specification? (Test at 5% level of significance).
π = 0.700 πππβππ , π = 0.040, π₯ = 0.742 πππβππ
π = 10 π. π. , π. π = π β 1 = 9
1. π»0: π = 0.700 πππβππ
π»1: π β 0.700 inches and
πΌ = 0.05
2. The test statistic is
π =
π β π
π/ π
The critical value π = ππΆ/π, π β π = ππ.πππ,π
= π. πππ
3. The value of the test statistic using the sample is
π‘ πππ = 3.32
27. Example 2: A sample of 26 bulbs gives a mean life of 990 hours with a standard deviation of 20 hours. The manufacturer
claims that the mean life of bukbs is 1000 hours. Is the sample not upto the standard?
π = 1000, π = 20, π₯ = 990
π = 26 π. π. , π. π = π β 1 = 25
1. π»0: π = 1000
π»1: π β 10000 and
πΌ = 0.05
2. The test statistic is
π =
π β π
π/ π
The critical value π = ππΆ/π, π β π
3. The value of the test statistic using the sample is
π‘ πππ = 2.5
29. INTRODUCTION
β The chi-square test is an important test amongst the several tests of significance
developed by statisticians.
β It was developed by Karl Pearson in1900.
β CHI SQUARE TEST is a non parametric test not based on any assumption or
distribution of any variable.
β This statistical test follows a specific distribution known as chi square distribution.
β In general the test we use to measure the differences between what is observed
and what is expected according to an assumed hypothesis is called the chi-square
test.
In particular, for πΆ = π. ππ, π = π. ππ and for πΆ = π. ππ, π = π. ππ
30.
31. Example 1: Suppose out of 100 participants participating in an awareness program camp, there were 60 girls and
40 boys. These results refer to observed frequencies and are denoted by O.
Observed Expected πΆ β π¬ πΆ β π¬ π
Boys 40 50 -10 100
Girls 60 50 10 100
π2
value for girls and boys will be:
=
100
50
+
100
50
= 2 + 2 = π > π. πππ
Therefore the hypothesis that there is no difference between expected and observed
values, is rejected.
32. Example 1:
Leaf Cutter
Ants
Carpenter
Ants
Black Ants Total
Observed 25 18 17 60
Expected 20 20 20 60
O-E 5 -2 -3 0
(O-E)2
E
1.25 0.2 0.45 Ο2 = 1.90
HO: Lizards eat equal amounts of leaf cutter, carpenter and black ants.
HA: Lizards eat more amounts of one species of ants than the others.
Calculate degrees of freedom: (c-1)(r-1) = 3-1 = 2
Under a critical value of your choice (e.g. Ξ± = 0.05 or 95% confidence),
look up Chi-square statistic on a Chi-square distribution table.
34. Example 1:
Chi-square statistic: Ο2 = 5.991 Our calculated value: Ο2 = 1.90
*If chi-square statistic > your calculated value, then you do not reject your
null hypothesis. There is a significant difference that is not due to chance.
5.991 > 1.90 β΄ We do not reject our null hypothesis.
Leaf Cutter
Ants
Carpenter
Ants
Black Ants Total
Observed 25 18 17 60
Expected 20 20 20 60
O-E 5 -2 -3 0
(O-E)2
E
1.25 0.2 0.45 Ο2 = 1.90