📝 Master formula sheet

Every formula in MAT 300 in one place — what each letter means, when to use it, and a worked nursing example. Four of the boxes are live calculators.

The four gold boxes with input fields are live. Type your own numbers straight into them and they answer as you type — a z-score, a confidence interval, an area under the normal curve, and the sample size you need. No calculator, no z-table.
📝 40 formulas🧮 4 live calculators📊 17 diagrams👨‍⚕️ nursing examples

🔑 First: which letter means what

⭐ The one idea

Greek letters describe the whole population. Roman letters describe your sample. Nearly every mistake on an exam is using a sample formula where the question asked about a population, or the other way round. Check the letter first, every time.

Greek vs Roman lettersPOPULATION — every single one• μ (mu) is the mean• σ (sigma) is the standarddeviation• p is the proportion• N is how many there are• You almost never know theseSAMPLE — the ones you measured• x̄ (x-bar) is the mean• s is the standard deviation• p̂ (p-hat) is the proportion• n is how many you measured• These are what you calculate
The letter tells you which group you are talking about. Greek letters are parameters you are trying to estimate; Roman letters are statistics you actually measured.
SymbolSay itMeans
μmewPopulation mean — the average if you could measure everyone
x-barSample mean — the average of the ones you measured
σsigmaPopulation standard deviation
sessSample standard deviation
ppeePopulation proportion (a fraction of the group)
p-hatSample proportion
Σsum“Add all of these up”
nenSample size — how many you measured
σstandard errorHow much sample means bounce around

📏 Centre: where the middle is

📈 Mean (the average)

x̄ = Σx / n    μ = Σx / N

Add every value, divide by how many there are.

Use it when the data is roughly symmetric with no wild outliers.

Example. Five patients wait 12, 15, 9, 22 and 17 minutes. Σx = 75, n = 5, so x̄ = 75 / 5 = 15 minutes.

One extreme value drags the mean with it. One 300-minute wait would push that mean to 72 minutes, which describes nobody.

⚖️ Median (the middle one)

Sort the data. Median = the middle value

Odd n → the single middle value, at position (n+1)/2.
Even n → the average of the two middle values.

Use it when the data is skewed or has outliers — length of stay, income, wait times. This is why hospitals report median length of stay.

Example. 9, 12, 15, 17, 22 → median is 15. Add a 300 and you get 9, 12, 15, 17, 22, 300 → median is (15+17)/2 = 16. The mean would have jumped to 62.5. The median barely moved.

🏆 Mode (the most common)

Mode = the value that appears most often

Use it for categories, where a mean makes no sense. The most common blood type on your unit, the most frequent admitting diagnosis.

Data can have no mode, one mode, or two (bimodal). Bimodal usually means two different groups got mixed together — worth noticing.

⚖️ Weighted mean

w = Σ(w·x) / Σw

Use it when some values count more than others — this is exactly how your course grade is calculated.

Example. Exams 60% at 88, homework 20% at 95, final 20% at 80.
(0.6·88 + 0.2·95 + 0.2·80) / 1 = 52.8 + 19 + 16 = 87.8

Mean or median?USE THE MEAN when…• the shape is roughlysymmetric• there are no wild outliers• you need it for a laterformula (SD, z, t)USE THE MEDIAN when…• the data is skewed• there are outliers• it is length of stay, waittime, income
The mean feeds every later formula, but it is only honest when the data is symmetric.

📐 Spread: how scattered it is

📏 Range

Range = highest − lowest

Quick, but it uses only two numbers and both are the most extreme ones, so a single strange value ruins it.

📊 Standard deviation — the big one

s = √[ Σ(x − x̄)² / (n − 1) ]σ = √[ Σ(x − μ)² / N ]

Roughly: the average distance from the mean. Small s means everyone is bunched near the average; big s means they are spread out.

The n − 1 matters. Sample formulas divide by n − 1, population formulas divide by N. Dividing by the smaller number makes s slightly bigger, which corrects for a sample under-guessing the true spread.

How to do it by hand:

Standard deviation, step by step1Find the meanAdd the values, divide byn.2SubtractTake the mean away fromeach value. Some gonegative.3Square each oneThis kills the minus signs.4Add them upThat total is Σ(x − x̄)².5DivideBy n − 1 for a sample. Thisis the variance, s².6Square rootThat is s, back in theoriginal units.
Six steps, in order. The variance s² is just this stopped one step early — which is why variance is always in squared units, like "minutes squared".

📑 Variance

s² = Σ(x − x̄)² / (n − 1)

The standard deviation before you square-root it. Its units are squared, so it is hard to picture — it is mostly a stepping stone to s.

💰 Coefficient of variation

CV = (s / x̄) × 100%

Use it to compare spread between things measured in different units. Is weight more variable than height? You cannot compare kilograms to centimetres directly, but you can compare their CVs.

Example. Systolic BP: x̄ = 120, s = 12 → CV = 10%. Potassium: x̄ = 4.0, s = 0.4 → CV = 10%. Equally variable, relative to their own size.

🔍 IQR and the outlier rule

IQR = Q3 − Q1Outlier if x < Q1 − 1.5·IQR or x > Q3 + 1.5·IQR

The IQR is the spread of the middle half of the data, so outliers cannot touch it. The 1.5·IQR rule is the standard test for whether a value is a genuine outlier.

Example. Q1 = 12, Q3 = 20 → IQR = 8. Fences: 12 − 12 = 0 and 20 + 12 = 32. A stay of 40 days is an outlier; a stay of 30 is not.

Five-number summarymin4Q112med16Q320max28out40
The box holds the middle 50% (Q1 to Q3). The line inside is the median. The red dot is past Q3 + 1.5·IQR, so it counts as an outlier.

📍 Position: where one value sits

⭐ z-score — the most useful formula in the course

z = (x − μ) / σ    z = (x − x̄) / s

How many standard deviations a value sits from the mean. Positive is above, negative is below.

It turns any measurement into a common scale, so you can compare a blood pressure to a lab value to an exam score.

Example. Sodium 148 where μ = 140 and σ = 4.
z = (148 − 140) / 4 = +2.0 — two standard deviations high, which is roughly the top 2.5% of people.

Rule of thumb: |z| under 2 is ordinary. |z| over 3 is genuinely unusual.

🧮 Live: z-score calculator

Type a value, the mean and the standard deviation.

What a z-score means-3-2-10+1+2+3bottom 2.5%averagetop 2.5%
z counts standard deviations from the mean. Almost everyone lands between −3 and +3.

📈 Percentile

Percentile of x = (values below x / n) × 100

The percent of the group that scored below you. The 90th percentile means 90% are below you — not that you got 90%.

Example. A child at the 25th percentile for weight weighs more than 25 of every 100 children the same age. That is normal, not a problem.

📐 Quartiles

Q1 = 25th percentile · Q2 = median · Q3 = 75th percentile

Q1 cuts off the bottom quarter, Q3 the top quarter. Together with the min and max they make the five-number summary that a box plot draws.

🎲 Probability

🎯 Basic probability

P(A) = ways A can happen / total ways

Always between 0 and 1. If you get a negative number or something above 1, you have made an arithmetic slip.

↺ Complement — the shortcut

P(not A) = 1 − P(A)

Use it whenever a question says “at least one”. Working out “at least one” directly means adding up many cases; the complement is one subtraction.

Example. P(at least one of 5 patients has the allergy) = 1 − P(none of them do).

➕ Addition rule (“or”)

P(A or B) = P(A) + P(B) − P(A and B)

You subtract the overlap so you do not count it twice. If A and B cannot both happen (mutually exclusive) the overlap is 0 and it is just P(A) + P(B).

Example. 40% have hypertension, 25% have diabetes, 10% have both.
P(either) = 0.40 + 0.25 − 0.10 = 0.55

✖ Multiplication rule (“and”)

Independent: P(A and B) = P(A) × P(B)Dependent: P(A and B) = P(A) × P(B | A)

Independent means the first result does not change the second — two different patients. Dependent means it does — drawing two cards without putting the first back.

🔑 Conditional probability

P(A | B) = P(A and B) / P(B)

Read the bar as “given that”. P(A | B) is the probability of A once you already know B happened.

This is what sensitivity and specificity are: sensitivity = P(test positive | disease present).

Which probability rule?1Does the question say "or"?Add, then subtract theoverlap.2Does it say "and"?Multiply. Ask whether thesecond depends on thefirst.3Does it say "at least one"?Use 1 minus the probabilityof none.4Does it say "given that"?Conditional: divide by theprobability of what youwere told.
The wording of the question tells you the rule. Underline the joining word first.

🔢 Counting: permutations and combinations

Order matters: nPr = n! / (n − r)!Order does not: nCr = n! / [ r!(n − r)! ]

Ask: would swapping two people give a different answer? Yes → permutation (who is charge nurse vs who is float). No → combination (which 3 nurses are on the committee).

Example. Choosing 3 nurses from 8 for a committee: 8C3 = 8! / (3!·5!) = 56 ways.

🎲 Binomial distribution

P(X = k) = nCk · p^k · (1 − p)^(n − k)mean = np  ·  SD = √[np(1 − p)]

Use it when all four are true: a fixed number of trials, each is pass/fail, the probability is the same each time, and the trials are independent.

Example. A drug works for 80% of patients. In 10 patients, the expected number helped is np = 10 × 0.8 = 8, with SD = √(10 × 0.8 × 0.2) = 1.26.

n = 10, p = 0.80.000.150.30345678910P(X = k)
The tallest bar sits at np = 8, exactly where the mean formula says it should. Bars below 3 are too small to see.

🔮 The normal curve and sampling

⭐ The empirical rule (68–95–99.7)

68% within 1 SD · 95% within 2 SD · 99.7% within 3 SD

Worth memorising — it answers a lot of questions without any calculation.

Example. Adult heart rate μ = 72, σ = 8. About 95% of people fall between 72 − 16 = 56 and 72 + 16 = 88.

68% sit within one SD−2σ−1σμ+1σ+2σ
The shaded middle is 68% of everyone. Widen to ±2σ and you have 95%.

🧮 Live: area under the normal curve

This does what a z-table does, without the table.

📏 Standard error — not the same as SD

SE = σ / √n    SE = s / √n

The SD describes how spread out the people are. The standard error describes how much the sample mean bounces around. Mixing these two up is the single most common error in this half of the course.

Because you divide by √n, bigger samples give a smaller SE — more data, steadier estimate. To halve the SE you need four times the sample.

Example. σ = 12, n = 36 → SE = 12 / 6 = 2.

Standard error as n growsn = 46n = 94n = 252.4n = 362n = 1001.2n = 1441
Each bar is σ/√n. The drop is steep at first and then flattens — going from 4 to 25 patients buys you far more than going from 100 to 144.

🌊 Central Limit Theorem

For n ≥ 30, the sample means form a normal curvecentred on μ, with spread σ/√n

Why the whole course works. Even if the thing you are measuring is skewed, the averages of big enough samples pile up into a normal curve. That is what lets you use z and t on almost anything.

n ≥ 30 is the usual cutoff. Below that you need the original data to be roughly normal.

🎯 Confidence intervals

⭐ The shape of every confidence interval

estimate ± (critical value × standard error)

Every interval in this course is that one sentence. Only the middle and right pieces change.

Building any confidence interval1Start at your estimateThe sample mean x̄, or thesample proportion p̂.2Find the critical valuet* if you are using s, z*if you somehow know σ.3Find the standard errors/√n for a mean,√[p̂(1−p̂)/n] for aproportion.4MultiplyCritical value × SE. Thatproduct is the margin oferror, E.5Go both waysEstimate − E is the lowend, estimate + E is thehigh end.
The same five steps whether it is a mean or a proportion. Only steps 2 and 3 change.

📊 Interval for a mean

x̄ ± t* · (s / √n)  with df = n − 1

Use t whenever you calculated s from your own data, which is nearly always. Use z only if the question hands you the population σ.

Example. 25 patients, x̄ = 7.2 days, s = 2.5. For 95%, df = 24 so t* = 2.064.
SE = 2.5/5 = 0.5, E = 2.064 × 0.5 = 1.03
Interval: 7.2 ± 1.03 = 6.17 to 8.23 days.

🧮 Live: confidence interval for a mean

Uses t and picks the right df for you.

📈 Interval for a proportion

p̂ ± z* · √[ p̂(1 − p̂) / n ]

Proportions always use z, never t.

Example. 48 of 200 readmitted, so p̂ = 0.24. For 95%, z* = 1.96.
SE = √(0.24 × 0.76 / 200) = 0.0302
E = 1.96 × 0.0302 = 0.0590.181 to 0.299, about 18% to 30%.

⚠️ What “95% confident” actually means

It is about the method, not this one interval. If you repeated the whole study 100 times, about 95 of the intervals you built would contain the true value.

It does not mean there is a 95% chance the true mean is in your interval. Your interval either contains it or it does not — you just cannot tell which.

📏 Margin of error, and how to shrink it

E = t* · (s / √n)

Three things make an interval narrower: a bigger sample, less variable data, or accepting less confidence (90% instead of 99%).

Higher confidence always costs width. A 99% interval is wider than a 95% one, because being more certain means casting a bigger net.

Critical value t* at df = 2490% confident1.7195% confident2.0699% confident2.8
More confidence means a bigger multiplier, so a wider interval. Confidence and precision pull against each other.

🧮 Sample size you need

n = (z* · σ / E)²    n = p̂(1 − p̂)(z*/E)²

Always round up, whatever the decimal. 24.1 people means you need 25.

If you have no idea what p̂ will be, use 0.5 — it gives the biggest answer, so you are safe.

🧮 Live: how many patients do I need?

For estimating a mean.

⚖️ Hypothesis tests

⭐ The test statistic, in one shape

test statistic = (what you got − what H₀ claims) / standard error

Every test below is that sentence. It asks: how many standard errors away from the claim did my sample land?

TestingFormulaUse when
A mean, σ knownz = (x̄ − μ₀) / (σ/√n)Rare — only if handed σ
A mean, σ unknownt = (x̄ − μ₀) / (s/√n)The usual case, df = n − 1
A proportionz = (p̂ − p₀) / √[p₀(1−p₀)/n]Counts and percentages
Running any hypothesis test1Write both hypothesesH₀ always has the equalssign. Hₐ is what you aretrying to show.2Pick αUsually 0.05. This is therisk of a false alarm youaccept.3Compute the statisticDifference divided bystandard error.4Find the p-valueThe chance of a result thisextreme if H₀ were true.5Compare and decidep ≤ α → reject H₀. p > α →fail to reject.6Say it in plain wordsAnswer the actual question,in context, with units.
The same six steps for every test in the course. Only step 3 changes.

🚫 The decision rule

p ≤ α → reject H₀  ·  p > α → fail to reject H₀

Say it as “if the p is low, the null must go”.

You never “accept” H₀ and you never “prove” anything. Not finding evidence is not the same as showing there is no effect.

A two-tailed test at α = 0.05−1.960+1.962.5%2.5%keep H₀
The two red tails are the rejection region. A two-tailed test splits α in half and puts 2.5% at each end.

⚠️ Type I and Type II errors

Type I = α = false alarm · Type II = β = missed it

Type I: you rejected H₀ when it was actually true. You claimed an effect that is not there.
Type II: you failed to reject H₀ when it was actually false. There was a real effect and you missed it.

Power = 1 − β is the chance of catching a real effect. A bigger sample raises power.

Nursing way to remember: Type I is telling a healthy patient they are sick. Type II is sending a sick patient home.

The two ways to be wrongTYPE I ERROR (α)• H₀ was true, you rejected it• A false alarm• You claim a drug works whenit does not• Lower α to reduce itTYPE II ERROR (β)• H₀ was false, you kept it• A miss• You call a working druguseless• Raise n to reduce it
Cutting one error raises the other, unless you collect more data.

💡 One tail or two?

Two-tailed when the question says different from, changed, not equal. Split α between both tails.

One-tailed when it says greater than, less than, improved, reduced. All of α goes in one tail.

Read the wording of Hₐ — that is what decides it.

📉 Correlation and regression

🔗 Correlation coefficient r

r = Σ(x − x̄)(y − ȳ) / √[ Σ(x − x̄)² · Σ(y − ȳ)² ]

Always between −1 and +1. The sign is the direction, the size is the strength.

Near 0 means no straight-line relationship. There could still be a curved one, which is why you always look at the scatterplot.

Reading r-3-2-10+1+2+3perfect −strong −nonestrong +perfect +
Marks sit at r = −1, −0.5, 0, +0.5, +1. Below about 0.3 either way, the relationship is weak.
BMI against systolic BPBMIsystolicr = 0.98
r = 0.98, a strong positive relationship. As BMI rises, systolic pressure tends to rise too — but this is not proof that one causes the other.

📐 The best-fit line

ŷ = a + bx    b = r · (sy / sx)a = ȳ − b·x̄

b is the slope: how much y changes for each 1-unit rise in x.
a is the intercept: the predicted y when x is 0 — often meaningless in real terms, but needed for the line.

ŷ (y-hat) is a prediction, not a real measurement.

Never predict outside the range of your data. A line fitted on BMIs of 19 to 35 says nothing about a BMI of 60.

📊 r², the coefficient of determination

r² = the fraction of the variation in y explained by x

Example. r = 0.8 → r² = 0.64, so 64% of the variation in y is explained by x and the other 36% is down to everything else.

Squaring kills the sign, so r² cannot tell you the direction — only r can.

⛔ Correlation is not causation

A strong r means two things move together. It does not tell you which causes which, or whether a third thing causes both.

Only a randomised controlled trial licenses a causal claim. An observational study, however big, does not.

🎯 Which formula do I need?

Start here1One value vs a group?Use z = (x − mean)/SD.2Describing a data set?Mean or median, then s,then the five-numbersummary.3Estimating with a range?Confidence interval:estimate ± t*·SE.4Testing a claim?Hypothesis test: (got −claimed)/SE, then thep-value.5Two measurements each?Correlation r, then theline ŷ = a + bx.6Counting successes out of n?Binomial, or a proportionif you want a percentage.
Match the question to a row, then jump to that section above.

🔍 The three questions that decide everything

1. Population or sample? Greek letters or Roman letters.
2. Do I know σ? Almost never — so use t, not z, for means.
3. Is it a mean or a proportion? Means use s/√n. Proportions use √[p(1−p)/n] and always z.

Before an exam, check these against your own notes. The formulas here follow the standard conventions your course uses, but if your instructor writes one differently, theirs is the one that gets marked.
MAT 300 · built from your own course files (the statistics study guide, the Desmos guide, the formula sheet and the final-exam study questions) with nursing examples. Not a substitute for the textbook — check any number against your own notes before an exam.