Bayesian Correlation Calculator
Test whether two variables are correlated with a Bayes factor (Ly, Verhagen & Wagenmakers, 2016), using a uniform (stretched beta) prior on ρ, and see the posterior distribution of the population correlation.
Updated · By Bibin XavierData 90 × 12
| IDtext · 90 levels | Grouptext · 3 levels | Gendertext · 2 levels | Agenumeric | Hours_Studynumeric | Anxietynumeric | Motivationnumeric | Pre_Scorenumeric | Post_Scorenumeric | Exam_Scorenumeric | Passednumeric · coded | Satisfactionnumeric · coded |
|---|---|---|---|---|---|---|---|---|---|---|---|
| S001 | Control | Male | 23 | 11.2 | 29 | 4.6 | 60 | 62 | 67 | 1 | 2 |
| S002 | Workshop | Female | 23 | 3.9 | 28 | 3.5 | 54 | 70 | 54 | 0 | 2 |
| S003 | Online | Female | 18 | 10.1 | 32 | 4 | 55 | 57 | 66 | 0 | 3 |
| S004 | Control | Male | 26 | 13.6 | 41 | 3.5 | 52 | 55 | 59 | 0 | 3 |
| S005 | Workshop | Female | 22 | 9.7 | 27 | 3.6 | 56 | 63 | 65 | 0 | 4 |
| S006 | Online | Female | 20 | 7.9 | 32 | 3.8 | 65 | 82 | 65 | 0 | 2 |
| S007 | Control | Female | 20 | 6.3 | 28 | 3 | 72 | 83 | 61 | 0 | 3 |
| S008 | Workshop | Male | 22 | 8 | 29 | 3.1 | 64 | 72 | 62 | 1 | 3 |
Variables and options
Results
90 rows · example dataBayesian Pearson correlation
| Pair | n | Pearson r | BF10 | BF01 | Evidence | Posterior median ρ | 95% credible interval |
|---|---|---|---|---|---|---|---|
| Hours_Study – Exam_Score | 90 | .362 | 55.605 | 0.018 | very strong evidence for H₁ | .353 | [.161, .520] |
Note. H₁: ρ ≠ 0, stretched beta prior with κ = 1. Classical test for comparison: p < .001.
Prior and posterior of ρ
Exam_Score by Hours_Study
Interpretation
The correlation between Hours_Study and Exam_Score is r = .362 (n = 90). BF10 = 55.605, very strong evidence for H₁. Given the data, the population correlation most likely lies between .161 and .520 (95% credible interval).
How to cite this tool
Using these results in a thesis, journal article, report or class assignment? Please cite this free tool so others can find it. It keeps the site free.
APA 7
Xavier, B. (2026). Bayesian Correlation Calculator [Web application]. FreeStatisticalTools.com. https://freestatisticaltools.com/bayesian-correlation/
BibTeX
@software{xavier_bayesiancorrelation_2026,
author = {Xavier, Bibin},
title = {Bayesian Correlation Calculator},
publisher = {FreeStatisticalTools.com},
year = {2026},
url = {https://freestatisticaltools.com/bayesian-correlation/},
note = {Web application}
}Suggested sentence for your methods section: “The analysis was carried out with the free Bayesian Correlation Calculator tool on FreeStatisticalTools.com (Xavier, 2026).”
What is a Bayesian correlation?
A Bayesian correlation test weighs the evidence for a non-zero population correlation ρ against ρ = 0. Following Ly, Verhagen and Wagenmakers (2016) and JASP, the prior on ρ is a stretched beta distribution, uniform from −1 to 1 by default. The result is a Bayes factor and a posterior distribution with a credible interval for ρ.
When to use a Bayesian correlation
Use it to quantify the evidence for or against a linear association between two continuous variables, including evidence that two variables are unrelated.
Assumptions
- Bivariate normality and a linear relationship.
- Independent pairs of observations.
How to set up your data
Two numeric columns, one row per case.
How to use this tool
- Enter your data. Paste columns from Excel, Google Sheets or SPSS with variable names in the first row, or upload a CSV or Excel file. The example data shows the expected layout.
- Choose the variables. Select the variable x and variable y.
- Set the options. Fill in prior width κ (stretched beta) and alternative hypothesis.
- Read the results. Results update automatically. Read the plain-English interpretation, then use Copy table to paste APA-style tables into Word and Copy for the results sentence.
How to report a Bayesian correlation in APA style
“A Bayesian correlation showed extreme evidence for a positive association between study hours and exam score, r = .62, BF₁₀ = 2.4 × 10⁸, 95% CrI [.49, .72].”
Frequently asked questions
How do I report a Bayesian correlation?
Give r, the Bayes factor and the credible interval, for example “r = .30, BF₁₀ = 1.09, 95% CrI [.00, .53]”, and state the prior (stretched beta, κ = 1).
What does κ (kappa) mean?
κ sets the width of the prior on ρ. κ = 1 is uniform; smaller values concentrate prior mass on small correlations.
Can I test a directional hypothesis?
Yes. Choose ρ > 0 or ρ < 0 to get a one-sided Bayes factor.
Does it match JASP?
Yes, the Bayes factors match JASP and pingouin.
Related tools
Browse all categories
Data cleaning and preparation · Describe and explore · Compare means · Nonparametric tests · Correlation and regression · Bayesian statistics · Categorical data · Reliability and agreement · Multivariate analysis · Structural equation modeling · Econometrics and time series · Panel data and causal inference · Marketing and decision research · Survival, clinical and meta-analysis · Study planning and calculators · PLS-SEM