Frame from Chi-square goodness-of-fit test in Manim
PromptFull
manim script to show 6 big steps of solving a statistics chi-square goodness of fit test problem related to zoo visitor daily uniform distribution, also guide me how to run everything because i am a newbie to Manim

Make it yours. Change "a statistics chi-square goodness of fit test problem related to zoo visitor daily uniform distribution" to your own problem, and "6 big steps" to the number of steps. Drop the last clause if you already know how to run Manim.

Make it hereFree runs soon

Chi-square goodness-of-fit test in Manim

A 38-second Manim animation that works a chi-square goodness-of-fit test on daily zoo visitors, from the hypotheses to the decision. Gemini wrote the script from a one-line request, and the creator, new to Manim, ran it on Windows and pasted any errors back.

You'll need

  • Python and Manim installed locally
  • Any Gemini chat to write the script
How it was made

The creator's steps: install Python and Manim on Windows, get the script from Gemini with this prompt, save it as chi_square_test.py, and run manim -pql chi_square_test.py ChiSquareTestAnimation (a quick low-quality render). If it errors, paste the terminal error back into Gemini for a new full script. Whether that was needed here isn't stated, and neither is the Gemini version.

Posted Dec 10, 2025 · YouTube · 8 views

Prompt from: YouTube description, step 3

Look notesby Reference

A plain Manim walkthrough on black that works a chi-square goodness-of-fit test on zoo visitors: hypotheses, expected frequencies with an observed-against-expected table for Monday to Friday, the test statistic and degrees of freedom, and the critical-value comparison and conclusion.

Color
A black background with white text and table lines, yellow-green step headings, and a green underline arrow in the comparison.
Type
Manim's LaTeX serif throughout: a white title "Chi-Square Goodness of Fit Test: Zoo Visitors", yellow-green step headings ("Step 2: Calculate Expected Frequencies (E)"), and typeset math ("E = N/k = 260/5 = 52", "χ² = 6.46", "df = k − 1 = 5 − 1 = 4").
Framing
16:9 with everything left-aligned under the title at the top: a step heading, then lines of math stacked below it, and the table at the left edge. Most of the frame stays empty black.
Structure
The title on black, Step 1 with H₀ "Visitors are uniformly distributed", Hₐ, and α = 0.05, Step 2 with E = 260/5 = 52 and a table of observed counts (48, 55, 60, 42, 55) against 52 each, Step 3 with the χ² formula, χ² = 6.46, and df = 4, then "Step 5 & 6: Find Critical Value and Make Decision" (there is no Step 4 heading) with χ²crit = 9.488, "6.46 < 9.488 ⇒ Fail to Reject H₀", and "Conclusion: Visitor distribution is Uniform."

More like this

7:37

Narrated lesson on derivatives, in Chinese

Opus 5.5 · Manim

1:38

Morse theory on a torus, in 3D Manim

Codex · Manim

1:10

Why a circle's area is πr²

Manim

2:46

Every orbit is a great circle, in 3D Manim

Claude Code · Manim

0:44

The photoelectric effect, in Manim

Gemini Flash 3.5 · Manim

0:54

Spacetime curvature in 3D Manim

Partial prompt · 3.7 Sonnet · Manim

0:28

Forest fire simulation by six models

3.7 Sonnet · Python

0:56

Spinning heptagon test across 18 models

GPT-4.5 Preview · Python

2:08

Galileo, Bernoulli and the fastest path

Opus 5.5 · Canvas 2D

1:16

The beauty of physics, one continuous shot

Claude Code

1:47

From a bacterium down to quantum fields

JavaScript

0:39

Crayon picture-book Pythagorean theorem

Opus 5.5 · Plain JavaScript

0:20

Rainbow slinky down an endless escalator

GPT-6 Astra · HTML canvas

0:30

One year of planetary orbits in 30 seconds

Claude Code · Remotion

2:00

250 years of America in sand animation

Claude Code · Python

2:37

Split-screen bubble sort explainer

Claude Code · Manim

2:38

Five thousand years of China in line art

Claude Code · SVG

1:09

Nine football rules as TV match analysis

Claude Code · Three.js

1:06

Launch video for a livestreaming product

Opus 5.5 · HTML

2:02

Synth-baroque acid canon with a visualizer

Partial prompt · Claude Code · Python

Low-poly elf swordsman, Sol vs Opus

Partial prompt · Claude Code · Blender

1:06

Stickman Jedi vs. Sith duel, four models

Codex · Canvas

3:38

Music video on AI fear-mongering

Prompt described · Claude Code · Remotion

0:40

Black-and-white launch film for Grok 4.7

Opus 5.5 · HTML

16:50

The CEO who escaped Japan in a box

Claude Code · Blender

9:30

Chinese science film on the history of AI

Opus 5.5 · Remotion

0:29

Claude icons shoot an action movie

Claude Code · Python

1:15

Recursion explained in nine video styles

Opus 5.5 · React

0:30

30-second brand spot for Grok Bot

Claude Code · Plain JavaScript

0:32

Motion designer showreel, Opus vs Astra

Claude Code · skia-python