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.
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
# 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 Value | Interpretation |
|---|---|
| 0.10 – 0.29 | Small effect |
| 0.30 – 0.49 | Medium effect |
| 0.50+ | Large effect |
# 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 Application | Usage | Why |
|---|---|---|
| Feature selection | Binary target vs continuous feature | Identify discriminative features |
| A/B testing | Binary outcome vs continuous metric | Measure treatment effect |
| Classification | Binary class separation | Quick feature importance |
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
- Misidentifying the problem type — Always start by categorizing the problem
- Incorrect formula application — Verify the formula applies to your specific case
- Unit errors — Always check units are consistent throughout
- Sign errors — Pay careful attention to positive and negative values
- Rounding too early — Keep full precision until the final answer
- 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
- Basic: Solve 5 problems of increasing difficulty using the core concept.
- Intermediate: Apply the concept to word problems with multiple steps.
- Advanced: Combine this concept with 2-3 other topics in a comprehensive problem.
- 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
- Previous Topic — Build on the foundation laid here
- Next Topic — See how this concept extends to more advanced material
- Practice Problems — Additional exercises with solutions
- Video Explanation — Visual walkthrough of key concepts
Quick Reference Card
| Concept | Formula/Rule | Key Insight | Common Use |
|---|---|---|---|
| Core Definition | See main text | Understand the intuition | Foundation for all applications |
| Key Formula | See main text | Memorize the derivation | Direct problem solving |
| Special Case | See main text | Recognize when it applies | Simplifies complex problems |
| Edge Case | See main text | Know the limitations | Avoids 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