Simple random sampling

简单随机抽样

What is simple random sampling?

Every individual has an equal chance and each draw is independent; with or without replacement.

SkillKP000911

Sign in to read the whole lesson, with 1 interactive aid, 11 exercises

Sign in / Sign up

Mastery goals

  • Can tell sampling with replacement from sampling without replacement
  • Can take a simple random sample by drawing lots or by random numbers, including a calculator, spreadsheet or statistics software
  • Can explain why random sampling reduces bias and how sample size affects how well a sample estimates the population

When drawing with replacement, the same ball may be drawn several times; in the extreme case the same ball is drawn every time, and a ball drawn again and again only gives the colour of that one ball. If instead we draw without replacement, that is, a ball drawn from the bag is not put back and each draw is made at random from the remaining balls, then no ball can be drawn twice. In particular, when the sample size is , drawing without replacement has taken every ball out of the bag, so the proportion of red balls is known completely, whereas drawing with replacement generally still cannot determine that proportion exactly.

In general, suppose a population contains individuals ( a positive integer) and individuals () are drawn one by one from it as a sample. If the drawing is with replacement and at each draw every individual in the population has the same probability of being drawn, this sampling method is called simple random sampling with replacement; if the drawing is without replacement and at each draw every individual in the population not yet in the sample has the same probability of being drawn, this sampling method is called simple random sampling without replacement. Simple random sampling with replacement and simple random sampling without replacement are together called simple random sampling. A sample obtained by simple random sampling is called a simple random sample.

Drawing individuals at random from the population one by one without replacement and drawing individuals at random all at once are equivalent ways of taking a sample.

Simple random sampling without replacement is more efficient than with replacement, so in practice it is used more often. Unless stated otherwise, simple random sampling in this chapter means simple random sampling without replacement.

Problem 1 A furniture factory is making desks and chairs for Grade 10 of Shuren High School. It wants to know the average height of all Grade 10 students in advance, so as to set the standard height of adjustable desks and chairs. Grade 10 of Shuren High School has students. If simple random sampling is used to survey the average height of Grade 10 students, how should the sample be drawn?

In this problem all Grade 10 students of Shuren High School form the population, each student is an individual, and a student's height is the variable. As with estimating the proportion of red balls in “Explore”, we can take a simple random sample from Grade 10 and use the average height of the sample to estimate the average height of Grade 10 students. There are many ways to carry out simple random sampling; drawing lots and the random number method are two common ones.

1. Drawing lots

First number the students, say from to . Write all the numbers on slips of paper that look and feel the same (cards or balls also work) to make the lots, put the slips in an opaque box and mix them thoroughly. Then draw lots from the box one by one without replacement, and put the student with each number drawn into the sample, until the sample has as many students as needed.

Drawing lots is simple and easy, but it becomes troublesome when the population is large. So drawing lots generally suits a population with not many individuals.

2. The random number method

First number the students, say from to . Use a random number tool to produce random integers from to , take each random number produced as a number drawn, and put the student with that number into the sample. Repeat until the sample has as many students as needed.

If the random numbers produced repeat, that is, the same number is drawn more than once, we can discard the repeated number and produce new random numbers, until the number of different numbers produced equals the number of students needed.

Generally, unless specially set, the random numbers produced by a calculator or computer software can repeat. To check whether this is so for your calculator or software, look at its manual, or test whether it can produce random integers each equal to or .

(1) Producing random numbers by a random experiment

Take balls of the same size and material, write the digits , , , …, on them and put them in an opaque bag. Draw from the bag times with replacement, mixing thoroughly before each draw, and use the digits from the first, second and third draws as the hundreds, tens and units digits. This produces a three-digit random number. If it lies between and , the student with that number is selected; otherwise the number is discarded. Random numbers produced this way may repeat.

(2) Producing random numbers with information technology

① With a calculator

Enter the calculation mode of the calculator (this may differ between models), call up the random number function and set its parameters, for example RandInt#(1,712), and press “=” to produce a random integer from to . Pressing “=” again and again produces more random numbers. Random numbers produced this way may repeat.

② With spreadsheet software

Type “=RANDBETWEEN(1,712)” into any cell of a spreadsheet to produce a random integer from to . The spreadsheet's auto-fill feature then quickly produces a large number of random numbers (Figure 9.1-1). Random numbers produced this way may repeat.

Figure 9.1-1 (random numbers produced by auto-fill in a spreadsheet, column A, rows 1–20):

```
=RANDBETWEEN(1,712)
1 475 6 191 11 475 16 632
2 628 7 693 12 620 17 42
3 383 8 7 13 83 18 389
4 274 9 347 14 343 19 174
5 142 10 515 15 568 20 463
```

③ With the statistical software R

Type “sample(1:712,50,replace=F)” at the R console and press Enter to get random integers from to with no repeats (Figure 9.1-2). R is free statistical software with strong statistical features for handling data, plotting and analysis, and it is widely used in statistical research and study.

Figure 9.1-2 (the R console):

```
> sample(1:712,50,replace=F)
[1] 433 161 173 244 53 114 136 519 605 65 705 393 105 299 210 691 230
[18] 432 90 274 215 407 288 350 45 205 6 422 57 388 504 143 25 243
[35] 435 115 612 4 125 593 203 208 339 9 86 137 553 18 513 87
```

As information technology develops, people use calculators, mathematical software, statistical software and other tools more and more to produce random numbers. Some statistical software in particular makes it very easy to produce all kinds of random numbers as required. The biggest advantage of producing random numbers with information technology is that it is convenient and fast.

We know that in repeated trials, the more trials there are, the more likely the frequency is to be close to the probability. In the same way, when students are drawn by simple random sampling, the larger the sample size, the more likely the proportions of different heights in the sample are to be close to the corresponding proportions in the population, and the more likely the average height of the sample is to be close to the average height of the population. That is, as far as how well a sample represents the population, a large sample is generally better than a small one; especially when the sample is small, increasing the sample size can improve the estimate considerably. In real sampling, however, a larger sample raises the cost of the survey in people, money and time. So the sample size in a sampling survey should be chosen according to the needs of the actual problem; larger is not necessarily better.

In a simple random sampling survey, when the sample size is as large as the population, it becomes a census.

After several draws you should see that with sample size the share of coloured points jumps up and down and is sometimes far from the population share , while with sample size it mostly lands near . This is what the text above says: the larger the sample, the more likely its share is close to the population share, though not closer every single time.

Related points

All points in this topic

Cite this page: Simple random sampling · KnowledgeTree (知识树), https://www.knowledgetree.world/en/kp/KP000911