3.2 Parameter Estimation, Linear Regression, Correlation, and Queuing Models

Key Takeaways

  • The least-squares slope is b = [nΣxy − ΣxΣy] / [nΣx² − (Σx)²], and the fitted line always passes through (x̄, ȳ).

  • The coefficient of determination R² is the fraction of the variation in y explained by the regression line.

  • A correlation coefficient near ±1 shows a strong linear relationship, but correlation alone does not prove causation.

  • In an M/M/1 queue with arrival rate λ and service rate μ, utilization is ρ = λ/μ and must be below 1 for a stable queue.

  • Little's law L = λW links the average number in a system to the arrival rate and the average time in the system.

Last updated: October 2026

3.2 Parameter Estimation, Linear Regression, Correlation, and Queuing Models

The AMSTHC TOS area "Engineering Data Analysis" has five competencies:

  1. Describe data and data sets.
  2. Identify important discrete and continuous distributions.
  3. Estimate parameters.
  4. Interpret a linear regression equation.
  5. Apply stochastic processes and queuing models.

Section 3.1 covers descriptive statistics, the main distributions and confidence intervals. This section completes the area.


Estimating Parameters

A parameter describes a population, such as the true mean strength μ\mu of a concrete supply. A statistic computed from a sample estimates it.

ParameterPoint estimatorProperty
Mean μ\muSample mean xˉ\bar{x}Unbiased
Variance σ2\sigma^2s2=∑(xi−xˉ)2/(n−1)s^2 = \sum (x_i - \bar{x})^2/(n-1)Unbiased because of the n−1n - 1 divisor
Proportion ppp^=x/n\hat{p} = x/nUnbiased
Poisson rate λ\lambdaObserved count ÷ observation timeMaximum-likelihood estimate

An interval estimate adds a margin of error, xˉ±tα/2, n−1 s/n\bar{x} \pm t_{\alpha/2,\,n-1}\, s/\sqrt{n}. The sample size needed to estimate a mean within ±E\pm E at confidence 1−α1 - \alpha is:

n=(zα/2 σE)2n = \left(\frac{z_{\alpha/2}\,\sigma}{E}\right)^2

Example. Estimate mean daily traffic within ±200\pm 200 vehicles at 95% confidence when σ≈1,000\sigma \approx 1{,}000. Then n=(1.96×1,000/200)2=96.04n = (1.96 \times 1{,}000/200)^2 = 96.04, so count 97 days. Always round up.


Simple Linear Regression

To fit y^=a+bx\hat{y} = a + bx by least squares, minimize ∑(yi−y^i)2\sum (y_i - \hat{y}_i)^2:

b=n∑xy−∑x∑yn∑x2−(∑x)2,a=yˉ−bxˉb = \frac{n\sum xy - \sum x \sum y}{n\sum x^2 - \left(\sum x\right)^2}, \qquad a = \bar{y} - b\bar{x}

Because a=yˉ−bxˉa = \bar{y} - b\bar{x}, the line always passes through the point (xˉ,yˉ)(\bar{x}, \bar{y}).

Correlation coefficient:

r=n∑xy−∑x∑y[n∑x2−(∑x)2][n∑y2−(∑y)2],−1≤r≤1r = \frac{n\sum xy - \sum x \sum y}{\sqrt{\left[n\sum x^2 - (\sum x)^2\right]\left[n\sum y^2 - (\sum y)^2\right]}}, \qquad -1 \le r \le 1

Coefficient of determination: R2=r2R^2 = r^2 for simple linear regression. It is the fraction of the variation in yy explained by xx. The standard error of estimate is se=∑(yi−y^i)2/(n−2)s_e = \sqrt{\sum (y_i - \hat{y}_i)^2/(n - 2)}.

Worked example: strength versus curing age

Five concrete cylinder pairs give:

xx (age, days)37142128
yy (strength, MPa)1218232628

Sums: ∑x=73\sum x = 73, ∑y=107\sum y = 107, ∑xy=1,814\sum xy = 1{,}814, ∑x2=1,479\sum x^2 = 1{,}479, ∑y2=2,457\sum y^2 = 2{,}457, with n=5n = 5, xˉ=14.6\bar{x} = 14.6 and yˉ=21.4\bar{y} = 21.4.

b=5(1,814)−73(107)5(1,479)−732=9,070−7,8117,395−5,329=1,2592,066=0.609 MPa/dayb = \frac{5(1{,}814) - 73(107)}{5(1{,}479) - 73^2} = \frac{9{,}070 - 7{,}811}{7{,}395 - 5{,}329} = \frac{1{,}259}{2{,}066} = 0.609\text{ MPa/day}

a=yˉ−bxˉ=21.4−0.609(14.6)=12.50 MPaa = \bar{y} - b\bar{x} = 21.4 - 0.609(14.6) = 12.50\text{ MPa}

r=1,2592,066 [5(2,457)−1072]=1,2592,066×836=1,2591,314.2=0.958,R2=0.918r = \frac{1{,}259}{\sqrt{2{,}066\,[5(2{,}457) - 107^2]}} = \frac{1{,}259}{\sqrt{2{,}066 \times 836}} = \frac{1{,}259}{1{,}314.2} = 0.958, \qquad R^2 = 0.918

The line y^=12.50+0.609x\hat{y} = 12.50 + 0.609x explains about 92% of the variation in strength. As a check, the predicted strength at xˉ=14.6\bar{x} = 14.6 days is 12.50+0.609(14.6)=21.4 MPa=yˉ12.50 + 0.609(14.6) = 21.4\text{ MPa} = \bar{y}.

Tip

A computed correlation outside −1≤r≤1-1 \le r \le 1 always means one of the sums is wrong. Recompute ∑xy\sum xy and ∑y2\sum y^2 first; they are the sums most often mis-keyed.

Warning

Strength gain with age is really curved: it levels off. A straight line fits well over 3 to 28 days but should not be extrapolated to 90 days. Regression describes association within the data range; it does not prove cause or justify extrapolation.


Stochastic Processes and Arrivals

A stochastic process is a sequence of random events in time. Two models dominate engineering applications:

  • Poisson arrivals. Vehicles reaching a toll plaza, or trucks reaching a batch plant, arrive independently at an average rate λ\lambda. The number arriving in time tt is Poisson: P(n)=(λt)ne−λtn!P(n) = \dfrac{(\lambda t)^n e^{-\lambda t}}{n!}.
  • Exponential headways. The time between Poisson arrivals is exponential: P(h≥t)=e−λtP(h \ge t) = e^{-\lambda t}. This is the probability that a gap is long enough for a pedestrian or a merging driver.

Example. At λ=360\lambda = 360 vehicles/h =0.1= 0.1 veh/s, the probability of a gap of at least 8 s8\text{ s} is e−0.8=0.449e^{-0.8} = 0.449.

A Markov chain models systems that move between states with fixed transition probabilities. For example, a pavement section's condition rating moves from good to fair to poor from year to year. Multiplying a state vector by the transition matrix gives the next year's distribution.


Queuing Models (M/M/1)

An M/M/1 queue has Poisson arrivals at rate λ\lambda, exponential service at rate μ\mu, and one server. With utilization ρ=λ/μ<1\rho = \lambda/\mu < 1:

MeasureFormula
Probability system is emptyP0=1−ρP_0 = 1 - \rho
Probability of nn in systemPn=(1−ρ)ρnP_n = (1 - \rho)\rho^n
Average number in systemL=ρ1−ρ=λμ−λL = \dfrac{\rho}{1 - \rho} = \dfrac{\lambda}{\mu - \lambda}
Average number in queueLq=ρ21−ρL_q = \dfrac{\rho^2}{1 - \rho}
Average time in systemW=1μ−λW = \dfrac{1}{\mu - \lambda}
Average waiting time in queueWq=λμ(μ−λ)W_q = \dfrac{\lambda}{\mu(\mu - \lambda)}

Little's law, L=λWL = \lambda W and Lq=λWqL_q = \lambda W_q, holds for almost any queue in steady state.

Worked example: a toll booth

Cars arrive at λ=240\lambda = 240/h, and one booth serves μ=300\mu = 300/h.

  • ρ=0.80\rho = 0.80.
  • L=0.8/0.2=4L = 0.8/0.2 = 4 cars.
  • Lq=0.64/0.2=3.2L_q = 0.64/0.2 = 3.2 cars.
  • W=1/(300−240)=1/60 h=60 sW = 1/(300 - 240) = 1/60\text{ h} = 60\text{ s}.
  • Wq=240/(300×60)=0.0133 h=48 sW_q = 240/(300 \times 60) = 0.0133\text{ h} = 48\text{ s}.

Check with Little's law: L=λW=240(1/60)=4L = \lambda W = 240(1/60) = 4.

If arrivals rise to 290290/h, then ρ=0.967\rho = 0.967 and W=1/10 h=6W = 1/10\text{ h} = 6 minutes. Delay grows explosively as ρ→1\rho \to 1, which is why facilities are designed well below capacity.

Loading diagram...
M/M/1 Queue Measures
Test Your Knowledge

Trucks arrive at a single loading point at 10 per hour (Poisson) and each loading takes an exponentially distributed time averaging 5 minutes. What is the average time a truck spends waiting in the queue before loading begins?

A

25 minutes

B

10 minutes

C

5 minutes

D

30 minutes

Test Your Knowledge

A regression of settlement on fill height gives a correlation coefficient r = 0.90. What fraction of the variation in settlement is explained by fill height?

A

10%

B

95%

C

81%

D

90%

Test Your Knowledge

How many days of traffic counts are needed to estimate mean daily volume within ±150 vehicles at 95% confidence if the standard deviation is about 900 vehicles?

A

36

B

12

C

139

D

138

Sections you finish are checked off in the contents.