system
Given the following post, respond as if you're commenting on Reddit:
human
Is there some regression method to predict categorical variables from categorical variables?

I have one variable(salaried or self- employed) and i have another variable called Defaulted(yes or no)- Default means that they did not pay their loan. I was wondering if i can do any regression analysis on this data to see any trend? Do salaried employees default on loan more?
gpt
It's just a contingency table, isn't it? Given "salaried" what's the probability of "defaulting"? Given "self-employed" what's the probability of "defaulting"?

You can use a chi-squared test to see if it is likely to be a chance result and get a sense of whether it's an important factor or not.