Module-V : Sampling Theory and Joint Probability Distribution
Sampling Theory
Sampling Sampling distribution
Standard error Test of Hypothesis for means and proportions
Confidence limits for means Student’s t – distribution
Chi - square distribution as a test of goodness of fit
Sampling Theory
Sampling theory is the field of statistics that is involved with the collection,
analysis and interpretation of data gathered from random samples of a population
under study. The application of sampling theory is concerned not only with the
proper selection of observations from the population that will constitute the
random sample
Sampling aims at gathering maximum information about the population with
the minimum effort, cost and time. Sampling determines the reliability of these
estimates. The logic of the sampling theory is the logic of induction in which we
pass from a particular(sample) to general (population). Such a generalization
from sample to population is called Statistical Inference.
It also involves the use of probability theory, along with prior knowledge about
the population
parameters, to analyse the data from the random sample and develop conclusions from the
analysis. The normal distribution, along with related probability distributions, is most heavily
utilized in developing the theoretical background for sampling theory.
Meaning and objectives of Sampling
Sampling
Sampling denotes the selection of part of the aggregate statistical material with a view to obtaining
information about the whole
population or Universe
The aggregate or totality of statistical information on a particular character of all the members
covered by an investigation is called population or Universe.
sample
The selected part which is used to ascertain the characteristics of population is called sample
Population Size( N )
It is the total number of members of the population denoted by „N‟
Sample Size( n )
It is the number included in the sample denoted by „n‟
Main objectives of sampling
To obtain the maximum information about the population with the minimum effort
To state the limits of accuracy of estimates based on samples
Some important types of Sampling
Random Sampling
Here sampling must be random, It is the method of selection of a group of units in such a manner
that every unit comprising the population has an equal chance of being included in the sample
Purposive Sampling
When the sample is selected based on individual judgement of the sampler, it is called purposive
sampling
Stratified Sampling
The population is subdivided into several parts called strata and then subsample is chosen from
each of them, then all the sub samples combined together give the stratified sample
Systematic Sampling
It involves the selection of sample units at equal intervals after all the units in the population have
been arranged in some order
Multistage Sampling
It refers to a sampling procedure which is carried out in several stages
The sampling distribution of a statistic is the distribution of that statistic, considered as a
random variable, when derived from a random sample of size n. It may be considered as the
distribution of the statistic for all possible samples from the same population of a given size. The
sampling distribution depends on the underlying distribution of the population, the statistic being
considered, the sampling procedure employed, and the sample size used.
There is often considerable interest in whether the sampling distribution can be approximated
by an asymptotic distribution, which corresponds to the limiting case either as the number of
random samples of finite size, taken from an infinite population and used to produce the
distribution, tends to infinity, or when just one equally-infinite-size "sample" is taken of that same
population.
Sampling Distribution
It is the probability law which the statistic follows if repeated random samples of a fixed size
are drawn from a specified population
The probability distribution of the statistic of the mean of x values will be called as sampling
distribution of sample mean
Two important sampling distributions(Large samples)
Sampling distribution of sample mean( mean of x )
If x denotes the mean of a random sample of size n drawn from a population with mean µ and
standard deviation σ, then the sampling distribution of x is approximately a normal distribution
with
Mean = µ and standard deviation standard error of x
Consider all possible samples of size „n‟ which can be drawn from a given population at
random. For example, we can compute the mean. The means of the samples will not be identical. If we
group these different means according to their frequencies, the frequency distribution so formed is known
as sampling distribution of the mean. Similarly we have sampling distribution of the standard
deviation etc.
STANDARD ERROR
The standard deviation of the sampling distribution is called standard error. Thus the standard
error of the sampling distribution of means is called standard error opf means. The reciprocal of the
standard error is called precision.
If , a sample is called large otherwise small. The sampling distribution of large
samples is assumed to be normal. Where n is the sample size(number of items)
TESTING HYPOTHESIS
To reach decisions about populations on the basis of sample information, we make certain
assumptions about the populations involved. Such assumptions, which may or may not be true, are
called Statistical hypothesis. By testing a hypotheis is meant a process for deciding whether to
accept or reject the hypothesis.
The method consists in assuming the hypothesis as correct and then computing the probability of
getting the observed sample. If this probability is less than a certain pre- assigned value the
hypothesis is rejected.
The American statistician J. Neyman(1894-1981) and the English statistician [Link](1895-
1980) - son of Kari Pearson developed a systematic theory of tests around 1930.
ERRORS
If a hypothesis is rejected while it should have been accepted, we say that a Type I error has been
estimated. On the other hand, if a hypothesis is accepted while it should have been rejected , we
say that a Type II error has been made. To reduce the both types of errors is to increase the
sample size, if possible.
NULL HYPOTHESIS
The hypothesis formulated for the sake of rejecting it, under the assumption that it is true, is called
the null hypothesis and is denoted by . To test whether procedures is better than another, we
assume that there is no difference between the procedures. Similarly to test whether there is a
relationship between two variates, we take that there is no relationship.
By accepting a null hypothesis, we mean that on the basis of the statistic calculated from the
sample, we do not reject the hypothesis. It however, does not imply that the hypothesis is proved
to be true. Nor its rejection implies that it is disproved.
LEVEL OF SIGNIFICANCE
The probability level below which we reject the hypothesis is known as the level of significance.
The region in which a sample value falling is rejected, is known as critical region. We generally
take two critical regions which cover 5% and 1% areas of the normal curve.
The shaded portion in the figure corresponds to 5% level of significance. Thus the probability of
the value of the variate falling in the critical region is the level of significance
TEST OF SIGNIFICANCE
The procedure which enables us to decide whether to accept or reject the hypothesis is called the
test of significance. Test is carried out by whether the differences between the sample values and
the population values are so large that they signify evidence against the hypothesis or these
differences are so small as to account for fluctuations of sampling.
CONFIDENCE LIMITS
SIMPLE SAMPLING OF ATTRIBUTES
The sampling of attributes may be regarded as the selection of samples from a population whose
members posses the attribute „K‟ or „not K‟. The presence of „K‟ may be called a success and its
absence a failure.
Suppose we draw a simple sample of n items. Clearly it is same as series of n independent trials
with the same probability „p‟ of success.
Example
A die was thrown 9000 times and a throw of 5 or 6 was obtained 3240 times. On the assumption
of random throwing do the data indicate an unbiased die?
Solution:
Here n = 9000, x = 3240(observed value of successes)
P(throwing 5 or 6 ) = 1/6+1/6 = 2/6 =1/3,
we get q = 2/3, therefore
Expected number of successes = (1/3) *9000 = 3000
The standard normal variate(SNV) is,
Z = (x – mean)/S.D = (x – np)/S.D = (x – np)/√npq
= (3240 - 3000)/√9000* 1/3*2/3 = 5.4
Z = 5.4 > 2.58
This shows that the hypothesis is to be rejected at 1% level of significance
Conclusion : The die is biased
Example:
A sample of 900 items has mean 3.4 and S.D 2.61. Can it be regarded as drawn from a population
with mean 3.25 at 5% level of significance?
Solution:
Given n = 900, Sample Mean = 3.4,Population Mean( µ) = 3.25, S.D = 2.61 = √npq, Then the
Standard normal variate(SNV) is,
SNV (Z) = (Sample mean – Population mean)( √ (n) / √npq
= (3.4 – 3.25)(√900)/2.61 =1.73
I Z I = 1.73 < 1.96
Conclusion: The given sample can be regarded as one from the population with mean 3.25
Example:
A sugar factory is expected to sell sugar in 100 kg bags, A sample of 144 bags gives mean as 99
kg and S.D as 4. Can we conclude that the factory is working as per standards?
Solution:
Given n = 144, Sample Mean = 99,
Population Mean(µ) = 100, S.D = 4, Then the Standard normal variate(SNV) is ,
SNV (Z) = (Sample mean – Population mean)( √ (n) / S.D
= (99 – 100)(√144)/4 = - 3
I Z I = 3 > 1.96
Conclusion: Factory is not working as per standards
EXAMPLE
PROBLEMS
A coin is tossed 400 times and it turns up head 216 times. Discuss whether the coin may be an
unbiased one.
A die is tossed 960 times and it falls with 5 upwards 184 times. Is the die biased.
Balls are drawn from a bag containing equal number of black and white balls, each ball being
replaced before drawing another. In 2250 drawings 1018 balck and 1232 while balls have been
drawn. Do you suspect some bias on the part of the drawer
A machine produces 16 imperfect articles in a sample of 500. After machine is overhauled, it
produces 3 imperfect articles in a batch of 100. Has the machine been improved.
One type of aircraft is found to develop engine trouble in 5 flights out of total 100and another type
in 7 flights out of a total of 200 flights. Is there a significant difference tin the two types of
aircrafts so far as engine defects are concerned.
SAMPLING VARIABLES
Let us consider sampling of a variable such as weight, height etc. Each member of the population
gives a value of the variable and the population is a frequency distribution of the variable. Thus a
random sample of size „n‟ from the population is same as selecting „n‟ values of the variable from
those of the distribution.
SAMPLING DISTRIBUTION OF THE MEAN
CONFIDENCE LIMITS FOR UNKNOWN
MEAN
PROBLEMS
NUMBER OF DEGREES OF FREEDOM
Number of degrees of freedom is the number of values in a set which may be assigned arbitrarily.
If n is the given sample size then,
degrees of freedom( df ) = n-1.
STUDENT’S t – DISTRIBUTION
Properties of t - Distribution
This curve is symmetrical about the line t = 0, like the normal curve, since only even powers of t
appear in equation. But it is more peaked than the normal curve with same S.D. The t-curve
approaches the horizontal axis less rapidly than the normal curve. Also t –curve attains its
maximum value at t = 0 so that its mode coincides with the mean.
Fig - 2
SIGNIFICANE TEST OF A SAMPLE MEAN
Then find the value of p for the given df (degrees of freedom) from the table.
If the calculated value of t > t at 0.05, then the difference between mean and µ is said to be
significant at 5% level of significance.
If calculated value of t > t at 0.01, then the difference is said to be significant at 1% level of
significance.
If calculated value of t < t at 0.05, then the difference is said to be consistent with the hypothesis
that µ is the mean of the population.
Example
x d = x – 48 d2
45 -3 9
47 -1 1
50 2 4
52 2 4
48 0 0
47 -1 1
49 1 1
53 5 25
51 3 9
Total 10 66
Taking A = 48, n = 9, We find the mean and S.D as
Mean of the sample = A + (∑d)/9
= 48 + 10/9 = 49.1
Variance = (∑d *d)/9 – ((∑d)/9)((∑d)/9)
= 498/81 = 6.15
Then S.D (σ ) = 2.48
For the df = 9-1 = 8, the table value = 2.31
Therefore
t = (Sample mean – Population mean)( √ n) / S.D
= (49.1 – 47.5)(√900)/2.48 =1.83
I t I = 1.83
t(calculated value) = 1.83 < t(table value) = 2.31
Conclusion:
This implies that, the value of t is significant at 5% level of significance
The test provides evidence against the population mean being 47.5
Example:
A certain stimulus is administered to each of the 12 patients give the increase in blood pressure as
x: 5,2,8,-1,3,0,-2,1,5,0,4,6. Can it be concluded that the stimulus Will in general be accompanied
by an increase in blood pressure?
Solution:
Given n = 12, Population Mean( µ) = 0,
Sample Mean = (5+2+8-1+3+0-2+1+5+0+4+6)/12
= 2.583,
S.D = √∑((x – mean)**2)/n-1 = 2.9571
Then by Student t - test,
t = (Sample mean – Population mean)( √ (n) / S.D
= (2.583 – 0)(√12)/2.9571 = 2.897
I t I = 2.897 > 2.201 at t - 0.05(Table value at df=11)
Conclusion:
The stimulus does not increase the blood pressure
Example:
Eleven students were given a test in one subject, they were given a month‟s further tuition and a
second test of equal difficulty was held at the end of it. Do the marks give evidence that the
students have benefitted by extra coaching? Given that,
Students : 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
Marks of I test : 23, 20, 19, 21, 18, 20,18, 17, 23, 16, 19
Marks of II test : 24, 19, 22, 18, 20, 22,20, 20, 23, 20, 17
Solution: We compute the mean and the standard deviation of the difference between the marks of
the two tests as under:
Let d = marks of test I – marks of test-2, then
Mean of d = 11/11 = 1
Then the variance =((∑(d-mean of d)**2))/n-1)
= 50/10 = 5,
then the S.D = 2.24
Assuming that students have not been benefitted by extra coaching, it implies that the mean of the
difference between the marks of the two tests is zero ( µ = 0 )
Then by student t-test
t = ((mean of d - µ)/S.D) √n
= (1-0) (√11)/ 2.24
= 1.48 < t = 2.228 at t-0,05
Conclusion:
Here t = 1.48 < t = 2.228 at t-0,05, then the value of t is not significant at 5% level of significance
The test provides no evidence that the students have benefitted by extra coaching.
Example:
A machinist is making engine parts with axel diameter of 0.7 inches. A random sample of 10 parts
shows mean diameter as 0.742 and S.D as 0.04 inches. On the basis of this sample, would you say
that the work is inferior?
Solution:
Given n = 10,
Population Mean( µ) = 0.7,
Sample Mean = 0.742,
S.D = 0.04
Then by student t - test
t = ((mean of d - µ)/S.D) √n
= (0.742-0.7) (√10)/ 0.04
= 3.16
Conclusion:
Here t = 3.16 > 2.262 at t→0.05(table value), then the hypothesises rejected
Hence the work is inferior
Goodness of Fit
The value of chi-square is used to test whether the deviations of the observed frequencies from the
expected frequencies are significant or not. It is also used to test how will a set of observations fit
a given distribution.
Chi-square therefore provides a test of goodness of fit and may be used to examine the validity of
some hypothesis about an observed frequency distribution
From the Chi-square table , we can also find the probability p corresponding to the calculated
values of Chi-square for the given df.
If p < 0.05, The observed value of Chi-square is significant at 5% level of significance
If p < 0.01, The value of significance is at 1% level.
If p > 0.05, It is a good fit and the value is not significant.
Example: In experiments on pea breeding, the following frequencies of seeds were obtained.
Round Wrinkled Round Wrinkled total
and yellow and yellow and green and green
315 101 108 32 556
Theory predicts that the frequencies should be in proportions 9:3:3:1. Examine the correspondence
between theory and experiment.
Problem:
A die is thrown 264 times and the number appearing on the face( ) the following frequency distribution
x 1 2 3 4 5 6
f 40 32 28 58 54 60
Calculate .
Solution : Frequency in the given table are observed frequency.
Assuming that the die is unbiased
The expected number of frequencies for the numbers 1,2,3,4,5,6 to appear on the face is 44 each
Then the data is as fallows
x 1 2 3 4 5 6
Observed 40 32 28 58 54 60
frequency
Expected 44 44 44 44 44 44
frequency
( )
∑
The table value of Chi-square for 5 df is 11.07, then calculated value 22 > 11.07, the
hypothesis is rejected
Problem :
Fit a poisson distribution to the fallowing data and test for its goodness of fit at level of
significance 0.05
x 0 1 2 3 4
f 419 352 154 56 19
Solution: Mean = 0.4049
Theoretical frequencies are
x 0 1 2 3 4
f 404.9 366 165.4 49.8 11.3
The calculated value of X**2 = 5.78
The table value of X**2 at 0.05 is 7.82,
Therefore 5.78 < 7.82
It is in good agreement
Problem:
Fit a poisson distribution to the fallowing data and test for its goodness of fit given that
for d.f = 4
x 0 1 2 3 4
frequency 122 60 15 2 1
Poisson distribution to fit a data is =
= 121,61,15,3,0
Therefore the new table is
x 0 1 2 3 4
Observed 122 60 15 2 1
frequency
Expected 121 61 15 3 0
frequency
( )
∑
There the hypothesis for goodness of fit is accepted.
Example:
A set of similar coins is tossed 320 times then, the following results are obtained : No. of heads:
0,1,2,3,4,5 and getting head up as Frequency(f): 6,27,72,112,71,32 .
Test the hypothesis that “the data follows the binomial distribution using chi – square test”.
Solution: Probability of getting head up by tossing a single coin p( H ) = ½= p(say), then,
probability of not getting head up by tossing a single coin
q( H ) = ½ = q(say).
Then by fitting the binomial distribution for getting no. of heads 0,1,2,3,4,5 will be
N *p(r) = N* [ q + p ]**r,
Here N = ∑f = 6 + 27 + 72 + 112 + 71 + 32 = 320
N *p(r) = 320* [ 1/2 + 1/2 ]**5, where r = 0,…5 , we get
N *p(r) = 10 , 50, 100, 100, 50, 10 = Expected frequencies(E)
Then by chi- square test we get,
X**2 = ∑ ((O – E )**2)/E
= ((6-10)**2)/10 + ((27-50)**2)/50 +…. ((32-10)**2)/10
X**2 = 78.68
we have from the table value of X**2 at 0.05 = 11.07 for 5 df
Hence 78.68 > 11.07
Conclusion: Data follow the binomial distribution is rejected
Example:
Genetic theory states that children having one parent of blood type A and the other type B will
always be of one of three types A, AB and B and that the proportion of three types will be on an
average be as 1: 2:1. A report states that out of 300 children having one A parent and B parent
then, 30% were found to be type A, 45% were found to be type AB and the remainder type B, Test
the hypothesis by X**2 test that “the observed results support genetic theory”(the table value of
X**2 at 0.05 = 5.991 for 2 df).
Solution:
Observed frequencies of the given types are:
Type A : 30% of 300 children = 30 * 300/100 = 90
Type AB : 45% of 300 children = 45 * 300/100 = 135
Type B : 25% of 300 children = 25 * 300/100 = 75
Then we consider observed frequencies(O) as
O : 90, 135, 75
But the given genetic ratio is 1: 2: 1, then
Total = 1 + 2 + 1 = 4
Observed frequencies of the given types are:
Type A : = 1 * 300/4 = 75
Type AB : = 2 * 300/4 = 150
Type B : = 1 * 300/4 = 75
Then we consider Expected frequencies( E ) as
E : 75, 150, 75
Then, by chi - square test we get
X**2 = ∑ ((O – E )**2)/E
= ((90-75)**2)/75 + ((135-150)**2)/150 + ((75-75)**2)/75
X**2 = 4.5
we have from the table value of X**2 at 0.05 = 5.991 for 2 df
Hence 4.5 < 5.991
Conclusion: the hypothesis that the observed results support genetic theory.
19. A certain machine makes electric resistors having a mean of 40 ohms and standard
deviation of 2 ohms. Assuming that the resistance follows a normal distribution. What is the
percentage of resistors will have the resistance that exceeds 43 ohms.
Answer: 0.0668, 6.68%
20. Fit a normal distribution for the following frequency distribution
x 2 4 6 8 10
f 1 4 6 4 1
f =1 + 4 + 6 + 4 + 1 =16
x f = 96 x 2 f = 640
xf 96
X= = =6
f 16
x2 f 2
σ =
2
− X =4
f
( x −6 )2
1 −
P (x ) = e 8
− ∞< x<∞
2 2π
Joint Probability Distribution
Mean of X = µ X = E ( X ) = x p(x )
Mean of Y = µY = E (Y ) = y p( y )
E ( XY ) = x y p ( x, y )
x y
X and Y are independent if
E ( XY ) = E ( X )E (Y )
Variance of X = σ X = E (X 2 )− [E ( X )]
2 2
Variance of Y = σ Y = E (Y 2 ) − [E (Y )]
2 2
S tan dard Deviation of X = σ X = Variance
S tan dard Deviation of Y = σ Y = Variance
CoVariance of X and Y = Cov( X , Y )
= E ( XY ) − E ( X )E (Y )
Corelation Coefficient = ρ ( X , Y )
Cov( X , Y )
=
σ X σY
X and Y are independent if Cov( X , Y ) = 0
1. The joint probability distribution of two random variables X and Y is given by the
following table. Determine the individual or marginal distributions of X and Y. Also verify X
and Y are stochastically independent.
X/Y 2 3 4
1 0.06 0.15 0.09
2 0.14 0.35 0.21
Answers Means = 1.7 and 3.1 E(XY) = 5.27
2. The joint probability distribution of two random variables X and Y is given by the
following table. Determine the individual or marginal distributions of X and Y. Also verify X
and Y are stochastically independent.
X/Y 1 3 6
1 1/9 1/6 1/18
3 1/6 1/4 1/12
6 1/18 1/12 1/36
Answers E(X) = 2.833 = E(Y) E(XY) = 8.026 Cov(X,Y) = 0
[Link] joint distribution of two random variables X and Y is given below. Find the marginal
distributions of X and Y. Also determine µX and µY and the covariance and correlation
coefficient of X and Y.
X/Y -2 -1 4 5
1 0.1 0.2 0.0 0.3
2 0.2 0.1 0.1 0.0
Answers E(X) = 1.4 E(Y) = 1.0 E(XY) = 0.9 Variance of X =0.24 Variance of Y = 9.6
Cov(X,Y) = -0.5 ρ (X,Y) = -0.3294
4. The joint distribution of two random variables X and Y is given below. Find the marginal
distributions of X and Y. Also determine µX and µY and the covariance and correlation
coefficient of X and Y.
X/Y 1 3 9
2 1/8 1/24 1/12
4 1/4 1/4 0
6 1/8 1/24 1/12
Answers : E(X) = 4 E(Y) = 3 E(XY) = 12 Cov(X,Y) = 0.0 ρ (X,Y) = 0.0
5. The joint distribution of two random variables X and Y is given below. Find the marginal
distributions of X and Y. Also determine µX and µY and the covariance and correlation
coefficient of X and Y.
X/Y -3 2 4
1 0.1 0.2 0.2
3 0.3 0.1 0.1
Answers: E(X) = 2 E(Y) = 1.05 E(XY) = 0.9 Variance of X =1 Variance of Y = 9.24
Cov(X,Y) = -1.2 ρ (X,Y) = -0.3947
6. The distributions of two stochastically independent random variables X and Y defined on
the sample space are given by the following tables. Find the joint distribution.
X 0 1
P(X) 0.2 0.8
Y 1 2 3
P(Y) 0.1 0.4 0.5
[Link] distributions of two random variables X and Y defined on the sample space are given
by the following tables. Find the joint distribution. Also find correlation coefficient.
X 1 2
P(X) 0.7 0.3
Y -2 5 8
P(Y) 0.3 0.5 0.2
8. The joint distribution of two random variables X and Y is defined by the function
P(X,Y) = c(2x+y) where X and Y assume the integer values 0,1,2. Find the marginal
distributions of X and Y. Are they independent?
9. Two independent random variables X and Y are such that X takes values 2,5,7 with the
probabilities ½,1/4,1/4 and Y takes values 3,4,5 with probabilities 1/3,1/3,1/3. Find the joint
probability distribution of X and Y. Also calculate the correlation coefficient.
10. A fair coin is tossed thrice. The random variables X and Y are defined as follows: X = 0
or 1 according as head or tail occurs on the first toss. Y = number of heads. Determine the
marginal distributions and hence find the correlation coefficient.
Answers: E(X) = ½ E(Y) = 3/2 E(XY) = ½ Variance of X =1/4 Variance of Y = 3/4
Cov(X,Y) = -1/4 ρ (X,Y) = -0.577
11. A fair coin is tossed thrice. The random variables X and Y are defined as follows: X = 0
or 1 according as tail or head occurs on the first toss. Y = number of tails. Determine the
marginal distributions and hence find the correlation coefficient.
Answers: E(X) = ½ E(Y) = 3/2 E(XY) = ½ Variance of X =1/4 Variance of Y = 3/4
Cov(X,Y) = -1/4 ρ (X,Y) = -0.577
THE DERIVATION OF MEAN AND VARIENCE OF FOUR
DISTRIBUTION IS GIVEN BELOW