Skip to main content

All Questions

1 vote
0 answers
41 views

How to check linear independence of categorical features with a numerical target?

Suppose I am doing linear regression on a dataset. My dataset contains columns f1, f2 ,f3 ,f4 , f5 , target . Features (independent variables) are the column names starting with "f" and my ...
letdatado's user avatar
  • 367
2 votes
1 answer
190 views

Correlation between categorical and continuous variable

I would like to calculate the correlations between ambient light measurements and the daytime. The ambient light is measured by a smartphone light sensor and is a continuous variable (basically, it is ...
machinery's user avatar
  • 1,814
1 vote
1 answer
378 views

Correlation between two constant variables using the different approaches [duplicate]

Let's say we have a vector X = (1, 1, 1) and Y = c(2, 2, 2). I want to calculate correlation between those. Taking Pearson ...
John's user avatar
  • 532
1 vote
1 answer
85 views

Analyzing a categorical variable with 'Only A', 'Only B', and 'Both A and B'

I may not be searching the correct terms to get an education on this seemingly simple question: I am analyzing the correlation between two categorical variables with Pearson's chi-square test and its ...
oustella's user avatar
1 vote
0 answers
63 views

Type of correlation between binary and ordinal variable [duplicate]

I have two variables. The first variable is binary (yes or no) and measures if a person is happy or not. The second variable consists of 5 integers from 1 to 5 and measures if an emotion is positive ...
machinery's user avatar
  • 1,814
0 votes
1 answer
39 views

Which is the more reliable method for measuring correlation between dichotomous variables?

I would like to know which are the most commons methods for measuring correlation with dichotomous/categorical variables. I often use Chi-square, but I have seen that some people use Pearson ...
Simone's user avatar
  • 321
1 vote
1 answer
594 views

How can I combine nominal with ordinal data to build a unique variable?

I performed an Interview with 44 questions Protocol. The structure of questions is based on 18 variables. Major variables are coming from theory. Every major variable consists of 3,4 or more question ...
Pooya Ghazinejad's user avatar
1 vote
0 answers
1k views

Can we combine two groups to enhance power for analysis if there are no group differences on the variables?

I am reading a peer-reviewed paper on psychology and found the author use pearson r on sex (nominal variable): The correlation table And then the authors conclude no gender difference on all ...
ceoec's user avatar
  • 544
4 votes
1 answer
1k views

Generate random correlated categorical (ordinal) variables

Lets say I want to generate 100 observations of 2 likert scaled, normally? distributed variables with 10 categories (1-10) and a pearson correlation of f.e. ~0.8. I am aware that using pearson ...
jannic's user avatar
  • 234
4 votes
1 answer
2k views

Autocorrelation of discrete time series

I am currently planning on calculating the autocorrelation for various lags given a time series. However, my elements of the time series are "discrete" and abstract classes; i.e., no integers. For ...
fsociety's user avatar
  • 1,174