PPolySim OS

Naive Bayes Classifier

Naive Bayes classifies by asking which class most plausibly produced a data point. Watch the decision boundary move as the distributions and priors change.

Naive Bayes ClassifierLive

Controls

Presets

Naive Bayes models each class as a probability distribution and assigns a new point to whichever class makes it most likely, weighted by the prior. Where the weighted curves cross is the decision boundary. It is fast, simple, and famously strong on text. Educational tool.

▶ Run in Python

Data Inspector

Decision boundary0.28
Class overlaplow (easy)

Governing equation

Reading this result: Well-separated classes with a balanced prior put the boundary right between the means, exactly where the two weighted curves cross.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →
★ Sign in to save this setup
Save your tuned setup, or drop this simulation into your own site, docs, or course page.

How it works

Naive Bayes models each class as a probability distribution and applies Bayes' theorem, assigning a point to the class with the highest posterior. Despite its naive independence assumption it is fast, robust, and remarkably effective for text and spam filtering. Educational tool.

Ask the AI about this model

The math, the assumptions, real-world uses, or a code translation — explained for this exact simulation.

More CS / AI simulations

Frequently asked questions

Is this naive bayes simulator tool really free?
Yes. Naive Bayes Classifier runs entirely in your browser using your device's own compute, so local use is free forever. You only pay Compute Tokens if you scale a job to the cloud.
Do I need to install anything?
No. Everything runs client-side in a modern browser — no downloads, no license, no account required to start.
Can I save or share my simulation?
Create a free account to save projects, and use a shareable embed or minted DOI to publish a live, interactive version anywhere.
How accurate are the results?
The solver uses established numerical methods, but results are for research and educational purposes and should be validated against experiment or professional review before you rely on them.