Docsity

2. Simple random sampling with replace, Exercises of Statistics

Toggle sidebar
bg1
SamplingTheory| Chapter 2 | Simple Random Sampling | Shalabh, IIT Kanpur
1
Page 1
Chapter -2
Simple Random Sampling
Simple random sampling (SRS) is a method of selection of a sample comprising of n a number of
sampling units out of the population having N number of sampling units such that every sampling
unit has an equal chance of being chosen.
The samples can be drawn in two possible ways.
The sampling units are chosen without replacement because the units once are chosen are not
placed back in the population.
The sampling units are chosen with replacement because the selected units are placed back
in the population.
1. Simple random sampling without replacement (SRSWOR):
SRSWOR is a method of selection of n units out of the N units one by one such that at any stage of
selection, any one of the remaining units have the same chance of being selected, i.e. 1/ .N
2. Simple random sampling with replacement (SRSWR):
SRSWR is a method of selection of n units out of the N units one by one such that at each stage of
selection, each unit has an equal chance of being selected, i.e., 1/ .N
Procedure of selection of a random sample:
The procedure of selection of a random sample follows the following steps:
1. Identify the N units in the population with the numbers 1 to .N
2. Choose any random number arbitrarily in the random number table and start reading numbers.
3. Choose the sampling unit whose serial number corresponds to the random number drawn
from the table of random numbers.
4. In the case of SRSWR, all the random numbers are accepted ever if repeated more than once.
In the case of SRSWOR, if any random number is repeated, then it is ignored, and more
numbers are drawn.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17

Partial preview of the text

Download 2. Simple random sampling with replace and more Exercises Statistics in PDF only on Docsity!

Sampling Theory | Chapter 2 | Simple Random Sampling | Shalabh, IIT Kanpur

Chapter -

Simple Random Sampling

Simple random sampling (SRS) is a method of selection of a sample comprising of n a number of

sampling units out of the population having N number of sampling units such that every sampling

unit has an equal chance of being chosen.

The samples can be drawn in two possible ways.

 The sampling units are chosen without replacement because the units once are chosen are not

placed back in the population.

 The sampling units are chosen with replacement because the selected units are placed back

in the population.

1. Simple random sampling without replacement (SRSWOR):

S RSWOR is a method of selection of n units out of the N units one by one such that at any stage of

selection, any one of the remaining units have the same chance of being selected, i.e. 1/^ N.

2. Simple random sampling with replacement (SRSWR):

SRSWR is a method of selection of n units out of the N units one by one such that at each stage of

selection, each unit has an equal chance of being selected, i.e., 1/ N.

Procedure of selection of a random sample:

The procedure of selection of a random sample follows the following steps:

  1. Identify the N units in the population with the numbers 1 to N.
  2. Choose any random number arbitrarily in the random number table and start reading numbers.
  3. Choose the sampling unit whose serial number corresponds to the random number drawn

from the table of random numbers.

  1. In the case of SRSWR, all the random numbers are accepted ever if repeated more than once.

In the case of SRSWOR, if any random number is repeated, then it is ignored, and more

numbers are drawn.

Sampling Theory | Chapter 2 | Simple Random Sampling | Shalabh, IIT Kanpur

Such a process can be implemented through programming and using the discrete uniform

distribution. Any number between 1 and N can be generated from this distribution, and the

corresponding unit can be selected in the sample by associating an index with each sampling unit.

Many statistical software like R, SAS, etc. have inbuilt functions for drawing a sample using

SRSWOR or SRSWR.

Notations:

The following notations will be used in further notes:

N : Number of sampling units in the population (Population size).

n : Number of sampling units in the sample (sample size)

Y : The characteristic under consideration

Y i : Value of the characteristic for the

th i unit of the population

1

n

i i

y y n (^) 

 (^)  sample mean

1

N

i i

Y y N (^) 

 (^)  : population mean

2 2 2 2

1 1

N N

i i i i

S Y Y Y NY

N  N 

 

2 2 2 2

1 1

2 2 2 2

1 1

N N

i i i i n n

i i i i

Y Y Y NY

N N

s y y y ny n n

  

 

 

 

Probability of drawing a sample :

1.SRSWOR:

If n units are selected by SRSWOR, the total number of possible samples are

N

n

So the probability of selecting any one of these samples is

N

n

Sampling Theory | Chapter 2 | Simple Random Sampling | Shalabh, IIT Kanpur

Here P u ( (^) i k (^) ( ) | ui (^) (1) ui (^) (2) ... u (^) i k (^) ( 1) ) is the probability of drawing ui k (^) ( ) at the k th^ draw given that

ui (^) (1) , ui (^) (2) ,..., ui k (^) ( 1) have already been drawn in the first ( k – 1) draws.

Such a probability is obtained as

( ) (1) (2) ( 1)

P u i k ui ui ui k N k

 ^

So

1

n

o k

N n P sN^ k^ N

The number of ways in which a sample of size n can be drawn  n!

Probability of drawing a sample in a given order !

N n

N

So the probability of drawing a sample in which the order of units in which they are drawn is

( )! 1 irrelevant!. !

N n n N N

n

        

2. SRSWR

When n units are selected with SRSWR, the total number of possible samples are.

n N

The Probability of drawing a sample is

n. N

Alternatively, let ui be the i th^ unit selected in the sample. This unit can be selected in the sample

either at first draw, second draw, …, or n th^ draw. At any stage, there are always N units in the

population in case of SRSWR, so the probability of selection of ui at any stage is 1/ N for all i =

1,2,…, n. Then the probability of selection of n units u 1 (^) , u 2 ,..., u (^) n in the sample is

n n

n

P u u u P u P u P u

N N N

N

Sampling Theory | Chapter 2 | Simple Random Sampling | Shalabh, IIT Kanpur

Probability of drawing a unit

1. SRSWOR

Let Ae denotes an event that a particular unit u (^) j is not selected at the

th  draw. The probability of

selecting, say,

th j unit at

th k draw is

P (selection of u (^) j at

th k draw) = P A ( 1 (^)  A 2 (^)  ....  Ak (^)  1  Ak )

P A P A A P A A A P A k A A Ak P Ak A A Ak

N N N N k N k

N N N k

N N N k N k

N

   ^   ^   ^ ^  ^ 

2. SRSWR

P [ selection of u (^) j at k

th draw] =

N

Estimation of population mean and population variance

One of the main objectives after the selection of a sample is to know about the tendency of the data to

cluster around the central value and the scatteredness of the data around the central value. Among

various measures of central tendency and dispersion, the popular choices are arithmetic mean and

variance. So the population mean and population variability are generally measured by the arithmetic

mean (or weighted arithmetic mean) and variance, respectively. There are various popular estimators

for estimating the population mean and population variance. Among them, sample arithmetic mean

and sample variance is more popular than other estimators. One of the reasons to use these estimators

is that they possess nice statistical properties. Moreover, they are also obtained through well-

established statistical estimation procedures like maximum likelihood estimation, least squares

estimation, method of moments etc., under several standard statistical distributions. One may also

consider other measures like median, mode, geometric mean, harmonic mean for measuring the

central tendency and mean deviation, absolute deviation, Pitman nearness etc. for measuring the

dispersion. Numerical procedures like bootstrapping can study the properties of such estimators.

Sampling Theory | Chapter 2 | Simple Random Sampling | Shalabh, IIT Kanpur

Alternatively, the following approach can also be adapted to show the unbiasedness property. Let

Pj ( ) i N

 denotes the probability of selection of

th i unit at

th j stage. Then

1

1 1

1 1

1

n

j j n N

i j j i

n N

i j i n

j

E y E y n

Y P i n

Y

n N

Y

n

Y

 

 

 

 

SRSWR

1

1

1 1 2 2 1

1 2 1

1

n i i n i i n

N N i n N i n i

E y E y n

E y n

Y P Y P Y P

n

Y Y Y

n N N N

Y

n

Y

where

P i N

 for all i  1, 2,..., N is the probability of selection of a unit. Thus y is an unbiased

estimator of the population mean under SRSWR also.

Sampling Theory | Chapter 2 | Simple Random Sampling | Shalabh, IIT Kanpur

Variance of the estimate

Assume that each observation has some variance

2

. Then

2

2

1

2 2 2 1

2 2 2 1

2 2 2 1

2 2

n

i i

n n n

i i j i i j n n n

i i j i i j n

i

V y E y Y

E y Y n

E y Y y Y y Y n n

E y Y E y Y y Y n n

K

n n

N K S Nn n

 

 

 

 

where ( )( )

n n

i j i j

K E y Y y Y

 (^)    assuming that each observation has variance

2 . Now we find

K under the setups of SRSWR and SRSWOR.

SRSWOR

n n

i j i j

K E y Y y Y

 (^)   .

Consider

N N

i j k l k

E y Y y Y y Y y Y N N (^) 

 

Since

2 2

1 1

2

2

2

( )( ) [ ( 1) ]

N N N N

k k k k i k N N

k k N N

k k

y Y y Y y Y y Y

N S y Y y Y

y Y y Y N S N N N N

S

N

  

 ^  ^ ^ ^ ^ 

  





     

Sampling Theory | Chapter 2 | Simple Random Sampling | Shalabh, IIT Kanpur

Efficiency of y under SRSWOR over SRSWR

2

2

2 2

WOR

WR

WOR

N n V y S Nn

N V y S Nn

N n n S S Nn Nn

V y a positive quantity

Thus

V ( yWR )  V ( yWOR )

and so, SRSWOR is more efficient than SRSWR.

Estimation of variance from a sample

Since the expressions of variances of the sample mean, involve

2 S which is based on population

values, so these expressions can not be used in real-life applications. In order to estimate the variance

of y on the basis of a sample, an estimator of

2 S (or equivalently

2  ) is needed. Consider

2 s as an

estimator of

2 S (or^

2

 ) and we investigate its biasedness for

2 s in the cases of SRSWOR and

SRSWR,

Consider

2 2

1 2

1

2 2

1

2 2 2

1

2

1

n i i n i i n i i n i i n i i s y y n

y Y y Y n

y Y n y Y n

E s E y Y nE y Y n

Var y nVar y n nVar y n n

Sampling Theory | Chapter 2 | Simple Random Sampling | Shalabh, IIT Kanpur

In the case of SRSWOR

2 ( (^) WOR )

N n V y S Nn

and so

2 2 2

2 2

2

n N n E s S n Nn

n N N n S S n N Nn

S

 ^  

 ^ 

In the case of SRSWR

( WR )

N

V y S Nn

and so

2 2 2

2 2

2

2

n N E s S n Nn

n N N S S n N Nn

N S N

 ^ 

 ^  

Hence

2 2 2

in ( ) in

S SRSWOR

E sSRSWR

An unbiased estimate of Var y ( )is

ˆ^2

( WOR )

N n V y s Nn

 in case of SRSWOR and

2

2

ˆ^1

in case of SRSWR.

WR

N N

V y s Nn N

s

n

Sampling Theory | Chapter 2 | Simple Random Sampling | Shalabh, IIT Kanpur

2

4

Var s E s S S

where

  ^ 

4 2 2

1 3) for large. ( 1) 2

S n Var s N n n

  1

N j

j i i

Y Y

N

 

 (^)  

4 2 4 : coefficient of kurtosis. S

Thus

 

 

 

2

2 2 2 2 4

2

2

2

2

E s S n n

Var s Var s S S S

Var s

S

S n

n n

Note that for a normal distribution,  2  3 and we obtain

 

2 ( ). 2 1

S

Var s n

Both

2 Var s ( ) and Var s ( )are inflated due to nonnormality to the same extent, by the inflation factor

 2 

n

n

 ^ ^   

 ^  

and this does not depend on the coefficient of skewness.

This is an important result to be kept in mind while determining the sample size in which it is

assumed that

2 S is known. If inflation factor is ignored and the population is non-normal, then the

reliability on

2 s may be misleading.

Sampling Theory | Chapter 2 | Simple Random Sampling | Shalabh, IIT Kanpur

Alternative approach:

The results for the unbiasedness property and the variance of the sample mean can also be proved in

an alternative way as follows:

(i) SRSWOR

With the i th^ unit of the population, we associate a random variable ai defined as follows:

0, if t

if

he

the

unit does not occurs in the sample ( 1, 2,.

unit occurs in the sample

th

i (^) th a i N

i

i

Then,

2

( ) 1 Probability that the unit is included

( ) 1 Probabilit

in the sample

y that the unit is includedin the s

( ) 1 Probability that the and

ample

th i

th i

th i j

E a i

n i N N

E a i

n i N N

E a a i j

  units are included in the sample

th

n n i j N N N

From these results, we can obtain

 

2 2 2 2 1 1 2 1

We can rewrite the sample mean as

Then

and

i i i

i j i j i j

N

i i i

N

i i i

N

i i i

n N n Var a E a E a i N N

n N n Cov a a E a a E a E a i j N N N

y a y n

E y E a y Y n

Var y Var a y n

2 2 1

N N

i i i j i j i i j

Var a y Cov a a y y n (^)  

^ ^  

 

Sampling Theory | Chapter 2 | Simple Random Sampling | Shalabh, IIT Kanpur

Further,

2 2 1 1

N N

i i i j i j i i

Var y Var a y Cov a a y y n (^)  

Substituting, the values of

2 2 Var a ( (^) i )  n N (  1) / N and Cov a ( (^) i , a (^) j )   n / N and simplifying, we get

N

Var y S Nn

To prove that

N

E s S N

  in SRSWR, consider

2 2 2 2 2

1 1

2 2 2

1

2 2 2

1

2

2 2 2

n N

i i i i i N

i i i N

i i

n s y ny a y ny

n E s E a y n Var y Y

n N y n S nY N nN

n N S N

N E s S N

 

Estimator of population total:

Sometimes, it is also of interest to estimate the population total, e.g., total household income, total

expenditures, etc. Let denotes the population total

1

N

T i i

Y Y NY

which can be estimated by

Y T NY

Ny

Obviously

  ^ 

E YT NE y

NY

Sampling Theory | Chapter 2 | Simple Random Sampling | Shalabh, IIT Kanpur

  ^ 

2

2 2 2

2 2 2

Var Y T N Var y

N n N N n N S S for SRSWOR Nn n

N N N N S S for SRSWOR Nn n

 ^ ^  

and the estimates of variance of Y ˆ T are

2

2

T

N N n s for SRSWOR n Var Y N s for SRSWOR n

^ 

Confidence limits for the population mean

Now we construct the 100 (1  )% confidence interval for the population mean. Assume that the

population is normally distributed

2

N (  ,  ) with mean  and variance

2  .then ( )

y Y

Var y

follows

N (0,1) when

2  is known. If

2  is unknown and is estimated from the sample, then ( )

y Y

Var y

follows a t -distribution with ( n 1) degrees of freedom. When

2  is known, then the 100( 1  )%

confidence interval is given by

2 2

2 2

y Y P Z Z Var y

or P y Z Var y Y y Z Var y

 

 

 ^ ^ ^ 

 ^ ^ ^ ^ ^ 

and the confidence limits are

2 2

y Z (^)  Var y ( ), y Z (^)  Var y ( )

 ^  

where

2

Z  denotes the upper 2

 % points on N (0,1) distribution. Similarly, when

2  is unknown,

then the 100 (1  )% confidence interval is

Sampling Theory | Chapter 2 | Simple Random Sampling | Shalabh, IIT Kanpur

1. Pre-specified variance

The sample size is to be determined such that the variance of y should not exceed a given value, say

V. In this case, find n such that

Var y ( ) V

or ( )

N n y V Nn

or

N n 2 S V Nn

or (^2)

1 1 V

n N S

or

n N n e

e

e

n n n

N

where

2

e.

S

n v

It may be noted here that ne can be known only when

2 S is known. This reason compels to assume

that S should be known. The same reasoning will also be seen in other cases.

The smallest sample size needed in this case is

e smallest e

n n n

N

It N is large, then the required n is

nn e and ns (^) mallestne.

2. Pre-specified estimation error

It may be possible to have some prior knowledge of population mean Y. It may be required that the

sample mean y should not differ from it by more than a specified amount of absolute estimation

error, i.e., which is a small quantity. Such a requirement can be satisfied by associating a probability

(1  )with it and can be expressed as

P ^ y  Y  e  (1  ).

Sampling Theory | Chapter 2 | Simple Random Sampling | Shalabh, IIT Kanpur

Since y follows

2 ,

N n N Y S Nn

assuming the normal distribution for the population, we can write

y Y (^) e P Var y Var y

 ^ ^ 

which implies that

e Z Var y

or

2 2

2

Z (^)  Var y ( ) e

or

2 2 2

2

N n Z S e Nn

or

2

2

2

(^12) 1

Z S

e

n Z S

N e

 ^  

which is the required sample size. If N is large then

2

e

Z S

n

3. Pre-specified width of the confidence interval

If the requirement is that the width of the confidence interval of y with confidence coefficient

(1  )should not exceed a pre-specified amount W , then the sample size n is determined such that

2

2 Z (^)  Var y ( ) W

assuming

2  is known and population is normally distributed. This can be expressed as

2

N n Z S W Nn

or

2 2 2

2

4 Z S W

n N

 ^  