PT | EN

Sthefanie Monica Premebida

PhD Student in Computer Science | Constructor University | Bremen, Germany

🌐 Este texto também está disponível em português: Teste de Hipótese no estilo Desafio em Tóquio

Hypothesis Testing, Tokyo Drift Style

September 30, 2025 · 4 min read

StatisticsTeachingPython

Alt Text

That was the question I asked myself this weekend, after watching “The Fast and the Furious: Tokyo Drift” for the first time: how could I use the boldness of drifting to explain a good Hypothesis Test to my students? After all, how do you turn a statistical concept that is essential in the data field into something that isn’t confusing at first glance?

The answer came in today’s class. At the end, to win everyone over, I used an example that made the whole room laugh, and I decided to share it here.


The starting point

While watching the movie FOR THE FIRST TIME, two questions came to mind:

We’ll set the first question aside (for the sake of my little Gol), but the second one is a perfect starting point for a hypothesis test.

Alt Text

It all starts with a question. In our case: “Did the average number of rollovers increase after the movie’s release?”


Defining the hypotheses

With the question defined, we create our hypotheses. I like to start with the Alternative Hypothesis (Hₐ) and then move to the Null Hypothesis (H₀), so let’s follow that order here. Hₐ is basically our suspicion, the thing we want to investigate.

H₀ is always the antagonist of our Hₐ, meaning we write it as the opposite of the alternative (we can also think of it as our “business as usual” :D)

Alt Text


Alpha (α) and p-value

From here on, our hypothesis test depends on two crucial values: alpha (α) and the p-value.

Alt Text


Making the decision

The conclusion comes from comparing the p-value with α:

Alt Text


Testing it in practice with Python

If you wanted to run this analysis in Python, you’d probably use the scipy library. To compare the accidents “before” and “after”, the ideal test would be the Independent Samples T-Test:

from scipy import stats

# Assuming 'before' and 'after' are lists with the number of accidents
stats.ttest_ind(after, before, alternative='greater')

The alternative='greater' parameter specifies that we’re running a one-tailed test, exactly like our original question!


So, had you ever thought about statistical tests this way?

Alt Text