Module 2 · 10 min read · Free chapter
Probability and statistics for engineers
Probability measures how likely an event is, from 0 to 1. Bayes' theorem updates a probability when new evidence arrives. Engineers use the binomial distribution for pass-fail counts, Poisson for rare events like defects, normal for measurement errors and exponential for time to failure, and regression to fit lines to data.
Start from zero: measuring uncertainty
A steel plant tests cubes from every batch, but no two cubes give exactly the same strength. A transformer fails once in a while, a data packet is lost now and then, and rainfall changes every year. Engineers cannot remove this randomness, but they can measure it and design for it. Probability is the language for doing that.
The basic set-up. An experiment has outcomes, and the set of all outcomes is the sample space . An event is a set of outcomes, such as "the die shows an even number". When all outcomes are equally likely, .
Three rules carry most of the subject.
- Every probability lies between 0 and 1, and .
- , which is often the easiest way to find "at least one".
- , because the overlap is counted twice otherwise.
Conditional probability narrows the sample space. is the chance of once we know has happened. and are independent when knowing one does not change the other, that is .
Why it matters. Probability appears in every GATE paper, usually as one or two quick questions. It also underlies reliability, quality control, signal noise, queueing in networks and machine learning.
Counting and combining events
Many exam questions are really counting questions. The number of ways to arrange items out of in order is . The number of ways to choose items when order does not matter is .
Worked example. A box has 6 good and 4 faulty fuses, and two are drawn without replacement. The chance that both are good is . The same answer comes from the multiplication rule, .
The multiplication rule says . It lets you build a probability one step at a time, as in a tree diagram. For independent events it reduces to .
"At least one" problems. The chance that at least one of three independent pumps, each failing with probability 0.1, keeps working is . This is why critical systems use parallel backups.
Why it matters. Series and parallel reliability in machines, power systems and networks is just these rules. A series chain fails if any link fails, so its reliability is the product of each link's reliability.
Total probability and Bayes' theorem
Suppose a factory has three machines. A makes 50% of the bolts, B 30% and C 20%, and their defect rates are 1%, 2% and 3%. A bolt picked at random is defective. Which machine most likely made it?
Total probability first finds the overall defect rate. . Each term is "chance of the machine" times "chance of a defect from it".
Bayes' theorem then reverses the question. . Likewise and , so B and C are equally likely culprits even though A makes the most bolts.
Why Bayes was needed. We usually know how a cause produces an effect, such as the defect rate of each machine. In practice we see the effect and want the cause. Bayes' theorem was the first clear rule for turning into , and it now drives spam filters, medical tests and fault diagnosis.
The base-rate lesson. A test catches 90% of faulty parts and wrongly flags 5% of good ones, but only 1% of parts are faulty. Of all flagged parts, only about 15% are actually faulty. The rare condition is swamped by false alarms from the large good population.
Random variables, mean and variance
A random variable turns each outcome into a number, such as the number of faulty fuses in a box or the life of a bearing in hours. It is discrete if it takes separate values (0, 1, 2, …) and continuous if it takes any value in a range. A discrete variable has a probability mass function , and a continuous one has a probability density whose area over a range gives the probability.
The mean (expected value) is the long-run average. for discrete and for continuous . For a fair die, , a value the die can never show.
The variance measures spread. . The standard deviation has the same units as , which is why it is the number usually quoted.
Two handy rules. , and . Adding a constant shifts the centre but does not change the spread.
Mean, median and mode for data. The mean is the average, the median the middle value, and the mode the most frequent one. For moderately skewed data, an empirical rule gives .
The standard distributions
A handful of distributions describe most random things engineers meet. Learning their shapes and their mean and variance saves time in every paper.
Binomial . Count successes in independent trials, each with success chance . , with mean and variance . Example: the number of faulty items in a sample of 20 when 5% are faulty.
Poisson . Count rare events in a fixed time or space, such as calls per minute or flaws per metre of cable. , and its mean and variance are both . It is the limit of the binomial when is large and small, with .
Uniform on . Every value in the range is equally likely, with density . The mean is and the variance . Rounding errors are often modelled this way.
Exponential . This models the waiting time between Poisson events, such as the time to the next failure. Its density is , with mean and variance . It is memoryless: a part that has already run 100 hours has the same chance of lasting another 50 as a new one.
Normal . The bell curve arises whenever many small independent effects add up, as the central limit theorem shows. About 68% of values lie within , 95% within and 99.7% within . Convert to to use standard tables.
Correlation and regression
Often two quantities move together, such as concrete strength and curing days, or load and deflection. Correlation measures how strongly they move together in a straight-line way. Regression gives the best straight line to predict one from the other.
The correlation coefficient is , where . It always lies between and . A value of means a perfect rising line, a perfect falling line, and 0 no straight-line relation.
Regression lines. The line of on is , with slope . The line of on has slope . Both pass through the point of means , and , so takes the common sign of the two slopes.
Why least squares. The regression line minimises the sum of squared vertical errors. Squaring stops positive and negative errors from cancelling and gives a unique, easily computed line.
Descriptive lens: how ESE and state papers ask this
Descriptive papers ask you to set up a reliability or quality problem, apply Bayes' theorem step by step, or fit a distribution and use it to make a decision.
Our practice questions (not previous-year questions).
- A cable has on average 2 flaws per 100 m. Find the chance that a 50 m piece has no flaw, and the chance that it has at least two.
- Bulb life is normal with mean 1,200 hours and standard deviation 100 hours. What share of bulbs last more than 1,400 hours?
- Explain why a test with high accuracy can still give mostly false alarms for a rare fault, using a numerical example.
Answer plan for question 1.
- First, scale the rate: flaw per 50 m.
- Next, .
- Then , so .
- Finally, state the Poisson assumption that flaws occur independently and at a steady average rate.
Quick revision
- , and .
- Independent means ; exclusive means .
- Total probability adds , and Bayes divides one term by that total.
- , and .
- Binomial: mean , variance . Poisson: mean = variance = .
- Uniform: mean , variance . Exponential: mean , memoryless.
- Normal: 68-95-99.7 within , , , and .
- lies in , , and both regression lines pass through .