Skip to main content
Math & statisticsLocal in browser — nothing is uploaded

Bayes’ theorem, binomial & correlation calculator

Update prior beliefs with Bayes’ theorem posterior odds, compute binomial probabilities B(n, p), and calculate Pearson correlation (r, R²) and linear regression locally.

Bayes' Theorem Posterior P(A|B)

Posterior P(A|B)

32.65%

Exact: 0.32646

Positive Rate P(B)

5.82%

P(A|¬B) False Omission

0.106%

Binomial Distribution B(n, p)

Exact P(X = k)

0.20233

CDF P(X ≤ k) = 0.61717

Mean / Std Dev

5

σ = 1.93649

Pearson Correlation (X, Y pairs)

Pearson r / R²

0.9989

R² = 0.9978

Best Fit Line

y = 1.96x + 0.12

n = 5 points

Processing runs inside your browser without accounts or server uploads. Modular TypeScript domain logic tested locally.

Report a problem with this tool

Diagnostic odds & linear fit

Base-rate accuracy: Helps evaluate why rare events produce surprising false-positive shares even when a test has high sensitivity.

Frequently asked questions

How does Pearson correlation r differ from R²?
r ranges from −1 to +1 showing direction and linear strength; R² (0 to 1) indicates variance explained by the linear trend.
How should X,Y data pairs be formatted?
Enter one X, Y pair per line separated by a comma, space, or semicolon.