TactivergeLite

Lite / Independent Engineering Research / Week 28

Hypotheses that could be wrong

A hypothesis that every possible result would support tells you nothing. How do you write one that the data could actually knock down?

About 40 min · 3 goals · Checked by automated tests · Full interactive version

Why should I care?

Hypotheses earn trust by risking failure. 'Integral action changes the steady-state error' cannot really fail. 'Adding Ki = 0.5 reduces steady-state error below 1% within 5 s, where P-only stays above 5%' can. Engineers who write risky hypotheses learn faster, because every experiment teaches them something.

Predict

'Adding integral action will affect the response.' What is wrong with this hypothesis?

  1. Nothing: it is cautious and therefore good
  2. Almost any result 'affects' the response, so no outcome could refute it
  3. It should be about derivative action instead
  4. Hypotheses should never mention controllers
Guess first, then reveal

'Affect' is satisfied by any change at all. A falsifiable version names a direction and a size: 'reduces steady-state error below 1% within 5 s'. Now a result could prove it wrong.

Discover

Before touching anything, write: 'With P-only at Kp = 2, steady-state error will be above X%; adding Ki will bring it below Y% within Z s.' Pick X, Y and Z. Then run the lab. Did the data refute your hypothesis or not? Would you have known without writing the numbers down first?

What the interactive shows (text version)

The feedback lab shows a controlled system's response to a setpoint. With proportional control alone a steady-state error remains; adding integral action removes it over time. The activity is to write numerical predictions before running and compare them with the measured error.

You can also open the interactive on the full site when you have a faster connection.

Watch (optional)

Watch for: Notice how the video separates 'is there a difference' from 'how confident are we', and why a p-value alone is not a decision rule.

A careful definition of what a p-value is (and is not), with a worked example of when a small one should still not convince you.

“p-values: What they are and how to interpret them” by StatQuest with Josh Starmer (opens YouTube; streaming video uses a lot of data)

The video is optional. Everything you need is in this lesson's text.

Understand

Falsifiable means some result would count against it

A hypothesis is falsifiable if you can describe, before the experiment, a result that would show it is wrong. 'The filter helps' is weak; 'the filter cuts RMS tilt error by at least 0.5° against a tuned moving average' is strong, because a measured improvement of 0.1 ± 0.2° would refute it.

Direction, size and decision rule

A complete hypothesis has a direction (reduces), a size (by at least 0.5°) and a decision rule (supported if the lower end of the 95% CI of the improvement exceeds 0.5°; refuted if the upper end is below 0.5°; otherwise inconclusive). Writing the inconclusive case down is honest: many experiments end there.

Null and alternative

Statistics often frames this as a null hypothesis (no difference, or a difference below Δ) and an alternative. You never 'prove' the alternative; you collect evidence that makes the null implausible, or you fail to.

Explain it another way

Intuitive

A weather forecast that says 'some weather tomorrow' is never wrong and never useful. 'Rain after 3 pm' is useful precisely because it might be wrong.

Technical

Popper's criterion: a scientific claim must prohibit some observable outcomes. Engineering adds a practical twist: the prohibited outcome should be defined relative to a threshold that matters for the design.

Mathematical

Decision rule with SESOI Δ: supported if est − 1.96·SE > Δ; refuted if est + 1.96·SE < Δ; else inconclusive.

Applied

Controller specifications already work this way: 'overshoot under 10%, settling under 2 s'. A research hypothesis is a specification you are not sure the system meets.

Derivation: Why the threshold has to come first
  1. Suppose the true improvement is δ and your experiment estimates it with standard error SE.

  2. With enough trials, SE = σ/√n becomes tiny, so ANY δ ≠ 0, however small, will eventually look 'significant'.

  3. So 'there is a difference' is almost guaranteed to be true for real systems, and therefore almost uninformative.

  4. Fix a smallest effect size of interest (SESOI), Δ, from engineering needs: 'an improvement under 0.5° is not worth the code'.

  5. Now the hypothesis is 'δ ≥ Δ', and a result whose interval lies wholly below Δ refutes it. That is a risk the data can actually take.

Worked example 1

Estimate of improvement = 0.7°, SE = 0.15°, SESOI = 0.5°. Supported, refuted or inconclusive?

Lower bound = 0.7 − 1.96 × 0.15 = 0.406°. Upper = 0.994°. The interval straddles 0.5°, so the result is inconclusive under the pre-stated rule, even though the improvement is clearly above zero.

Common mix-ups

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

Practice 1. Which hypothesis is falsifiable?

s

Practice 3. Estimate 0.25 s, 95% CI [0.05, 0.45] s, SESOI 0.5 s. Verdict under a 'supported if lower bound > SESOI' rule?
Practice 4. After seeing the data, a learner lowers the SESOI from 0.5 to 0.2 so that the result is 'supported'. What is this?
Practice 5. What does failing to reject a null hypothesis show?

Apply it

Rewrite your capstone hypothesis with a direction, a smallest effect of interest and a three-way decision rule (supported, refuted, inconclusive). Explain where your SESOI comes from (a requirement, a cost, a user need).

Reflect

What result would make you abandon your capstone hypothesis? If you cannot name one, what does that tell you?

Write your answer on paper or in your own notes. Lite never stores what you write.

← From a topic to a research questionScope, feasibility and success criteria →