How do you measure correlation when one variable is binary? What is the point-biserial correlation?

Quick Overview

Asks how to measure the association between a continuous variable and a binary one, and what the point-biserial correlation is. It tests whether you can connect the coefficient to Pearson's r and the two-sample t-test, read its sign and size, and tell when the biserial coefficient fits better.

How do you measure correlation when one variable is binary? What is the point-biserial correlation?

Role: Data Scientist

Category: Statistics & Math

Difficulty: easy

Interview Round: Other

How do you measure correlation when one variable is binary? What is the point-biserial correlation? A typical case: you want to know how strongly a continuous metric, such as session length, is associated with a yes/no attribute, such as whether the user pays for a subscription. ```hint Write out Pearson's r Code the binary variable as 0 and 1 and expand Pearson's formula. Which summaries of the two groups are left in it? ``` ### What a Strong Answer Covers - The definition of the point-biserial coefficient and how it relates to Pearson's r - A formula in terms of the two group means, the overall spread and the group proportions - The range, and how to read the sign and the magnitude - The link to the two-sample t-test and the assumptions behind that test - When to use the biserial correlation or a rank-based measure instead ### Follow-up Questions - With the same mean difference, how does a 5/95 group split change the coefficient compared with a 50/50 split? - How does the point-biserial correlation relate to Cohen's d? - The continuous variable is heavily skewed with a few large outliers. What would you report instead? - When is the biserial correlation the right choice, and why is it larger in magnitude?

Overview: Asks how to measure the association between a continuous variable and a binary one, and what the point-biserial correlation is. It tests whether you can connect the coefficient to Pearson's r and the two-sample t-test, read its sign and size, and tell when the biserial coefficient fits better.

Nov 25, 2026
easyData ScientistOtherStatistics & Math
0
0

How do you measure correlation when one variable is binary? What is the point-biserial correlation?

A typical case: you want to know how strongly a continuous metric, such as session length, is associated with a yes/no attribute, such as whether the user pays for a subscription.

What a Strong Answer Covers Guidance

  • The definition of the point-biserial coefficient and how it relates to Pearson's r
  • A formula in terms of the two group means, the overall spread and the group proportions
  • The range, and how to read the sign and the magnitude
  • The link to the two-sample t-test and the assumptions behind that test
  • When to use the biserial correlation or a rank-based measure instead

Follow-up Questions Guidance

  • With the same mean difference, how does a 5/95 group split change the coefficient compared with a 50/50 split?
  • How does the point-biserial correlation relate to Cohen's d?
  • The continuous variable is heavily skewed with a few large outliers. What would you report instead?
  • When is the biserial correlation the right choice, and why is it larger in magnitude?