The University of Hong Kong · FACULTY OF STATISTICS

MEDD8815 Chap.3 Producing Data, Probability and Random Variables

- one subject, every graph, every model, every mark
8 Chapters5-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 3 of 8 · MEDD8815

Producing Data, Probability and Random Variables

Where data come from

The third session changes the question from how to describe data to how data should be produced. Anecdotes are vivid and unrepresentative, available data were collected for other purposes, and only designed studies, sample surveys and experiments, are built to answer a stated question.

The key distinction is between observing and intervening: an observational study can describe an association, while an experiment that imposes treatments can support a claim about cause.

Designing experiments

The chapter sets out the language of experiments, units, subjects, factors and treatments, and the three principles that make a comparison trustworthy: control, randomisation and replication.

It covers completely randomised designs, matched pairs and block designs, and the protection that double-blinding offers. A worked example counts the factors, treatments and responses of a two-factor design before any data exist, which is exactly the skill the session's homework opens with.

Designing samples

Samples chosen for convenience or by voluntary response are biased.

A simple random sample gives every possible set of the chosen size an equal chance, and a stratified sample does this separately within groups of similar individuals. The chapter then separates parameters, which describe populations, from statistics, which describe samples, and introduces the sampling distribution.

Random sampling removes bias; larger samples reduce variability; and the size of the population hardly matters once it is at least a hundred times the sample. The handout's Excel procedure for drawing a random sample is included.

Randomness and random variables

Probability is defined as a long-run proportion.

A random variable assigns a number to each outcome of a chance process, discrete when it counts and continuous when it measures. The law of large numbers says the mean of many independent observations settles near the population mean, and the chapter shows it with a computed simulation that echoes the session's SPSS laboratory on thousands of simulated sample means.

In this chapter

What this chapter covers

  • 01

    Anecdotal, available and designed data

  • 02

    Observational studies against experiments

  • 03

    Factors, treatments and experimental units

  • 04

    Control, randomisation and replication

  • 05

    Matched pairs and block designs

  • 06

    Simple random and stratified samples

  • 07

    Bias, variability and sampling distributions

  • 08

    Random variables and the law of large numbers

Worked example · free

Allocate treatments at random, step by step

Q [5 marks]. AskSia-authored practice. A department wants to compare two revision formats, printed notes and short videos, using 16 volunteer pupils, eight per format. Describe how to allocate the formats at random, name the design, and say what would make it a block design. The marks shown are an AskSia study allocation and are not the University's marking scheme.
Short-run chaos, long-run regularity.Short-run chaos, long-run regularity. A simulated sequence of guesses wanders early on and settles near the true probability as the trials accumulate.Proportion of correct guesses as the trials pile up015030045060000.250.50.751Number of trialsProportion so fartrue probability 0.5after 600 trials: 0.508
Short-run chaos, long-run regularity. A simulated sequence of guesses wanders early on and settles near the true probability as the trials accumulate.
  • 2Label the pupils and use chance to pick the first group.
  • 1Name the design and its comparison.
  • 2Describe the change that turns it into a block design, and why it might help.
Label the pupils 01 to 16, attach a random number to each, sort by the random numbers and give printed notes to the first eight and videos to the remaining eight. This is a completely randomized design comparing two treatments on one response, such as a common test score. If the pupils come from two year groups whose scores are expected to differ, split them into those two blocks first and randomise the formats separately within each block; the comparison is then made within similar pupils, which removes year-group variation from the treatment comparison.
Sia tip — Randomisation is a procedure you can describe step by step; if your answer only says the groups were chosen fairly, it has not described a randomisation.
Glossary

Key terms

Observational Study
A study that records variables without attempting to influence the responses, so it can describe associations but not by itself establish cause.
Experiment
A study that deliberately imposes treatments on units in order to observe their responses, the only fully convincing source of evidence about cause.
Treatment
A specific experimental condition applied to units; when there are several factors, a treatment is a combination of their levels.
Simple Random Sample
A sample of size n chosen so that every set of n individuals in the population has an equal chance of being the sample.
Stratified Random Sample
A sample formed by dividing the population into groups of similar individuals and taking a separate simple random sample within each.
Parameter
A number describing a population, usually unknown, such as a population mean or proportion.
Sampling Distribution
The pattern of values a statistic would take across every possible sample of a given size drawn from one population.
Random Variable
A variable whose value is a numerical outcome of a chance process; discrete when it counts, continuous when it measures.
FAQ

Producing Data, Probability and Random Variables FAQ

Why is random assignment better than letting people choose their group?

People who choose a treatment tend to differ from those who do not, in motivation, background or prior attainment, and those differences become confounded with the treatment. Random assignment spreads such differences evenly by chance, so a large difference in responses can be credited to the treatment.

Does a bigger population need a bigger sample?

Hardly at all. The spread of a statistic depends on the sample size and design, not on the population size, provided the population is at least a hundred times as large as the sample. A well-drawn sample of a thousand describes a district and a country almost equally well.

What is the difference between a parameter and a statistic?

A parameter is a fixed but usually unknown number describing a whole population. A statistic is computed from a sample and changes from one sample to the next; it is used to estimate the parameter, and its sampling distribution describes how much it varies.

Study strategy

Assessment move

Collect three education claims from news or reports and, for each, write two lines: was the treatment imposed or merely observed, and how were the cases chosen? Then state what the study can and cannot conclude. This session's quiz and homework are about exactly that judgement, and practising it on real claims is faster than rereading definitions.

Working through Producing Data, Probability and Random Variables in MEDD8815? Sia is AskSia’s AI Statistics tutor — ask any MEDD8815 Producing Data, Probability and Random Variables question and get a clear, step-by-step explanation grounded in how MEDD8815 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 26 of your The University of Hong Kong subjects - and 1,000+ Bibles across every Australian university.
Sia - your MEDD8815 tutor, unlimited, worked the way the exam marks it
The full 5-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works