Achievable logoAchievable logo
FE Civil
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Exam catalog
Mountain with a flag at the peak
Textbook
Introduction
1. Mathematics
2. Combinatorics, probability and statistics
2.1 Combinatorics and probability
2.2 Statistics
3. Engineering economics
4. Statics
5. Materials
6. Dynamics
7. Mechanics of materials
8. Fluid mechanics
9. Soil mechanics
10. Structural engineering
11. Concrete structure design
12. Water resources engineering
13. Environmental engineering
14. Transportation engineering
15. Surveying, construction, ethics and professional practice
16. Wrapping up
(change me)
Achievable logoAchievable logo
2.2 Statistics
Achievable FE Civil
2. Combinatorics, probability and statistics
Our FE Civil course is currently in development and is a work-in-progress.

Statistics

9 min read
Font
Discuss
Share
Feedback

This chapter covers the following topics:

  • Dispersion, mean, median, and mode
  • Probability density function (PDF)
  • Cumulative distribution function (CDF)
  • Binomial distribution
  • Normal distribution (Gaussian distribution)
  • t-distribution
  • Chi-square (χ2) distribution
  • Gamma distribution
  • Hypothesis testing
  • Linear regression and goodness of fit
  • Distribution functions and tables

Dispersion, mean, median, and mode

If X1​,X2​,…,Xn​ represent the values of a random sample of n items or observations, the arithmetic mean of these items or observations, denoted by X, is defined as

X=n1​(X1​+X2​+⋯+Xn​)=n1​i=1∑n​Xi​

X→μ for sufficiently large values of n

The weighted arithmetic mean is

X=∑wi​∑wi​Xi​​

where

Xi​=value of the ith observation

and

wi​=weight applied to Xi​

The variance of the population is the arithmetic mean of the squared deviations from the population mean. If μ is the arithmetic mean of a discrete population of size N, the population variance is defined by

σ2=N1​[(X1​−μ)2+(X2​−μ)2+⋯+(XN​−μ)2]

σ2=N1​i=1∑N​(Xi​−μ)2

Standard deviation formulas (assuming statistical independence) are

σpopulation​=N1​∑(Xi​−μ)2​

σsum​=σ12​+σ22​+⋯+σn2​​

σseries​=σn​

σmean​=n​σ​

The sample variance is

s2=n−11​i=1∑n​(Xi​−X)2

The sample standard deviation is

s=n−11​i=1∑n​(Xi​−X)2​

The sample coefficient of variation is

CV=Xs​

The sample geometric mean is

nX1​X2​X3​⋯Xn​​

The sample root-mean-square value is

n1​∑Xi2​​

When the discrete data are rearranged in increasing order and n is odd, the median is the value of the

(2n+1​)th

item.

When n is even, the median is the average of the

(2n​)th

and

(2n​+1)th

items.

The mode of a set of data is the value that occurs with the greatest frequency. The sample range R is the largest sample value minus the smallest sample value.

Probability density function (PDF)

A probability density function (PDF) describes how probability is distributed across values of a continuous random variable. The PDF itself is not a probability; probabilities come from areas under the curve.

  • The PDF is denoted by f(x).

  • The total area under the curve is 1:

∫−∞∞​f(x)dx=1

  • The probability that X lies in the interval [a,b] is the area under f(x) from a to b:

P(a≤X≤b)=∫ab​f(x)dx

Example: PDF of the standard normal distribution:

f(x)=2π​1​e−x2/2

Cumulative distribution function (CDF)

The cumulative distribution function (CDF) gives the probability that a random variable X is less than or equal to a value x. You can think of it as “accumulating” probability from the far left up to x.

F(x)=P(X≤x)=∫−∞x​f(t)dt

Properties:

  • limx→−∞​F(x)=0
  • limx→∞​F(x)=1

Example: If f(x)=2x for 0<x<1, then:

F(x)=∫0x​2tdt=x2

Binomial distribution

The binomial distribution models the number of successes in n independent Bernoulli trials, where each trial has:

  • two outcomes (success/failure)
  • the same probability of success, p

PMF (probability mass function):

P(X=k)=(kn​)pk(1−p)n−k,k=0,1,...,n

  • Mean: μ=np
  • Variance: σ2=np(1−p)

Example: If n=5 and p=0.6, then the probability of 3 successes is:

P(X=3)=(35​)(0.6)3(0.4)2=10⋅0.216⋅0.16=0.3456

Normal distribution (Gaussian distribution)

The normal distribution is a symmetric, bell-shaped distribution used widely in statistics.

PDF:

f(x)=σ2π​1​e−2σ2(x−μ)2​

  • μ: mean
  • σ: standard deviation

Standard normal distribution: μ=0, σ=1

Example: Human height, IQ scores, etc.

t-distribution

The t-distribution is commonly used when the population standard deviation is unknown and the sample size is small.

PDF:

f(t)=νπ​Γ(2ν​)Γ(2ν+1​)​(1+νt2​)−2ν+1​

  • ν: degrees of freedom
  • Mean: 0
  • Variance: ν−2ν​ for ν>2

Example: Used in the t-test for comparing sample means.

Chi-square (χ2) distribution

The chi-square distribution is often used in hypothesis testing involving variance and categorical data.

If Z1​,Z2​,...,Zk​ are independent standard normal variables, then:

χ2=Z12​+Z22​+⋯+Zk2​

PDF:

f(x;k)=2k/2Γ(k/2)1​xk/2−1e−x/2,x>0

  • Mean: μ=k
  • Variance: σ2=2k

Gamma distribution

The gamma distribution is a continuous distribution with two parameters: shape α and rate β (or scale θ=1/β).

PDF:

f(x;α,β)=Γ(α)βα​xα−1e−βx,x>0

  • Mean: μ=βα​
  • Variance: σ2=β2α​

Example: Time until the α-th event in a Poisson process.

Hypothesis testing

Hypothesis testing is a statistical method for using sample data to make a decision about a population parameter.

Steps in hypothesis testing

  1. State the hypotheses:

    • Null Hypothesis: H0​ (no effect or no difference)
    • Alternative Hypothesis: H1​ (an effect or difference exists)
  2. Choose significance level:

    • Denoted by α (commonly 0.05)
  3. Compute test statistic:

    • For a population mean with known standard deviation:

Z=σ/n​Xˉ−μ0​​

  1. Determine P-value:

    • P-value: Probability of observing a value as extreme as the test statistic under H0​.
  2. Make a decision:

    • If P-value<α → Reject H0​
    • If P-value≥α → Fail to reject H0​

Example

Scenario:

A bottling company claims the mean soda volume is 500 ml. A sample of 36 bottles has:

  • Sample mean: Xˉ=497
  • Population standard deviation: σ=5
  • Significance level: α=0.05

Step 1: Hypotheses

  • H0​:μ=500
  • H1​:μ=500 (Two-tailed test)

Step 2: Test statistic

Given:

  • Xˉ=497, μ0​=500, σ=5, n=36

Z=5/36​497−500​=0.833−3​≈−3.60

Step 3: P-value

Using Z-tables:

  • P-value=2×P(Z<−3.60)
  • P-value≈2×0.00016=0.00032

Step 4: Decision

Since:

  • 0.00032<0.05 → Reject H0​

Conclusion: There is strong evidence that the mean volume is not 500 ml.

Confidence interval (CI)

To construct a 95% CI for the mean:

Xˉ±Zα/2​⋅n​σ​

With:

  • Xˉ=497, Z0.025​=1.96, σ=5, n=36

497±1.96⋅36​5​=497±1.633

⇒CI=[495.37,498.63]

Since 500 is not in the interval, we again reject H0​.

Type I and Type II errors

Error type Description Symbol Consequence
Type I Rejecting H0​ when it’s true α False positive
Type II Failing to reject H0​ when it’s false β False negative

Power of the test:

  • Power=1−β
  • It is the probability of correctly rejecting a false H0​.

Linear regression and goodness of fit

Linear regression models the relationship between a dependent variable y and an independent variable x using a line plus an error term:

y=a+bx+ε

Where:

  • y: dependent variable
  • x: independent variable
  • a: intercept of the regression line
  • b: slope of the regression line
  • ε: error term

Least squares method

The least squares method chooses the line that minimizes the sum of squared differences between observed values and predicted values.

Formulas for best fit line:

Given data points (x1​,y1​),(x2​,y2​),…,(xn​,yn​), the slope b and intercept a are calculated as:

b=n∑xi2​−(∑xi​)2n∑xi​yi​−∑xi​∑yi​​

a=yˉ​−bxˉ

Where:

  • xˉ=n1​∑xi​
  • yˉ​=n1​∑yi​

Example

Given data:
x y
1 2
2 3
3 5
4 4
5 6
Step 1: Compute sums

∑x=15,∑y=20,∑x2=55,∑xy=69,n=5

Step 2: Compute slope and intercept

b=5(55)−(15)25(69)−(15)(20)​=275−225345−300​=5045​=0.9

a=yˉ​−bxˉ=520​−0.9⋅515​=4−0.9⋅3=1.3

Final regression line:

y=1.3+0.9x

Goodness of fit

Sample correlation coefficient R

The correlation coefficient R measures the strength and direction of the linear relationship:

R=[n∑xi2​−(∑xi​)2][n∑yi2​−(∑yi​)2]​n∑xi​yi​−∑xi​∑yi​​

Given ∑y2=90:

R=[5(55)−152][5(90)−202]​5(69)−(15)(20)​=2500​45​=5045​=0.9

Coefficient of determination R2

The coefficient of determination shows the proportion of variance in y explained by the model:

R2=(R)2=(0.9)2=0.81

Interpretation: 81% of the variation in y is explained by the linear regression model.

Distribution functions and tables

Please refer to the FE Handbook for detailed distribution functions and tables.

Probability density function (PDF)

  • Describes probability distribution for continuous variables
  • Area under f(x) over interval [a,b] gives P(a≤X≤b)
  • Total area under curve is 1

Cumulative distribution function (CDF)

  • F(x)=P(X≤x)=∫−∞x​f(t)dt
  • F(x) increases from 0 (as x→−∞) to 1 (as x→∞)
  • Represents accumulated probability up to x

Binomial distribution

  • Discrete distribution: number of successes in n independent trials, probability p
  • PMF: P(X=k)=(kn​)pk(1−p)n−k
  • Mean: μ=np; Variance: σ2=np(1−p)

Normal distribution (Gaussian distribution)

  • Continuous, symmetric, bell-shaped; defined by mean μ and standard deviation σ
  • PDF: f(x)=σ2π​1​e−2σ2(x−μ)2​
  • Standard normal: μ=0, σ=1

t-distribution

  • Used for small samples, unknown population standard deviation
  • PDF depends on degrees of freedom ν
  • Mean: 0; Variance: ν/(ν−2) for ν>2

Chi-square (χ2) distribution

  • Sum of squares of k independent standard normal variables
  • PDF: f(x;k)=2k/2Γ(k/2)1​xk/2−1e−x/2, x>0
  • Mean: k; Variance: 2k

Gamma distribution

  • Continuous; parameters: shape α, rate β
  • PDF: f(x;α,β)=Γ(α)βα​xα−1e−βx, x>0
  • Mean: μ=α/β; Variance: σ2=α/β2

Hypothesis testing

  • Uses sample data to infer about population parameters
  • Steps:
    1. State H0​ (null) and H1​ (alternative)
    2. Choose significance level α
    3. Compute test statistic (e.g., Z or t)
    4. Determine P-value and compare to α
    5. Decision: reject or fail to reject H0​
  • Errors:
    • Type I: Reject H0​ when true (α)
    • Type II: Fail to reject H0​ when false (β)
    • Power: 1−β
  • Confidence interval for mean: Xˉ±Zα/2​⋅n​σ​

Linear regression and goodness of fit

  • Models relationship: y=a+bx+ε
  • Least squares method minimizes squared residuals
    • Slope: b=n∑xi2​−(∑xi​)2n∑xi​yi​−∑xi​∑yi​​
    • Intercept: a=yˉ​−bxˉ
  • Goodness of fit:
    • Correlation coefficient R: strength/direction of linear relationship
    • Coefficient of determination R2: proportion of variance explained by model

Distribution functions and tables

  • Use FE Handbook for detailed tables and distribution functions
  • Tables provide critical values and probabilities for standard distributions

Sign up for free to take 5 quiz questions on this topic

Previous
Next  | 3. Engineering economics
All rights reserved ©2016 - 2026 Achievable, Inc.

Statistics

This chapter covers the following topics:

  • Dispersion, mean, median, and mode
  • Probability density function (PDF)
  • Cumulative distribution function (CDF)
  • Binomial distribution
  • Normal distribution (Gaussian distribution)
  • t-distribution
  • Chi-square (χ2) distribution
  • Gamma distribution
  • Hypothesis testing
  • Linear regression and goodness of fit
  • Distribution functions and tables

Dispersion, mean, median, and mode

If X1​,X2​,…,Xn​ represent the values of a random sample of n items or observations, the arithmetic mean of these items or observations, denoted by X, is defined as

X=n1​(X1​+X2​+⋯+Xn​)=n1​i=1∑n​Xi​

X→μ for sufficiently large values of n

The weighted arithmetic mean is

X=∑wi​∑wi​Xi​​

where

Xi​=value of the ith observation

and

wi​=weight applied to Xi​

The variance of the population is the arithmetic mean of the squared deviations from the population mean. If μ is the arithmetic mean of a discrete population of size N, the population variance is defined by

σ2=N1​[(X1​−μ)2+(X2​−μ)2+⋯+(XN​−μ)2]

σ2=N1​i=1∑N​(Xi​−μ)2

Standard deviation formulas (assuming statistical independence) are

σpopulation​=N1​∑(Xi​−μ)2​

σsum​=σ12​+σ22​+⋯+σn2​​

σseries​=σn​

σmean​=n​σ​

The sample variance is

s2=n−11​i=1∑n​(Xi​−X)2

The sample standard deviation is

s=n−11​i=1∑n​(Xi​−X)2​

The sample coefficient of variation is

CV=Xs​

The sample geometric mean is

nX1​X2​X3​⋯Xn​​

The sample root-mean-square value is

n1​∑Xi2​​

When the discrete data are rearranged in increasing order and n is odd, the median is the value of the

(2n+1​)th

item.

When n is even, the median is the average of the

(2n​)th

and

(2n​+1)th

items.

The mode of a set of data is the value that occurs with the greatest frequency. The sample range R is the largest sample value minus the smallest sample value.

Probability density function (PDF)

A probability density function (PDF) describes how probability is distributed across values of a continuous random variable. The PDF itself is not a probability; probabilities come from areas under the curve.

  • The PDF is denoted by f(x).

  • The total area under the curve is 1:

∫−∞∞​f(x)dx=1

  • The probability that X lies in the interval [a,b] is the area under f(x) from a to b:

P(a≤X≤b)=∫ab​f(x)dx

Example: PDF of the standard normal distribution:

f(x)=2π​1​e−x2/2

Cumulative distribution function (CDF)

The cumulative distribution function (CDF) gives the probability that a random variable X is less than or equal to a value x. You can think of it as “accumulating” probability from the far left up to x.

F(x)=P(X≤x)=∫−∞x​f(t)dt

Properties:

  • limx→−∞​F(x)=0
  • limx→∞​F(x)=1

Example: If f(x)=2x for 0<x<1, then:

F(x)=∫0x​2tdt=x2

Binomial distribution

The binomial distribution models the number of successes in n independent Bernoulli trials, where each trial has:

  • two outcomes (success/failure)
  • the same probability of success, p

PMF (probability mass function):

P(X=k)=(kn​)pk(1−p)n−k,k=0,1,...,n

  • Mean: μ=np
  • Variance: σ2=np(1−p)

Example: If n=5 and p=0.6, then the probability of 3 successes is:

P(X=3)=(35​)(0.6)3(0.4)2=10⋅0.216⋅0.16=0.3456

Normal distribution (Gaussian distribution)

The normal distribution is a symmetric, bell-shaped distribution used widely in statistics.

PDF:

f(x)=σ2π​1​e−2σ2(x−μ)2​

  • μ: mean
  • σ: standard deviation

Standard normal distribution: μ=0, σ=1

Example: Human height, IQ scores, etc.

t-distribution

The t-distribution is commonly used when the population standard deviation is unknown and the sample size is small.

PDF:

f(t)=νπ​Γ(2ν​)Γ(2ν+1​)​(1+νt2​)−2ν+1​

  • ν: degrees of freedom
  • Mean: 0
  • Variance: ν−2ν​ for ν>2

Example: Used in the t-test for comparing sample means.

Chi-square (χ2) distribution

The chi-square distribution is often used in hypothesis testing involving variance and categorical data.

If Z1​,Z2​,...,Zk​ are independent standard normal variables, then:

χ2=Z12​+Z22​+⋯+Zk2​

PDF:

f(x;k)=2k/2Γ(k/2)1​xk/2−1e−x/2,x>0

  • Mean: μ=k
  • Variance: σ2=2k

Gamma distribution

The gamma distribution is a continuous distribution with two parameters: shape α and rate β (or scale θ=1/β).

PDF:

f(x;α,β)=Γ(α)βα​xα−1e−βx,x>0

  • Mean: μ=βα​
  • Variance: σ2=β2α​

Example: Time until the α-th event in a Poisson process.

Hypothesis testing

Hypothesis testing is a statistical method for using sample data to make a decision about a population parameter.

Steps in hypothesis testing

  1. State the hypotheses:

    • Null Hypothesis: H0​ (no effect or no difference)
    • Alternative Hypothesis: H1​ (an effect or difference exists)
  2. Choose significance level:

    • Denoted by α (commonly 0.05)
  3. Compute test statistic:

    • For a population mean with known standard deviation:

Z=σ/n​Xˉ−μ0​​

  1. Determine P-value:

    • P-value: Probability of observing a value as extreme as the test statistic under H0​.
  2. Make a decision:

    • If P-value<α → Reject H0​
    • If P-value≥α → Fail to reject H0​

Example

Scenario:

A bottling company claims the mean soda volume is 500 ml. A sample of 36 bottles has:

  • Sample mean: Xˉ=497
  • Population standard deviation: σ=5
  • Significance level: α=0.05

Step 1: Hypotheses

  • H0​:μ=500
  • H1​:μ=500 (Two-tailed test)

Step 2: Test statistic

Given:

  • Xˉ=497, μ0​=500, σ=5, n=36

Z=5/36​497−500​=0.833−3​≈−3.60

Step 3: P-value

Using Z-tables:

  • P-value=2×P(Z<−3.60)
  • P-value≈2×0.00016=0.00032

Step 4: Decision

Since:

  • 0.00032<0.05 → Reject H0​

Conclusion: There is strong evidence that the mean volume is not 500 ml.

Confidence interval (CI)

To construct a 95% CI for the mean:

Xˉ±Zα/2​⋅n​σ​

With:

  • Xˉ=497, Z0.025​=1.96, σ=5, n=36

497±1.96⋅36​5​=497±1.633

⇒CI=[495.37,498.63]

Since 500 is not in the interval, we again reject H0​.

Type I and Type II errors

Error type Description Symbol Consequence
Type I Rejecting H0​ when it’s true α False positive
Type II Failing to reject H0​ when it’s false β False negative

Power of the test:

  • Power=1−β
  • It is the probability of correctly rejecting a false H0​.

Linear regression and goodness of fit

Linear regression models the relationship between a dependent variable y and an independent variable x using a line plus an error term:

y=a+bx+ε

Where:

  • y: dependent variable
  • x: independent variable
  • a: intercept of the regression line
  • b: slope of the regression line
  • ε: error term

Least squares method

The least squares method chooses the line that minimizes the sum of squared differences between observed values and predicted values.

Formulas for best fit line:

Given data points (x1​,y1​),(x2​,y2​),…,(xn​,yn​), the slope b and intercept a are calculated as:

b=n∑xi2​−(∑xi​)2n∑xi​yi​−∑xi​∑yi​​

a=yˉ​−bxˉ

Where:

  • xˉ=n1​∑xi​
  • yˉ​=n1​∑yi​

Example

Given data:
x y
1 2
2 3
3 5
4 4
5 6
Step 1: Compute sums

∑x=15,∑y=20,∑x2=55,∑xy=69,n=5

Step 2: Compute slope and intercept

b=5(55)−(15)25(69)−(15)(20)​=275−225345−300​=5045​=0.9

a=yˉ​−bxˉ=520​−0.9⋅515​=4−0.9⋅3=1.3

Final regression line:

y=1.3+0.9x

Goodness of fit

Sample correlation coefficient R

The correlation coefficient R measures the strength and direction of the linear relationship:

R=[n∑xi2​−(∑xi​)2][n∑yi2​−(∑yi​)2]​n∑xi​yi​−∑xi​∑yi​​

Given ∑y2=90:

R=[5(55)−152][5(90)−202]​5(69)−(15)(20)​=2500​45​=5045​=0.9

Coefficient of determination R2

The coefficient of determination shows the proportion of variance in y explained by the model:

R2=(R)2=(0.9)2=0.81

Interpretation: 81% of the variation in y is explained by the linear regression model.

Distribution functions and tables

Please refer to the FE Handbook for detailed distribution functions and tables.

Key points

Probability density function (PDF)

  • Describes probability distribution for continuous variables
  • Area under f(x) over interval [a,b] gives P(a≤X≤b)
  • Total area under curve is 1

Cumulative distribution function (CDF)

  • F(x)=P(X≤x)=∫−∞x​f(t)dt
  • F(x) increases from 0 (as x→−∞) to 1 (as x→∞)
  • Represents accumulated probability up to x

Binomial distribution

  • Discrete distribution: number of successes in n independent trials, probability p
  • PMF: P(X=k)=(kn​)pk(1−p)n−k
  • Mean: μ=np; Variance: σ2=np(1−p)

Normal distribution (Gaussian distribution)

  • Continuous, symmetric, bell-shaped; defined by mean μ and standard deviation σ
  • PDF: f(x)=σ2π​1​e−2σ2(x−μ)2​
  • Standard normal: μ=0, σ=1

t-distribution

  • Used for small samples, unknown population standard deviation
  • PDF depends on degrees of freedom ν
  • Mean: 0; Variance: ν/(ν−2) for ν>2

Chi-square (χ2) distribution

  • Sum of squares of k independent standard normal variables
  • PDF: f(x;k)=2k/2Γ(k/2)1​xk/2−1e−x/2, x>0
  • Mean: k; Variance: 2k

Gamma distribution

  • Continuous; parameters: shape α, rate β
  • PDF: f(x;α,β)=Γ(α)βα​xα−1e−βx, x>0
  • Mean: μ=α/β; Variance: σ2=α/β2

Hypothesis testing

  • Uses sample data to infer about population parameters
  • Steps:
    1. State H0​ (null) and H1​ (alternative)
    2. Choose significance level α
    3. Compute test statistic (e.g., Z or t)
    4. Determine P-value and compare to α
    5. Decision: reject or fail to reject H0​
  • Errors:
    • Type I: Reject H0​ when true (α)
    • Type II: Fail to reject H0​ when false (β)
    • Power: 1−β
  • Confidence interval for mean: Xˉ±Zα/2​⋅n​σ​

Linear regression and goodness of fit

  • Models relationship: y=a+bx+ε
  • Least squares method minimizes squared residuals
    • Slope: b=n∑xi2​−(∑xi​)2n∑xi​yi​−∑xi​∑yi​​
    • Intercept: a=yˉ​−bxˉ
  • Goodness of fit:
    • Correlation coefficient R: strength/direction of linear relationship
    • Coefficient of determination R2: proportion of variance explained by model

Distribution functions and tables

  • Use FE Handbook for detailed tables and distribution functions
  • Tables provide critical values and probabilities for standard distributions

More from Combinatorics, probability and statistics

  • Combinatorics and probability