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.
Contents
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
- Probability lies between 0 and 1. (complement).
- Union: . For disjoint (mutually exclusive) events , so .
- Conditional probability: – the probability of given that has occurred.
- Independence: and are independent if . Disjoint events (with positive probability) are actually dependent, since one rules out the other.
- Bayes' formula: – used to flip the conditioning (e.g. from "test result given condition" to "condition given test result").
- Reliability: components in series require all of them to work: . Components in parallel require at least one to work: .
- Combinatorics: number of ways to choose out of regardless of order: . With order taken into account (permutations of out of ): .
How to solve the problems
- Identify what is being asked: union, intersection, complement, conditional probability or Bayes.
- Check whether the events are independent, disjoint or neither – that decides which formula applies.
- For reliability: sketch whether the components are in series, parallel or a combination.
- 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: . The probability that the alarm does not trigger is the complement: .
Common mistakes
- Believing that disjoint events are independent. They are actually strongly dependent: if one happens, the other cannot.
- Adding probabilities without subtracting the intersection when the events are not disjoint.
- Confusing series and parallel: series is weaker (everything must work), parallel is stronger (one is enough).
- Using combinations when order actually matters, or the other way around.
Concepts in this part
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
- Mean . Median: the middle value in sorted order. Mode: the value that occurs most often.
- Variance and standard deviation: , . Sample variance uses in the denominator: – this gives an unbiased estimator of the population variance (Bessel's correction).
- Normal distribution: symmetric bell shape. The 68–95–99.7 rule: about 68%, 95% and 99.7% of the probability lies within , and . z-score: .
- Binomial distribution : the number of successes in independent trials. , , .
- Poisson distribution: the number of events in a time interval with rate : .
- Exponential distribution: waiting time or lifetime with a constant rate: .
- Central limit theorem (CLT): the mean of many independent measurements becomes approximately normally distributed, regardless of the original distribution.
- Correlation : the strength of the linear relationship between two variables. Correlation is not the same as causation.
How to solve the problems
- Decide which kind of distribution the situation describes (number of successes → binomial, events per time → Poisson, continuous measurement → normal).
- Find the parameters ( or or ).
- Use the correct formula for what is asked: expectation, variance, the probability of a specific value, or the z-score.
- 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 , and : .
Common mistakes
- Using instead of in the sample variance (or the other way around for an entire population).
- Believing the mode is always unique – a data set can have several modes or none.
- Applying the normal distribution to data that is clearly not symmetric (e.g. lifetimes, which are often exponentially or Weibull distributed).
- Interpreting a high correlation as proof of causation.
Concepts in this part
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
- Hypothesis testing: (the null hypothesis, "no effect") is tested against . The p-value is the probability of a result at least as extreme, given that is true. Reject if the p-value is smaller than the significance level (often 0.05).
- One-tailed vs. two-tailed test: a two-tailed test checks deviations in both directions from ; a one-tailed test checks only one direction (e.g. "is the new method better", not "different").
- Type I error: rejecting a true (probability ). Type II error: retaining a false (probability ).
- Standard error: . Confidence interval for with known : ( for 95%). If is unknown, the -distribution is used with the sample's standard deviation instead – necessary especially for small samples.
- Linear regression: the slope . is the fraction of the variation in that the model explains (between 0 and 1).
- Risk = probability × consequence. FMEA (Failure Mode and Effects Analysis): a systematic review of possible failure modes, causes and consequences. ALARP: risk should be reduced as far as reasonably practicable.
- Reliability: (availability), (failure rate).
How to solve the problems
- Identify what is being tested (/) or which risk measure is being asked for.
- Find the necessary quantities: , (or ), , and possibly probability and consequence.
- Plug the numbers into the correct formula, and watch the units.
- Interpret the answer in context: is the p-value below ? Is the risk acceptable?
Example
You measure (hours) and (tonnes produced). Find the slope of the regression line. and . The deviations in : ; in : . The products sum to , and . The slope is .
Common mistakes
- Believing the p-value is the probability that is true. It is the probability of the data, given that is true.
- Using instead of when is unknown and the sample is small.
- Believing a confidence interval gets narrower with a higher confidence level – the opposite is true.
- Ranking risk by only probability or only consequence, instead of the product of the two.
Concepts in this part
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
- The regression line is the line with the smallest possible sum of squared deviations (least squares).
- The slope and the intercept are computed from the means and :
- The correlation coefficient lies between and . Close to : strong positive relationship. Close to : strong negative. Close to : no linear relationship.
- Coefficient of determination : the share of the variation in explained by the line. gives , i.e. 81 %.
- Residual: measured value minus the value from the line, .
How to solve the problems
- Compute and .
- Make a table with , , their product and the square.
- Add up the columns and compute , then .
- Insert in to predict.
Example
The points , , and .
- and .
- and .
- and .
- The line is . For it predicts .
Common mistakes
- Believing that correlation means cause. Ice cream sales and drowning accidents are related because both increase in summer.
- Using the line far outside the measurements (extrapolation). The relationship need not hold there.
- Swapping and . The line for given is not the same as for given .
- Reading as "no relationship". There may be a strong but curved relationship.
Concepts in this part
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
.
Distributions: In a normal distribution, roughly how much of the probability lies within ?
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 is true
A low p-value means the data fit poorly.
Regression and correlation: Two measured quantities have correlation coefficient . What does it mean?
Answer: A strong negative linear relationship: when one increases, the other decreases
close to 1 means the points lie close to a straight line. The minus sign means the line slopes downwards.
Matches these university courses
The content covers the syllabus found in engineering degrees, for example:
- MEK2200 (OsloMet)
- TMA4240 (NTNU)
- STAT100 (NMBU)