Skip to content
  • Tutorials
    • c programming
      • libraries
    • c++
    • Linux
    • Python
    • batch programming
    • Technology
  • IDE
  • Tools
correlation between categorical and continuous variables 1

correlation between categorical and continuous variables

April 27, 2022 by Anurag batra
import scipy
#calculates correlation between a binary variable, x, and a continuous variable, y
scipy.stats.pointbiserialr(x, y)

Here is what the above code is Doing:
1. Importing the scipy library
2. Calculating the correlation between a binary variable, x, and a continuous variable, y

Categories Python Examples
Post navigation
python capitalize the entire string
python program to keep your computer awake
© MyEduKit - 2022 . All Rights Reserved.