All courses › Statistics and Risk Analysis

Statistics and Risk Analysis: free practice, theory and problems

Probability theory gives you tools to handle uncertainty: how likely is it that a component fails, that a test gives the correct result, or that two events happen at the same time? As an engineer you use this for reliability calculations, quality control and risk assessment.

4 parts71 problems16 concepts explainedPractice examFree
Start practising for free →

Contents

  1. Probability
  2. Distributions
  3. Inference and risk
  4. Regression and correlation

1. Probability

What is it about?

Probability theory gives you tools to handle uncertainty: how likely is it that a component fails, that a test gives the correct result, or that two events happen at the same time? As an engineer you use this for reliability calculations, quality control and risk assessment.

Concepts and formulas

How to solve the problems

  1. Identify what is being asked: union, intersection, complement, conditional probability or Bayes.
  2. Check whether the events are independent, disjoint or neither – that decides which formula applies.
  3. For reliability: sketch whether the components are in series, parallel or a combination.
  4. For counting: decide whether the order matters (permutation) or not (combination).

Example

A fire alarm has two independent sensors in parallel, each with reliability 0.95 (probability of working when there is a fire). What is the probability that the alarm does NOT trigger? The system works if at least one sensor works: R=1−(1−0.95)(1−0.95)=1−0.052=1−0.0025=0.9975R = 1-(1-0.95)(1-0.95) = 1-0.05^2 = 1-0.0025 = 0.9975. The probability that the alarm does not trigger is the complement: 1−0.9975=0.00251-0.9975 = 0.0025.

Common mistakes

Independence is about one event not affecting the probability of the other – that is something completely different from the events not being able to happen at the same time.

Concepts in this part

Practise probability in the app →

2. Distributions

What is it about?

Data from measurements or processes vary. Probability distributions give a mathematical model of this variation, so you can compute probabilities, expected values and how reliable a measurement is. Measures of center (mean, median, mode) and spread (variance, standard deviation) summarize data; distributions such as the normal, binomial and Poisson distributions describe how random outcomes arise.

Concepts and formulas

How to solve the problems

  1. Decide which kind of distribution the situation describes (number of successes → binomial, events per time → Poisson, continuous measurement → normal).
  2. Find the parameters (n,pn,p or λ\lambda or μ,σ\mu,\sigma).
  3. Use the correct formula for what is asked: expectation, variance, the probability of a specific value, or the z-score.
  4. For the normal distribution: convert to a z-score before applying a probability rule.

Example

A machine produces parts where 8% are defective. You inspect 5 random parts. What is the probability of exactly 1 defective part? This is binomial with n=5n=5, p=0.08p=0.08 and k=1k=1: P(X=1)=(51)(0.08)1(0.92)4=5⋅0.08⋅0.7164≈0.2866P(X=1)=\binom{5}{1}(0.08)^1(0.92)^4 = 5\cdot 0.08\cdot 0.7164 \approx 0.2866.

Common mistakes

Always check which distribution fits the situation before you calculate – the right formula depends entirely on whether you are counting successes, events per time, or measuring something continuous.

Concepts in this part

Practise distributions in the app →

3. Inference and risk

What is it about?

Inference is about drawing conclusions about an entire population from a sample – for example whether a new process really gives better quality, or how confident you can be in a mean value. Risk analysis uses probability and consequence to prioritize which hazards are worth acting on. Both are about making decisions under uncertainty, backed by numbers instead of gut feeling.

Concepts and formulas

How to solve the problems

  1. Identify what is being tested (H0H_0/H1H_1) or which risk measure is being asked for.
  2. Find the necessary quantities: xˉ\bar x, σ\sigma (or ss), nn, and possibly probability and consequence.
  3. Plug the numbers into the correct formula, and watch the units.
  4. Interpret the answer in context: is the p-value below α\alpha? Is the risk acceptable?

Example

You measure x=2,4,6,8x=2, 4, 6, 8 (hours) and y=5,7,8,14y=5, 7, 8, 14 (tonnes produced). Find the slope of the regression line. xˉ=5\bar x=5 and yˉ=8.5\bar y=8.5. The deviations in xx: −3,−1,1,3-3,-1,1,3; in yy: −3.5,−1.5,−0.5,5.5-3.5,-1.5,-0.5,5.5. The products sum to 2828, and ∑(xi−xˉ)2=20\sum(x_i-\bar x)^2=20. The slope is b=28/20=1.4b=28/20=1.4.

Common mistakes

A small p-value means "the data fits H0H_0 poorly", not "H1H_1 is proven". And risk is always a product of two things: how likely, and how severe.

Concepts in this part

Practise inference and risk in the app →

4. Regression and correlation

What is it about?

You have measured two quantities, for example temperature and power consumption, and wonder whether they are related. Regression finds the straight line that fits the points best, so you can predict new values. Correlation is a single number that tells you how closely the points follow a straight line.

Concepts and formulas

b=∑(xi−xˉ)(yi−yˉ)∑(xi−xˉ)2,a=yˉ−b xˉb = \frac{\sum (x_i - \bar x)(y_i - \bar y)}{\sum (x_i - \bar x)^2}, \qquad a = \bar y - b\,\bar x
r=∑(xi−xˉ)(yi−yˉ)∑(xi−xˉ)2 ∑(yi−yˉ)2r = \frac{\sum (x_i-\bar x)(y_i-\bar y)}{\sqrt{\sum (x_i-\bar x)^2\,\sum (y_i-\bar y)^2}}

How to solve the problems

  1. Compute xˉ\bar x and yˉ\bar y.
  2. Make a table with xi−xˉx_i - \bar x, yi−yˉy_i - \bar y, their product and the square.
  3. Add up the columns and compute bb, then a=yˉ−bxˉa = \bar y - b\bar x.
  4. Insert xx in y^=a+bx\hat y = a + bx to predict.

Example

The points (1,2)(1, 2), (2,4)(2, 4), (3,5)(3, 5) and (4,7)(4, 7).

  1. xˉ=2.5\bar x = 2.5 and yˉ=4.5\bar y = 4.5.
  2. ∑(xi−xˉ)(yi−yˉ)=3.75+0.25+0.25+3.75=8\sum (x_i-\bar x)(y_i-\bar y) = 3.75 + 0.25 + 0.25 + 3.75 = 8 and ∑(xi−xˉ)2=5\sum (x_i-\bar x)^2 = 5.
  3. b=8/5=1.6b = 8/5 = 1.6 and a=4.5−1.6⋅2.5=0.5a = 4.5 - 1.6\cdot 2.5 = 0.5.
  4. The line is y^=0.5+1.6x\hat y = 0.5 + 1.6x. For x=5x = 5 it predicts y^=8.5\hat y = 8.5.

Common mistakes

Slope: b=∑(Δx Δy)/∑(Δx)2b = \sum(\Delta x\,\Delta y)/\sum(\Delta x)^2. The line always passes through (xˉ,yˉ)(\bar x, \bar y).

Concepts in this part

Practise regression and correlation in the app →

Example problems with solutions

Here are some of the problems in statistics and Risk Analysis. In the app, calculation problems get new numbers every time, so you can practise until it sticks – and take a graded practice exam before the real one.

Probability: What is the probability of rolling two sixes in a row with one die? (decimal)

Answer: 0.0278

1/36≈0.02781/36 \approx 0.0278.

Distributions: In a normal distribution, roughly how much of the probability lies within μ±2σ\mu\pm2\sigma?

Answer: 95 %

The 68–95–99.7 rule for ±1, ±2 and ±3σ.

Inference and risk: What is the p-value?

Answer: The probability of a result at least as extreme, given that H0H_0 is true

A low p-value means the data fit H0H_0 poorly.

Regression and correlation: Two measured quantities have correlation coefficient r=−0.95r = -0.95. What does it mean?

Answer: A strong negative linear relationship: when one increases, the other decreases

∣r∣|r| close to 1 means the points lie close to a straight line. The minus sign means the line slopes downwards.

Practise all the problems →

Matches these university courses

The content covers the syllabus found in engineering degrees, for example: