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 toolDiagnostic 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.
Related tools
Browse all toolsMath & statistics
Descriptive statistics calculator
Calculate mean, median, mode, quartiles, IQR, sample/population variance, and standard deviation from datasets.
Math & statistics
Linear regression & correlation
Fit ordinary least squares (y = mx + b), Pearson correlation coefficient r, R², RMSE, and preview a crisp scatter plot.
Math & statistics
Normal distribution, Z-score & CI
Compute Z-scores, left/right/two-tailed normal cumulative probabilities, and 80–99% confidence intervals locally.