Inspiration

What if the scariest thing about data isn't what it contains, but what is missing?

We live in a world where scientific research, public policies, journalism, and everyday decisions increasingly rely on statistics. Yet we rarely ask how sensitive those conclusions are to the disappearance of individual observations.

As someone passionate about data science, mathematics, and visual storytelling, I wanted to explore this question through an interactive experience.

For Kiroween, I wanted to create something beyond traditional Halloween aesthetics. No monsters, no jump scares, and no decorative horror.

Instead, I wanted to explore something more unsettling: the fragility of conclusions we believe to be stable.

That is how GHOST DATA — The Missing Evidence was born.

The ghost is an absent observation. Its influence remains measurable even after its hypothetical disappearance.

GHOST DATA brings together five disciplines:

Mathematics × Statistics × Digital Art × Data Journalism × Scientific Forensics.

This interdisciplinary combination is why I chose the Frankenstein category.


What it does

GHOST DATA is an interactive scientific instrument that answers one precise mathematical question:

What is the minimum number of observations whose hypothetical removal strictly reverses the direction of a difference between two group means?

Users can upload their own CSV files or explore established scientific datasets, examine observations, experiment with hypothetical exclusions, discover the exact minimum removal set, and export a reproducible scientific report.

Ghost Twins: identical means, different fragility

The experience begins with two synthetic datasets containing 100 observations each.

Both have:

  • 50 observations in each group.
  • A Group A mean of 51.
  • A Group B mean of 50.5.
  • An initial mean difference of +0.5.

However, their underlying distributions differ.

When one selected observation is hypothetically removed from each dataset:

Result Dataset A Dataset B
Original difference +0.5 +0.5
Retained observations 99 99
New difference -0.5 +0.5
Direction reversed? Yes No

For Dataset A, the globally minimum removal count is one.

For Dataset B, no feasible removal set can reverse the comparison while retaining at least one observation in each group.

Same sample sizes. Same means. Different fragility.

Real-world scientific investigations

GHOST DATA goes beyond synthetic examples. Five illustrative configurations across three established scientific datasets were independently validated.

Dataset Comparison Minimum removals
Palmer Penguins Body mass: Torgersen vs. Dream 1 of 175
Palmer Penguins Flipper length: 2008 vs. 2009 1 of 233
Fisher's Iris Sepal width: versicolor vs. virginica 17 of 100
Fisher's Iris Petal length: setosa vs. virginica No feasible reversal
Gapminder 2007 Life expectancy: Asia vs. Americas 7 of 58

The Missing Penguin

The direction of an average body mass comparison between two Antarctic islands can be reversed by hypothetically removing a single observation among 175 eligible observations.

That represents approximately 0.57% of the analyzed observations.

The Fragile Flower

An Iris sepal-width comparison requires at least 17 hypothetical removals among 100 observations to reverse its direction. A separate petal-length comparison has no feasible reversal under the selected constraints.

The Seven Countries

Seven hypothetical country removals reverse the direction of an unweighted arithmetic mean life expectancy comparison between Asia and the Americas.

These comparisons were selected for illustrative purposes after inspecting the datasets. They are not new scientific discoveries or recommendations to remove observations.

The investigation experience

  • Ghost Twins: An interactive experiment revealing different levels of deletion sensitivity.
  • Data Autopsy: Inspection of missing values, invalid outcomes, and group distributions.
  • The Evidence Room: A scientific laboratory for examining, hypothetically excluding, and restoring observations.
  • Breaking Point: An exact optimization engine identifying the globally minimum removal count.
  • Real-World Case Files: Investigations using established scientific datasets.
  • Evidence Passport: A structured report containing dataset fingerprints, exact results, parsing provenance, analysis settings, and the canonical optimal witness.

All analytical processing happens locally inside the browser. No external AI model or backend service is required to calculate the results.

Scientific integrity

GHOST DATA measures worst-case hypothetical deletion sensitivity.

It does not estimate whether those deletions are probable, plausible, justified, or likely to occur.

It is not a fraud detector, a significance test, a causal inference tool, or a missing-data reconstruction system.

Its purpose is to make a specific form of statistical sensitivity accessible, transparent, and reproducible.


How we built it

Kiro-driven development

Kiro was my primary development environment throughout the project.

Rather than immediately generating code, I began with a mathematical specification. I needed to define exactly what the application should compute, what constitutes a valid reversal, which constraints must be respected, and how correctness could be verified.

Using Kiro's spec-driven development workflow, I translated these requirements into structured specifications, design documents, implementation tasks, and testable acceptance criteria.

The project's .kiro directory contains its development specifications, steering documents, task history, and regression-hook definition.

Kiro helped establish several non-negotiable engineering principles:

  • Analytical decisions must use exact arithmetic.
  • A tie must never be classified as a strict reversal.
  • The removal count must be globally minimal within the supported domain.
  • Every returned optimal witness must be mathematically valid.
  • Manual exclusions must remain separate from canonical optimization.
  • Numerical results must not be altered to satisfy visual requirements.
  • Scientific limitations must be communicated explicitly.

The mathematical engine

Given two groups with arithmetic means, the original difference is:

$$ \Delta = \bar{x}_A-\bar{x}_B $$

The engine seeks the minimum number of hypothetical removals:

$$ k^*=\min_{S_A,S_B}(|S_A|+|S_B|) $$

Subject to a strict reversal of the original direction:

$$ \Delta\cdot\Delta_{\mathrm{after}}<0 $$

And a minimum retained size in both groups:

$$ n_A-|S_A|\geq r $$

$$ n_B-|S_B|\geq r $$

When a feasible reversal exists, the percentage of analyzed observations that must be hypothetically removed is:

$$ F=\frac{k^*}{n_A+n_B}\times100 $$

Exhaustively searching every possible subset would be computationally impractical for large datasets.

Instead, the engine exploits the mathematical structure of arithmetic means.

For any fixed removal count, deleting the largest observations from the initially higher-mean group minimizes its retained mean. Deleting the smallest observations from the initially lower-mean group maximizes its retained mean.

The algorithm combines:

  1. Extreme-value ordering.
  2. Exact prefix sums.
  3. Monotone binary search.
  4. Enumeration of feasible removal allocations.
  5. Global minimum selection.

This identifies the global minimum in \(O(N\log N)\) arithmetic operations.

The analytical engine uses scaled BigInt integers and exact rational comparisons, avoiding floating-point rounding in mathematical decisions.

A deterministic canonical optimal witness is returned, without claiming that it is the only possible optimal solution.

The method is an exact special-case implementation of established deletion-sensitivity ideas. I do not claim to have invented the broader field of statistical robustness.

Software architecture

The application was built using:

  • React and TypeScript.
  • Vite.
  • D3.js for scientific visualization.
  • Papa Parse for CSV ingestion.
  • BigInt and rational arithmetic.
  • Web Workers for computational isolation.
  • Web Crypto and SHA-256 for dataset fingerprinting.
  • JSON Schema and Ajv for report validation.
  • Vitest, fast-check, and Playwright for automated verification.

The analytical engine, data ingestion, visualization, and reporting layers are deliberately separated.

The application supports datasets containing up to 50,000 data rows and performs its computations locally in the browser.

Independent verification and remediation

I wanted the project to be challenged independently rather than relying exclusively on tests created during its implementation.

After the main development phase, I used OpenAI Codex as an independent reviewer to examine the mathematics, attempt to find counterexamples, verify the scientific datasets, inspect the source code, and evaluate the user experience.

The audit identified genuine issues involving visualization precision, numerical presentation, scientific wording, and CSV reproduction metadata.

Kiro subsequently implemented the main scientific and technical corrections. Codex later assisted with final release remediation, documentation, and verification.

The resulting development process combined:

Kiro specifications → Implementation → Independent scrutiny → Targeted remediation → Regression verification.

The original independent audit is preserved in the repository, separately from the later remediation work.

Claude, Remotion, Playwright, and FFmpeg were also used to produce the demonstration film, combining original motion graphics with genuine recordings of the working application.

Art direction: absence as an interface

I did not want GHOST DATA to look like a conventional statistical dashboard.

Its visual language draws inspiration from contemporary scientific exhibitions, experimental editorial design, forensic archives, and data journalism.

Archival ivory, carbon black, and signal red establish the visual identity.

When an observation is hypothetically excluded, its absence can remain visible through an outlined mark. The user can restore it and observe how the comparison changes.

Absence becomes both an artistic medium and a mathematical object.

For the Frankenstein category, the interdisciplinary combination is fundamental to the product. Halloween is not merely a visual theme.

Absence is the interaction, the mathematical problem, and the creative metaphor.


Challenges we ran into

Finding the exact minimum

The first challenge was developing an efficient algorithm that identifies a globally minimum removal count instead of returning an approximate or merely plausible result.

This required a clearly defined mathematical objective, an optimization strategy, and independent verification against exhaustive reference computations.

Maintaining numerical precision

Very small nonzero differences can determine whether a strict reversal has occurred.

The project therefore required exact arithmetic throughout its analytical pipeline.

The independent audit also revealed that correct mathematics could still produce misleading visualizations if numerical values were rounded prematurely during display.

Correcting this distinction between computational precision and visual presentation was an important part of the remediation process.

Making the results reproducible

Recording a result alone is insufficient for scientific reproducibility.

The Evidence Passport needed to include the original dataset fingerprint, selected columns, group configuration, retained-size constraints, numerical policy, parsing settings, exact results, and canonical witness.

The independent audit exposed missing CSV parsing metadata, leading to the introduction of Evidence Passport schema version 1.1.

Validating real-world datasets

Working with scientific datasets introduced challenges involving missing values, identifier uniqueness, source attribution, redistribution licenses, and floating-point representation artifacts.

For Gapminder, documented decimal normalization was required. The original and derived dataset identities were preserved, and the transformations were independently verified.

Balancing artistic expression and scientific honesty

Every visual element needed to communicate a genuine relationship in the underlying data.

I wanted the disappearance of an observation to feel dramatic without exaggerating its scientific significance.

This meant avoiding decorative graphics that resemble data, misleading scales, unsupported claims, and visual effects that interfere with interpretation.

Working within the hackathon deadline

Combining mathematical optimization, scientific validation, software engineering, accessibility, creative direction, and film production as a solo participant required careful prioritization.

Specification-driven development helped keep the project focused while preserving its scientific foundations.


Accomplishments that we're proud of

My proudest achievement is that GHOST DATA became a working scientific application rather than remaining a conceptual design.

The independent audit conducted on December 3, 2026, produced the following results for the audited application snapshot:

  • 15,296 independent exact mathematical comparisons with zero discrepancies detected.
  • 10,000 seeded adversarial mathematical cases, included in the comparison campaign.
  • Five independently verified real-world configurations.
  • 598 passing automated tests.
  • 46 distinct passing Chromium browser checks.
  • 44 independent automated accessibility scans with zero reported violations.
  • Successful browser-based processing of 50,000 observations.

The independent reviewer derived its own mathematical reference computations rather than simply trusting the production implementation.

Measured performance

On the audited Apple M1 Pro system with 16 GB of RAM, the following median execution times were recorded:

Dataset size Exact mathematical engine Full automated workflow
1,000 observations 0.30 ms 273.7 ms
10,000 observations 2.65 ms 360.5 ms
50,000 observations 15.25 ms 746.3 ms

These are documented measurements from a specific audit environment, not guarantees for every device.

I am also proud of:

  • Building a browser-local analytical system without an external computation service.
  • Combining mathematical rigor with an original visual identity.
  • Making complex statistical sensitivity concepts understandable through interaction.
  • Creating an Evidence Passport designed for reproducibility.
  • Responding to independently discovered defects instead of hiding them.
  • Producing a cinematic demonstration film using genuine application footage.

The application code is open source under the MIT license. Bundled datasets retain their respective attribution and licensing requirements.

Explore the project


What we learned

The most important lesson was that mathematical correctness is only one component of trustworthy scientific software.

A correct algorithm can still communicate a misleading result if its visualization is inaccurate, its limitations are poorly explained, or its configuration cannot be reproduced.

I also learned the importance of specification-driven development.

Working with Kiro encouraged me to define the problem before implementing it, transform mathematical constraints into engineering requirements, and use property-based testing to investigate behavior beyond conventional examples.

Independent verification taught me that successful tests should not discourage further scrutiny.

Finding genuine defects was an opportunity to improve the product rather than defend earlier implementation decisions.

From a creative perspective, I learned that visualization can be more than a way of presenting results.

It can become a method of exploration.

GHOST DATA made me think differently about the relationship between mathematics, design, and scientific communication.

Most importantly, I learned that absence itself can tell a story.


What's next for GHOST DATA — The Missing Evidence

The current release focuses on an exact, carefully defined mathematical problem: worst-case deletion sensitivity for a difference between two unweighted arithmetic means.

I would like to develop GHOST DATA into a broader platform for exploratory statistical robustness analysis.

Potential future directions include:

  • Exact and approximate sensitivity analysis for regression coefficients.
  • Weighted statistical comparisons.
  • Cluster-aware and paired-observation deletion constraints.
  • Integration with Python, R, and Jupyter Notebook.
  • Additional reproducibility tools for scientific researchers.
  • Educational experiences for universities and statistics courses.
  • Interactive tools for data journalists investigating statistical claims.
  • A larger archive of documented real-world investigations.

Each mathematical extension would require its own formal definition, correctness analysis, and independent verification.

I would also like to conduct user studies with students, researchers, and journalists to understand whether interactive deletion sensitivity improves statistical literacy.

The long-term ambition is to make statistical robustness easier to investigate, understand, and communicate.

Most data tools tell us what is present.

GHOST DATA asks what happens when something is absent.

One missing. Everything changes.

GHOST DATA — Investigate the absence.

Built for Kiroween 2026 — Frankenstein.

Built With

Share this project:

Updates

Submission history