HEG Genève APPLIED STATISTICS · WEEK 2 ← Course
This week
0%
Course
0%
Week 2 · Applied Statistics · HEG Genève

Reading the competitor data

In Week 1 you saw that competitor prices are a cloud, not a point. Now we learn to describe that cloud precisely — picture it, find its centre, measure its spread, locate any single price inside it — and turn the description into an actual answer to "what should we charge?" This is the textbook's chapter 2, and every exam has a question from it.

The session is three hours in two parts. Part 1 (~1 h) is the lesson: your instructor presents the deck and you follow the same numbered sections here — every slide names its section. Part 2 (~2 h) is eight exercises worked together, given on the slides and as forms below; solutions open as your instructor reveals them.

🏫 In class: 3 h · lesson ~1 h, then exercises ~2 h · bring a calculator 📖 Textbook: Saylor, ch. 2 — Descriptive Statistics ▶ The Lecture button (top-right) shows the deck we use in class

By the end of Week 2 you will be able to

  • Build and read a stem-and-leaf plot, a frequency histogram and a relative frequency histogram — and name the shape you see.
  • Choose between mean, median and mode, and know which one an outlier will fool.
  • Measure spread with the range, the IQR and the sample standard deviation — and say why s divides by n − 1.
  • Find percentiles, quartiles and z-scores, draw a box plot, and flag outliers with the 1.5 × IQR rule.
  • Apply the Empirical Rule and Chebyshev's theorem — and know which one needs a bell.
  • Defend a Margherita price with a sentence a bank would accept.

Resources — tick them off as you go

Lecture deck — the ▶ Lecture button above; presented in class in Week 2.
Saylor ch. 2 — Descriptive Statistics ↗ — §2.1 displays · §2.2 centre · §2.3 variability · §2.4 relative position · §2.5 Empirical Rule & Chebyshev. About 40 minutes; read a section after doing its screen here.
Part 2 · the exercise set — eight exercises, ~100 min, worked with your instructor in the second half. Section 2.7 below. Bring a calculator.
Week 2 homework — a new eleven-pizzeria dataset: frequency table, shape, five-number summary, box plot, z-scores, Chebyshev. With hints and worked solutions.
Practice arena — unlimited descriptive-statistics problems with your own randomised numbers. Drill the method, not the memory.
← Course page
A reset link lives at the bottom of section 2.9.
Section 2.1 · The hookslide 3

Thirty prices, one afternoon

Your estimate

You went back out and did it properly: thirty pizzerias this time.

Thirty Margherita prices are on your notepad. Before you look at a single one, an instinct check: what share of Geneva pizzerias charge more than CHF 20 for a Margherita?

Your estimate
30%
The dataset for the week

Thirty pizzerias, as collected.

Thirty is a sample; Geneva's ~300 pizzerias are the population. Every number this week is a statistic — computed from the thirty, and it would come out a little different from a different thirty. That "a little different" is Week 5's whole subject; for now we simply describe what we have.

Description first. You cannot reason about a cloud you have not looked at.

Section 2.2 · Three data displaysslide 4

A table of 30 numbers tells you nothing

Why we draw first

Shape is the first thing to see — and you can only see it in a picture.

Before any average, plot the data. A frequency histogram groups prices into classes and shows how many fall in each; a relative frequency histogram shows the same bars as a share of the whole. Drag the class width and watch the story change — too wide hides detail, too narrow turns it into noise.

Histogram builder
Each bar counts the pizzerias whose price falls in that class.

The tail stretches to the right — a few pricey tourist spots. That is a right-skewed distribution, and it will matter the moment we pick an average.

Stem-and-leaf

The display that keeps every original number.

A histogram shows shape but loses the actual values. A stem-and-leaf diagram shows the shape and every price: the stem is the tens digit, each leaf is a ones digit.

Read it sideways: it is a histogram you can still read the raw data off.

Try it

Which display does the job?

Stem-and-leaf · Frequency histogram · Relative frequency histogram
Section 2.3 · Measures of centreslide 6

Three "averages" — and the one that lies

The three measures

Mean, median, mode — they answer different questions.

  • Mean x̄ — the balance point; add them up, divide by n. Uses every value.
  • Median — the middle value when sorted (the average of the two middle ones if n is even). Ignores how extreme the extremes are.
  • Mode — the most common value. The only "average" that works for categories too.
x̄ = Σx ÷ n  ·  median = middle of the sorted list  ·  mode = most frequent value

For symmetric data they roughly agree. For skewed data they split — and the gap is the lesson.

Watch an outlier move the average
mean
median
mode
Red line = mean, blue dashed line = median. Watch which one the outlier drags.

The mean chases extremes; the median resists them. Report the median when a few big values would otherwise mislead.

Try it

Which measure of centre would you report?

Mean · Median · Mode
Section 2.4 · Measures of variabilityslide 7

Same average, very different markets

Why centre is half the story

Two neighbourhoods can share a mean and feel nothing alike.

Below, Pâquis and Rive both average CHF 18. But one is tightly clustered and one is all over the map. The standard deviation (the typical distance from the mean, from Week 1) and the interquartile range put a number on that difference.

Compare the spread
Pâquis · s
Rive · s
Identical means (CHF 18). The standard deviation exposes the risk the mean hid.

Three rulers for spread, weakest to strongest: range (max − min, fooled by one outlier), IQR (the middle 50%, resistant), and standard deviation (uses every value).

The n − 1 trap

Why the sample standard deviation divides by n − 1.

s² = Σ(x − x̄)² ÷ (n − 1)   ·   σ² = Σ(x − µ)² ÷ N

Week 1 built the standard deviation of a population: average the squared distances, divide by N. For a sample you divide by n − 1. The reason: the sample's own mean x̄ sits a little closer to the sample's values than the true µ would, so the squared distances come out slightly too small. Dividing by one less pushes them back up. On the exam, the word "sample" is your cue to use n − 1 — most lost points in this chapter are exactly here.

Try it

Which measure of spread?

Range · IQR · Standard deviation
Section 2.5 · Relative positionslide 9

Where does one price sit in the crowd?

Five numbers, one picture

Percentiles, quartiles, the five-number summary and the box plot.

The p-th percentile is the value below which p% of the data sit. The quartiles Q₁, Q₂ (the median) and Q₃ are the 25th, 50th and 75th. Sort the data and you get five landmarks: minimum, Q₁, median, Q₃, maximum. The box plot draws them: a box from Q₁ to Q₃ (the middle 50%), a line at the median, whiskers to the data, and dots for outliers beyond the fences Q₁ − 1.5 × IQR and Q₃ + 1.5 × IQR.

The box plot of our 30 prices
min
Q₁
median
Q₃
max
The red dot is an outlier — beyond the upper fence Q₃ + 1.5 × IQR.
z-score: how unusual is a price?

Standardise it.

A z-score says how many standard deviations a value sits from the mean: z = (x − x̄) ÷ s. Type a competitor's price and see.

z = (x − x̄) ÷ s
z-score calculator
CHF

A z near 0 is typical; |z| above ~2 is genuinely unusual. z-scores let you compare positions across different datasets on one ruler.

Section 2.6 · The Empirical Rule & Chebyshevslide 11

From mean and SD to "what fraction lies where"

The Empirical Rule

If the data is bell-shaped: 68 – 95 – 99.7.

Suppose your pizzeria's daily covers (customers served) are bell-shaped with mean 120 and standard deviation 15. The Empirical Rule says ≈68% of days fall within ±1 SD, ≈95% within ±2, ≈99.7% within ±3. Slide to see the band.

The 68–95–99.7 rule
covers between
Empirical Rule
Chebyshev (≥)
Bell-shaped data — the Empirical Rule applies.
Chebyshev's theorem

If you can't assume bell-shaped, you still get a guarantee.

Chebyshev makes no shape assumption: at least (1 − 1/k²) of any data lies within k standard deviations. Weaker than 68–95–99.7, but always true. Compare the two columns above as you slide.

within k SD: Empirical Rule (bell only)  vs.  Chebyshev ≥ 1 − 1/k² (any shape)

The Empirical Rule is a generous estimate that needs a bell; Chebyshev is a cautious guarantee that needs nothing.

Try it

Which rule may you use?

Empirical Rule · Chebyshev · Neither
Section 2.7 · Part 2 · Exercisesslides 15–22

Eight exercises, worked together

The second half of the session

Same exercises on the screen and on this page

Your instructor puts each exercise on the slide; you work it here, by hand, with a calculator — the exam is by hand, so this is the rehearsal. Check marks your number immediately, Hint nudges without giving it away, and the Solution button opens when the room does that exercise together.

Around 100 minutes for all eight, on one dataset of fifteen Eaux-Vives pizzerias. Your answers are saved and reach your instructor's dashboard. Nothing here is graded.

Section 2.8 · Checkpoint

Prove it to yourself

Self-check · not graded

Ten questions on this week

One attempt per question, every answer explained. Your score syncs to your instructor's dashboard as a self-check but does not count toward your grade. Have a calculator to hand — two of these ask for a number, exactly as the exam will.

Where this goes next

In Week 3 we leave description for probability: random variables, and in particular the binomial distribution — the tool for "what is the chance we sell out of dough on a Friday?" Before that, the Week 2 homework: a fresh dataset, everything from this week by hand.

Section 2.9 · Workshop

So what do we charge?

Description → decision

You can now defend a number instead of guessing one.

The competitor data, described: a typical price (the median), a middle-of-the-market band (Q₁ to Q₃, where half of all pizzerias sit), and a clear outlier you should ignore. Pick your Margherita price and see exactly where it lands among the competition.

Set a price in Week 1 and it will reappear here.
Set your price against the market

"Around the median, inside the middle 50%" is a position you can justify to your partner and your bank. That is the whole job of descriptive statistics: turning a cloud into a defensible decision.

Week 2 · the pizzeria file

Five entries, in your own words

📎 Everything saves automatically and reaches your instructor's dashboard. This is the second instalment of the individual project.

1.Which display would you show your business partner — stem-and-leaf, frequency or relative frequency histogram — and what does it reveal about the market?
2.Mean or median for "the typical Geneva price" — and why, for this data?
3.The outlier at CHF 32: keep it in the analysis, or drop it? Say what it is and what dropping it would change.
4.Your defended price, from the slider above.
5.The defence, in two sentences, using at least two numbers from this week (median, quartiles, a z-score, a percentile…).
Fill in all five fields to complete this section.