Docsity

Traffic Simulation , Vissim , Question Bank, Study notes of Civil Engineering

Toggle sidebar
bg1
Question 1 — Descriptive Statistics & Traffic-State Diagnosis
Given: Speed observations (km/h), n = 10: 60, 65, 62, 70, 75, 80, 61, 68, 72, 77.
Step 1 — Sample mean
x = Σxῗ/n = 690 / 10 = 69.0 km/h
Step 2 — Sample variance & standard deviation
Σ(xῗ−x)² = 372.60
s² = 372.60 / (10−1) = 41.4 (km/h)²
s = √41.4 ≈ 6.43 km/h
Step 3 — Coefficient of Variation
CV = (s/x) × 100% = (6.43/69.0) × 100% ≈ 9.3%
Step 4 — Traffic-state diagnosis (Variance-to-Mean ratio)
Var/Mean = 41.4 / 69.0 ≈ 0.60
Since the ratio is < 1, the stream is under-dispersed relative to Poisson, which points to a
Binomial regime (arrivals/speeds are more regular than random — consistent with a
congested or constrained flow, not free clustering).
Answer
x = 69.0 km/h | s² = 41.4 (km/h)² | s = 6.43 km/h | CV = 9.3% | Diagnosis:
Binomial (regular/congested) traffic state.
Theory — What does CV tell us about homogeneity?
The Coefficient of Variation is a dimensionless measure of relative spread. A CV of only ~9%
means the standard deviation is small compared to the mean, so almost all vehicles are
travelling within a narrow band around 69 km/h. This indicates a fairly homogeneous speed
stream, with little mixing of very fast and very slow drivers — as opposed to CV values
approaching or exceeding 100%, which would signal a highly variable, heterogeneous
stream.
pf3
pf4
pf5

Partial preview of the text

Download Traffic Simulation , Vissim , Question Bank and more Study notes Civil Engineering in PDF only on Docsity!

Question 1 — Descriptive Statistics & Traffic-State Diagnosis

Given: Speed observations (km/h), n = 10: 60, 65, 62, 70, 75, 80, 61, 68, 72, 77.

Step 1 — Sample mean

x̄ = Σxῗ/n = 690 / 10 = 69.0 km/h

Step 2 — Sample variance & standard deviation

Σ(xῗ−x̄)² = 372. s² = 372.60 / (10−1) = 41.4 (km/h)² s = √41.4 ≈ 6.43 km/h

Step 3 — Coefficient of Variation

CV = (s/x̄) × 100% = (6.43/69.0) × 100% ≈ 9.3%

Step 4 — Traffic-state diagnosis (Variance-to-Mean ratio)

Var/Mean = 41.4 / 69.0 ≈ 0.

Since the ratio is < 1, the stream is under-dispersed relative to Poisson, which points to a Binomial regime (arrivals/speeds are more regular than random — consistent with a congested or constrained flow, not free clustering).

Answer

x̄ = 69.0 km/h | s² = 41.4 (km/h)² | s = 6.43 km/h | CV = 9.3% | Diagnosis: Binomial (regular/congested) traffic state.

Theory — What does CV tell us about homogeneity?

The Coefficient of Variation is a dimensionless measure of relative spread. A CV of only ~9% means the standard deviation is small compared to the mean, so almost all vehicles are travelling within a narrow band around 69 km/h. This indicates a fairly homogeneous speed stream, with little mixing of very fast and very slow drivers — as opposed to CV values approaching or exceeding 100%, which would signal a highly variable, heterogeneous stream.

Question 2 — Required Sample Size (Confidence Interval

Design)

Given: Estimate the mean corridor speed within an allowable margin of error E = ±1.5 km/h at 95% confidence (Zα/2 = Z0.025 = 1.96, from the standard Normal chart). A pilot study of 25 vehicles yields a sample standard deviation s = 9.2 km/h.

Step 1 — Confidence level → Z value

95% confidence → α = 0.05 → Zα/2 = Z0.025 = 1.

Step 2 — Apply the sample-size formula

n = (Zα/2 × s / E)² n = (1.96 × 9.2 / 1.5)² = (18.032 / 1.5)² = (12.021)² ≈ 144.

Step 3 — Round up to a whole number of observations

n = 145 observations (always round up, since a fractional observation cannot be collected and rounding down would leave the margin of error slightly wider than specified)

Answer

Required total sample size, n ≈ 145 vehicles.

Theory — Why does the CLT justify this Normal-based interval?

The Central Limit Theorem states that the distribution of the sample mean x̄ of n i.i.d. random variables approaches a Normal distribution, N(μ, σ²/n), as n grows large — regardless of the shape of the underlying population distribution (speeds here need not themselves be Normal). Because x̄ is approximately Normal, the standardized statistic Z = (x̄ − μ)/(s/√n) is approximately N(0,1), which is exactly what allows the Z-table critical value 1.96 to be used to build a valid 95% confidence interval / required sample size, even though we never verified the speed data itself is Normally distributed.

Question 4 — Normal Distribution of Vehicle Speeds

Given: Vehicle speeds on a homogeneous road section are Normally distributed with mean μ = 65 km/h and standard deviation σ = 9 km/h.

Step 1 — Z-score for exceeding 85 km/h

Z = (X − μ) / σ = (85 − 65) / 9 = 20/9 ≈ 2. P(X > 85) = P(Z > 2.22) = 1 − Φ(2.22) From the Z-table, Φ(2.22) ≈ 0.9868 (area to the left) P(X > 85) = 1 − 0.9868 = 0.0132 ≈ 1.3% of vehicles exceed 85 km/h.

Step 2 — 85th percentile speed (for setting the posted speed limit)

From the Z-table, the z-value with area 0.85 to its left is Z0.85 ≈ 1.04. x₅₅ = μ + Z0.85 × σ = 65 + 1.04 × 9 = 65 + 9.36 ≈ 74.4 km/h

Answer

P(X > 85 km/h) ≈ 1.3% | 85th-percentile (design/posted) speed ≈ 74.4 km/h

Theory — CDF derivation and why 85th percentile over the mean?

The p-th percentile xp is, by definition, the value satisfying F(xp) = P(X ≤ xp) = p, i.e. it is obtained by inverting the CDF: xp = F⁻¹(p). For a Normal variable this is done via the standardizing transform Z = (X−μ)/σ, so xp = μ + Zpσ, where Zp is read from the standard Normal table as the z-value whose cumulative area equals p. The 85th-percentile speed is preferred over the mean for design/speed-limit decisions because it represents the speed at or below which the vast majority (85%) of reasonable, attentive drivers naturally travel. Setting the limit at the mean would mean roughly half of all drivers already exceed it — making the limit unrealistic and hard to enforce. The 85th percentile balances safety with practicality: it accommodates the typical prudent driver while still flagging only the fastest 15% as exceeding a reasonable design speed.

Question 5 — Chi-Square Goodness-of-Fit (Poisson Arrivals)

Given: Vehicle arrivals observed in 100 intervals of 30 s each, tested against a Poisson distribution with estimated arrival rate λ = 3 vehicles/interval. Observed frequencies (O) for k = 0, 1, 2 arrivals are 10, 20, and 30 respectively.

Step 1 — Expected frequencies from the Poisson PMF

P(X=k) = λk^ e−λ^ / k!, with λ = 3, then Ek = 100 × P(X=k) P(X=0) = e⁻³ = 0.04979 → E₀ = 100 × 0.04979 = 4. P(X=1) = 3e⁻³ = 0.14936 → E₁ = 100 × 0.14936 = 14. P(X=2) = 4.5e⁻³ = 0.22404 → E₂ = 100 × 0.22404 = 22.

Step 2 — Partial Chi-Square statistic for these three classes

χ² = Σ (Oi − Ei)² / Ei = (10−4.98)²/4.98 + (20−14.94)²/14.94 + (30−22.40)²/22. = (5.02)²/4.98 + (5.06)²/14.94 + (7.60)²/22. = 5.06 + 1.72 + 2.58 ≈ 9.

Answer

E₀=4.98, E₁=14.94, E₂=22.40 | Partial χ² (k=0,1,2 only) ≈ 9.

Theory — Degrees of freedom and the merging rule

The degrees of freedom for a Chi-Square goodness-of-fit test are df = k − 1 − m, where k is the number of classes (bins) used and m is the number of distribution parameters estimated from the sample data itself (here, λ is typically estimated as the sample mean, so m = 1). The "−1" accounts for the constraint that all expected frequencies must sum to the total sample size (loss of one degree of freedom from that normalization). The rule that classes with Ei < 5 must be merged with a neighbouring class exists because the Chi-Square test statistic's sampling distribution is only well approximated by the theoretical χ² distribution when expected cell counts are reasonably large. With very small expected counts, the (O−E)²/E terms become highly unstable and skewed, inflating the statistic and distorting the true Type I error rate (i.e. the test would reject a correct H₀ far more often than the nominal α suggests). Note that in this problem E₀ = 4.98 is technically just under the threshold of 5 — strictly, this class should be merged with the k=1 class before a final, publishable χ² statistic is reported.