🎉 75% of content is free forever — Unlock Premium from $10/mo →
CW
NEWSLIVESearch All Content
💼 Servicesℹ️ About✉️ ContactView Pricing Plansfrom $10

Point-Biserial Correlation — Binary and Continuous Variables

Foundations of StatisticsDescriptive Statistics🟢 Free Lesson

Point-Biserial Correlation

Descriptive Statistics

Bridging Categories and Numbers in One Statistic

When one variable splits your data into two groups (treated/untreated, pass/fail) and the other is continuous (test score, blood pressure), point-biserial correlation gives you a single number that captures the relationship — and it is mathematically identical to the independent t-test.

Key things point-biserial correlation helps you understand:

  • Group differences — Whether binary membership (e.g., gender, treatment status) is associated with different means on a continuous outcome.
  • Effect size — The square of r_pb tells you the proportion of variance explained by group membership.
  • T-test equivalence — You can convert a t-statistic directly into r_pb, making it easy to compare effect sizes across studies.

Whenever you run an independent t-test, you are already computing point-biserial correlation — you just might not know it.


What is Point-Biserial Correlation?

Definition

The point-biserial correlation measures the association between a binary variable and a continuous variable.


python
import numpy as np
from scipy import stats

np.random.seed(42)

# Binary variable: gender (0=Male, 1=Female)
gender = np.array([0]*30 + [1]*30)

# Continuous variable: test scores
scores_male = np.random.normal(75, 10, 30)
scores_female = np.random.normal(82, 10, 30)
scores = np.concatenate([scores_male, scores_female])

r_pb, p_value = stats.pointbiserialr(gender, scores)
print(f"Point-biserial r = {r_pb:.4f}")
print(f"p-value          = {p_value:.6f}")

Relationship to Independent t-Test

python
# The point-biserial r is equivalent to:
# r_pb = sqrt(t² / (t² + df))

t_stat, p_t = stats.ttest_ind(scores_female, scores_male)
df = len(scores_female) + len(scores_male) - 2
r_from_t = np.sqrt(t_stat**2 / (t_stat**2 + df))

print(f"t-statistic = {t_stat:.4f}, p = {p_t:.6f}")
print(f"r from t-test: {r_from_t:.4f}")
print(f"r from pointbiserial: {r_pb:.4f}")

Interpretation

r_pb ValueInterpretation
0.10 – 0.29Small effect
0.30 – 0.49Medium effect
0.50+Large effect
python
# Effect size interpretation
r_squared = r_pb**2
print(f"r² = {r_squared:.4f}")
print(f"{r_squared*100:.1f}% of variance in scores explained by gender")

Point-Biserial Correlation in Machine Learning

ML ApplicationUsageWhy
Feature selectionBinary target vs continuous featureIdentify discriminative features
A/B testingBinary outcome vs continuous metricMeasure treatment effect
ClassificationBinary class separationQuick feature importance
python
import numpy as np
from scipy.stats import pointbiserialr

np.random.seed(42)
# Binary outcome (e.g., pass/fail) and continuous feature (e.g., hours studied)
passed = np.random.binomial(1, 0.6, 200)
hours = np.where(passed == 1,
                 np.random.normal(8, 2, 200),
                 np.random.normal(4, 2, 200))

r, p = pointbiserialr(passed, hours)
print(f"Point-biserial r: {r:.3f}, p-value: {p:.4f}")
print(f"Hours studied is {'strongly' if abs(r) > 0.5 else 'moderately'} correlated with passing")

Key Takeaways

Measures association between a binary and continuous variable — a special case of Pearson's r.

Equivalent to the independent t-test — r_pb² = t²/(t²+df), so every t-test already produces a point-biserial correlation.

Positive r_pb means group 1 (coded 1) has a higher mean; negative means group 0 has the higher mean.

r_pb² gives the proportion of variance in the continuous variable explained by group membership — your effect size in one number.

"The t-test and point-biserial correlation are two sides of the same coin — one tells you if the difference is significant, the other tells you how big it actually is."


Extended Learning: Beyond the Basics

Key Concepts Summary

This lesson covers fundamental concepts that serve as building blocks for more advanced topics. Master these basics before moving to intermediate and advanced material.

Prerequisite Knowledge

Before studying this topic in depth, ensure you understand:

  • Basic definitions and terminology
  • Core formulas and their derivations
  • Common applications in real-world scenarios
  • Typical pitfalls and misconceptions

Step-by-Step Walkthrough

Let us work through a complete example to solidify understanding:

Step 1: Identify the problem type. Determine which category this problem falls into and which approach is most appropriate.

Step 2: Apply the relevant formula. Substitute known values into the appropriate equation, paying attention to units and constraints.

Step 3: Simplify and solve. Work through the algebra step by step, checking each intermediate result.

Step 4: Verify the answer. Check that the solution satisfies the original conditions and makes logical sense.

Common Mistakes to Avoid

  1. Misidentifying the problem type — Always start by categorizing the problem
  2. Incorrect formula application — Verify the formula applies to your specific case
  3. Unit errors — Always check units are consistent throughout
  4. Sign errors — Pay careful attention to positive and negative values
  5. Rounding too early — Keep full precision until the final answer
  6. Forgetting constraints — Check that solutions satisfy all given conditions

Real-World Applications

Understanding this concept is essential for:

  • Advanced problem solving in examinations
  • Building intuition for more complex topics
  • Developing analytical thinking skills
  • Applying mathematical reasoning to practical situations

Practice Exercises

  1. Basic: Solve 5 problems of increasing difficulty using the core concept.
  2. Intermediate: Apply the concept to word problems with multiple steps.
  3. Advanced: Combine this concept with 2-3 other topics in a comprehensive problem.
  4. Challenge: Create your own problem that requires this concept plus additional knowledge.

Interview and Exam Tips

  • Common question patterns: Identify which exam or interview formats test this topic
  • Time management: Practice completing problems within time constraints
  • Common traps: Know the typical mistakes examiners set as distractors
  • Verification strategy: Develop a quick method to check your answer

Related Topics

Quick Reference Card

ConceptFormula/RuleKey InsightCommon Use
Core DefinitionSee main textUnderstand the intuitionFoundation for all applications
Key FormulaSee main textMemorize the derivationDirect problem solving
Special CaseSee main textRecognize when it appliesSimplifies complex problems
Edge CaseSee main textKnow the limitationsAvoids errors

Further Reading

For students who want to go deeper:

  • Standard textbooks on the subject
  • Research papers applying this concept
  • Online courses with video explanations
  • Practice problem collections with detailed solutions
CW

ChatWhole Learn Editorial Team

Written by experienced data scientists, software engineers, and educators. All content is reviewed by industry professionals to ensure accuracy and relevance.

Last reviewed: 2026-11-14

—
☆☆☆☆☆
0 ratings

Rate & Feedback

Need Expert Statistics Help?

Get personalized tutoring, project support, or professional consulting.

Advertisement