UNSW Sydney · FACULTY OF ENGINEERING

CVEN9407 Chap.4 Hypothesis Testing, Error Types and Power

- one subject, every graph, every model, every mark
7 Chapters3-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 4 of 12 · CVEN9407

Hypothesis Testing, Error Types and Power

Every coefficient in the project is eventually tested, and this chapter builds the testing logic on simple means first. It sets out the null and alternative hypotheses, the confidence interval and test of significance routes to a decision, and the two kinds of error. A figure shows how the significance level, the sample size and the true effect size drive power.

A worked t test on spot speeds shows why one-sided and two-sided tests can disagree, and the chapter closes with p values, the 2-t rule and comparing two independent means.

In the project, almost every claim about a factor affecting crashes rests on a test.

A coefficient reported as significant, a diagnostic that rejects constant variance, a likelihood ratio test between logit models: each one is the same reasoning applied to a different statistic. Understanding size and power also explains why a small area with few crashes may fail to show effects that are real.

In this chapter

What this chapter covers

  • 01

    Null and alternative hypotheses

  • 02

    Confidence interval and test of significance approaches

  • 03

    Type I error, type II error and power

  • 04

    Confidence intervals for a mean and a variance

  • 05

    One-sided and two-sided t tests

  • 06

    P values and the 2-t rule

  • 07

    Comparing two independent means

Worked example · free

A z test on average travel time with known spread

Q [3 marks]. Historical data give a standard deviation of 12 seconds for intersection delay. After a signal retiming, 36 observations have mean delay 104 seconds. Test whether the mean differs from the previous 100 seconds at the 5% level. The mark allocation is our own practice weighting and is not an official university scheme.
Size and power on one axis.Size and power on one axis. The blue curve is the sampling distribution under the null mean of 60; red tails beyond 56.08 and 63.92 are the rejection region. If the true mean is 64, the teal curve applies and the amber area, 0.484, is the chance of wrongly keeping the null.56.0863.92H0: mean 60true mean 64beta 0.484sample mean (km/h)
Size and power on one axis. The blue curve is the sampling distribution under the null mean of 60; red tails beyond 56.08 and 63.92 are the rejection region. If the true mean is 64, the teal curve applies and the amber area, 0.484, is the chance of wrongly keeping the null.
  • 1Standard error = 12 / square root of 36 = 2 seconds.
  • 1z = (104 - 100) / 2 = 2.0.
  • 1The two-sided critical value is 1.96; since 2.0 > 1.96, reject the null: mean delay has changed, with a p value of about 0.046.
z = 2.0, just beyond 1.96, so the change in mean delay is significant at 5% but not at 1%.
Sia tip — Decide one-sided or two-sided from the wording of the question before computing; a change is two-sided, an increase is one-sided.
Glossary

Key terms

Null hypothesis
The null hypothesis is the stated parameter value that a test assumes true until the sample evidence rejects it.
Power of a test
The power of a test is the probability that it rejects a null hypothesis that is false.
P value
A p value is the lowest significance level at which the null hypothesis can be rejected with the observed data.
Type II error
A type II error is the failure to reject a null hypothesis that is actually false.
FAQ

Hypothesis Testing, Error Types and Power FAQ

What does it mean to fail to reject the null?

Only that the sample gives no strong reason to reject it. The null is not proven, and another hypothesis might fit the data equally well. Report the estimate and its interval so a reader can see what values remain plausible.

How can I increase the power of a test?

Collect more observations, accept a higher significance level, or study a larger true effect. Raising the level from 5% to 10% increases power but doubles the chance of a false positive, so it should be decided before seeing the data.

When do I use z and when do I use t?

Use z when the population standard deviation is known or the sample is large. Use t, with n minus one degrees of freedom, when the standard deviation is estimated from a modest sample, which is the usual case in project data.

Why might a real effect fail to show up as significant in my area?

With few crashes the standard errors are large and the test has low power, so a genuine effect can produce a t ratio below the critical value. Report the estimate and its confidence interval, and say that the data are too thin to rule the effect in or out.

Is a 5% significance level compulsory?

No, but it is the convention in the lectures and in most transport research. Whatever level you choose, fix it before looking at the results, apply it consistently across every model in the report, and give p values so readers can apply a stricter or looser level themselves.

Study strategy

Assessment move

Write the five-step test of significance on a card and use it for every test in the course, from a single mean to a regression coefficient. Practise each problem twice, once with an interval and once with a test statistic, and check that both reach the same decision. Then explain power in a sentence without using the word probability.

For every test you report in the project, state the null in words, the statistic, the critical value or p value, and the decision in one line.

Working through Hypothesis Testing, Error Types and Power in CVEN9407? Sia is AskSia’s AI Engineering tutor — ask any CVEN9407 Hypothesis Testing, Error Types and Power question and get a clear, step-by-step explanation grounded in how CVEN9407 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 100 of your UNSW Sydney subjects - and 1,000+ Bibles across every Australian university.
Sia - your CVEN9407 tutor, unlimited, worked the way the exam marks it
The full 3-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works
CVEN9407 · Transport Demand Modelling - independent study guide on the AskSia Library. More UNSW Sydney subjects · Microeconomics across all universities