# Questions tagged [binary-data]

A binary variable takes one of two values, typically coded as "0" and "1".

1,277 questions
Filter by
Sorted by
Tagged with
1 vote
14 views

### Binary Classification Problem with Predicted Probabilities distribution skewed

I have a balancedrandomforest model which was trained on unbalanced data (92/8) for a binary classification problem. The AUC is around 0.98 and the precision and recall are also acceptable being 0.89 ...
6 views

### How to mean center variables based on binary condition in r [migrated]

I have a dataframe ("md") containing several variables, of which one is binary ("adopter"). I would like to mean center three of the other (continous) variables, let's say X, Y, ...
1 vote
17 views

### Binary regressor - what happens if people move from one category to the other?

Suppose I have the following regression model: Monthly alcohol consumed A as independent variable, regressed on a binary regressor S (S = 1 if smoker, S = 1 if non-smoker), and through OLS I get an ...
1 vote
30 views

### Regression of binomial response when the predictor range is limited

I am looking into a dataset for which I will be doing a regression. When considering the option of a logistic regression, I started doing univariate regressions to get a feeling for the possible ...
• 213
8 views

### Categorical IV with probit second stage

In a panel setting, I have a binary endogenous variable $X_{ijt}$ where $i$ indexes the individual, $j$ indexes the region, and $t$ indexes the year. I have a set of mutually exclusive binary ...
20 views

### How to interpret fitted coefficients in a multiple regression model: binary, continuous, and interaction terms

Suppose I have a multiple regression model: $y = \beta_0 + \beta_1x_1 + \beta_2x_2 + \beta_3x_1x_2 + \epsilon$ where $y$ is continuous $x_1$ is dichotomous (0 or 1) $x_2$ is continuous If $x_1 = 0$, ...
2 views

### Predicting probability of choice across different choice sets

I have data where people saw a series of 2 forced choices. Those choices were a random selection from a set of 4. So, from a set {A, B, C, D} participants saw two random options (e.g., {A, D} or {B, C}...
16 views

### Statistically increase mean difference between two data sets?

A dataset will be used to train a binary classification model. For better understanding/visualization, the data set was divided into 2: one set with all the rows that result in prediction value of 1 ...
1 vote
22 views

### Biased logistic regression in pytorch

My model has decently high AUC=90%, but is biased, underestimating the probability $y=1$. This is systematic across some of the input features as well. How can I nudge the bias term, or otherwise ...
17 views

### Under what conditions will prices of shares in a binary prediction market accurately represent probabilities?

I often see that prediction market sites say that the prices of the shares on outcomes can be interpreted as the likelihood of the outcome occurring. But under what conditions is this true?
• 1,048
12 views

### Comparing Coefficients of Binary Logit Model

I'm using a binary logit regression to predict the likelihood of homeownership. I got the natural log of the coefficients. I was wondering if the coefficient of one variable can be directly compared ...
14 views

### Binary logistic regression with dummy variables for several different IVs

I want to carry out a binary regression where the DV is 0 = Never considered giving up pet, 1 = have considered giving up pet. I have several categorical variables that I want to enter into the model: ...
1 vote
21 views

### Dependent variable has no variance error in logit regression

I m running a logit regression with over 90,000 observations. However the case when dependent variable =1 , is only 115 observations as per the data, the rest are 0. The Eviews software shows "...
• 31
1 vote
22 views

### Are all dummy variables stationary?

If a time series model contained only dummy variables as dependent and independent variables. Is it always stationary?
• 31
26 views

### How to interpret independent dummy variables in logistic regression?

I have both quantitative and dummy independent variables in my logistic regression. Dependent variable is binary. I have 2 questions. How to interpret a quantitative variable that is negative? How to ...
• 31
1 vote
26 views

### Is Chi square appropriate to show one set of binary data comes from a different population than another set of binary data?

I am comparing the accuracy of different computer programs on making predictions on the same set of data inputs. For example each of 5 computer programs read in the same 100 data points, and make a ...
• 11
18 views

### Predicting repeated binary response from contacts over time

From their initial entry date, people must be contacted each month for three months. It often takes several unsuccessful attempts before you establish contact. Once you reach someone, contact attempts ...
• 2,012
32 views

### How to get the True Negative Rate from this code?

I want to calculate the TNR. I am in a larger code project and we have this one binary classifier. The major problem is that I don't find the information about the variables in the code. What is the <...
• 189
1 vote
25 views

### Error in wp.logistic: ‘p0’ must be numeric in (0,1)? What to do when p0 is negative?

I am trying to find out the sample size I need for a future study using a reanalysed existing dataset to enter the values in a WebPower script. I am using the intercept and odds ratio/estimate of my ...
1 vote
70 views

### Which model should I use for Time series data?

I need to regress one dependent variable (dummy variable), against several other independent variables (dummy and non dummy variables). (FYI : I'm not using the past performance of dependent variable, ...
• 31
24 views

### How do I derive the variance of OLS estimators when I have dummy explanatory variables?

I know this isn't the smartest question, however I need to derive the variance of the OLS estimators in a Simple Linear Regression Model when the explanatory variable is a dummy one and all the ...
125 views

### Determine whether two binary sequences are correlated

I have two arrays of 2048 binary values (1 and 0) and I'd like to find out if their content can be considered correlated. I'd like to have less than 1:1000000 chance of a false positive in determining ...
15 views

### How to fit joint models for longitudinal and binary (outcome) data?

Joint Models are mainly viewed in the literature within the context of longitudinal and time-to-event data. For this reason R packages as JMBayes were built to fit these kind of models. Nonetheless I ...
• 3
24 views

### Averaging Point-biserial correlation coefficient

What will be an appropriate way to report the Point-biserial correlation coefficient if I have 5 random seeds of the same experiment (5 trained models on the same data). I am measuring the correlation ...
• 320
12 views

### What statistical test is appropriate when the independent variables are binary but tied to multiple sites and the dependent variables has many 0s?

I have a data set of microplastic particles/kg taken from various beaches. Each beach has several binary criteria which are the independent variables of the study. My issue is that in some samples ...
1 vote
37 views

### Correlation between binary variables

Long story short - I am lost among the ways to check for relation (whether there is any) between binary variables. Context - I am working on a side project where I try to analyze marketplace data and ...
• 11
1 vote
20 views

### What statistic would I use to explain the discrepancy between two binary variables?

I have 3 variables in a large dataset: whether students passed their multiple choice portion of their final (binary: pass-fail), whether they passed qualitative portion (binary: pass-fail), and ...
• 253
1 vote
61 views

• 1
17 views

### Appropriate correlation statistic for binary and count data

I have two variables where I want to report their correlation. One is a count variable that ranges from 0-3, and the other is a binary variable that is 0/1. ...
• 155
147 views

### Can NaN class be assigned to a certain class in imbalanced datasets (binary classification)?

I'm working on a spam detection binary classification problem, but the dataset is very imbalanced (99% to 1%). I know there are techniques like over/under sampling, but I don't think it can be used in ...
• 41
1 vote
49 views

### What hypothesis testing to use for continuous to categorical variables?

For example, I'd like to know if a person's age (a continuous variable) is related to whether the person drinks (a categorical/binary variable of Y or N). What method should I use to know If there's ...
72 views

### Interpreting SHAP interaction values

I have a trained model where gender, var_a, var_b, .. , var_g are binary features and an age variable too. Gender = 0 : male and Gender = 1 female. Similarly var_a and other features are binary. While ...
• 150
58 views

### Effect of zero-variance variables on logistic regression

Imagine that due to pipeline/workflow issues a logistic regression model that's in production has some binary variables in it that are positive or negative for all observations in the modeled ...
• 101
35 views

### How to check if any combination of binary variables is correlated/has impact on an ordinal dependent variable

I am working on a case to finish my (not so advanced) data scientist course, now I am stuck again and cannot find an existing answer to my problem. My data comes from a bike shop and I want to see if ...
22 views

### Model Selection Logistic Regression: Wald vs LRT

To select a model I use stepwise with the likelihood ratio test but I have seen that people use the z test (the one that appears in R when obtaining the summary) to include the variable with the ...
12 views

### Population overlap of random distributions of binary choices

I’m trying to figure out how to calculate the overlap (concurrence) of certain building features, for example: high-efficiency windows, thick insulation, efficient lights, etc. I know the probability ...
34 views

### Use regression_forest from the grf package to predict probabilities

I am wondering if it would be alright to use the random_forest command from the grf package in R for a binary outcome to predict probabilities. As far as I understand, this should be the equivalent to ...
• 109