# Questions tagged [binary-data]

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

1,200 questions
Filter by
Sorted by
Tagged with
1k views

### Which classifiers work well with unbalanced data?

I have a binary classification problem which is very unbalanced - it can have 98% of data from one class. Which classifiers work well with this sort of data? I have an unlimited supply of training ...
2k views

### Only binary predictors -- ANOVA, regression, or other?

I am trying to fit a model to predict a quantitative response variable, using several binary variables. In particular, I am interested in measuring the relationship between one of the binary variables ...
114 views

### Creating statistically balanced teams

Suppose that you have a tournament for a game with four players on each team. We also have a table that tells us overall statistics for each player. This table includes things like each player's # ...
7k views

### Best method to predict binary outcome with multiple records per subject

I am interested in building a model to predict the binary outcome, retention (1 - retained; 0 - not retained) with various potential predictor variables (either continuous or categorical). With that ...
1k views

### R - Analyzing Relationship Between Two (or more) Binary Variables

Say I have two vectors: Action.Taken = c(0,1,0,0,1,1,0,1,0) Success = c(0,0,0,1,0,1,0,1,0) The first tells me whether or not a specific action was taken in a ...
332 views

### Test for aggregation of binary events/successes (binomial/glm??)

this has been vexing me for a while and I can't seem to solidify an answer beyond vague thoughts about Poisson distributions. I think this is a simple problem and I'm missing something obvious. Any ...
19k views

### How to deal with a skewed class in binary classification having many features?

I am doing data analysis in the mobile ad targeting domain. I have around 18 features and for a combination of these features, the result is either True or False (1/0) depending on whether the ...
250 views

### modelling data that contains only ones and zeros

I have a dataset where the predictive variables contain only ones and zeros, and the response variable also contains only ones and zeros. I would like to build a model in ...
381 views

### How to analyze two-way within subjects design with binary data

I am interested in testing how users perform on three different user interfaces. On each of the three interfaces, a person will try 12 Tasks. So each participant will do Task 1 three times, Task 2 ...
983 views

### SPSS Amos Binary Outcome - Model Fit

I was just wondering if anybody could help me, I'm conducting a path analysis in SPSS Amos with a binary outcome. I've specified the variable as binary using Tools>Data Recode, I've then calculated ...
926 views

### Best way to test for co-occurrence of measures

I have some data with temporal measures over time. I'd like to test whether two binary variables co-occur more often than chance would predict, and I'm wondering the best (simple) way to do that. The ...
4k views

### What to Do When a Log-binomial Model's Convergence Fails

There are times when one might want to estimate a prevalence ratio or relative risk, in preference to an odds ratio, for data with binary outcomes - say, if the outcome in question isn't rare, so the ...
446 views

### Regression analysis with binary independent variables [duplicate]

Should one use regression analysis when all independent variables are binary categorical (0,1) to see their effect on continuous dependent? Some suggest that regression shouldn't be used in this case.
12k views

### PCA on Binary Data [duplicate]

I having binary data set (yes/no), so can I apply PCA on that. Is it mathematically correct to do that. In my opinion Binary variable can only be subjected to logical operations, so how it can be ...
288 views

### How does eigenvalues work with binary data in redundancy analysis?

I am using the vegan package in R to do a redundancy analysis (RDA, a part of canonical correlation analysis). My response data is binary and my explanatory variables contains 0, 0.5 an 1. I get quite ...
111k views

### Is it meaningful to calculate Pearson or Spearman correlation between two Boolean vectors?

There are two Boolean vectors, which contain 0 and 1 only. If I calculate the Pearson or Spearman correlation, are they meaningful or reasonable?
640 views

### How to analyze relationship between a nominal variable (2 values) and a numerical variable (integer)?

I'm trying to find out if a nominal variable A (2 values: x and y) and a numerical variable <...
891 views

### Stratified Cross-Validation with Collaborative Filtering

My dataset consists of binary preferences ($0$ or $1$) given by users on items like this: User-ID | Item-ID | Preference If a user has not given a preference to an item, then it is not in the ...
103 views

### Implementation of semi parametric methods

Has anyone worked with semi parametric methods to estimate parameters with binary outcome? Examples are like Cosslett (1983) or Ichimura or Klein-Spady. In other words we are looking for semi ...
4k views

### Paired test for comparing boolean data

I have $n$ individuals, and for each individual, I have two measurements using two devices (device X and device Y). I know the ground truth for the correct measurement, and I can classify each ...
3k views

### How do you correlate binary & ordinal variables?

Which test to use to calculate correlations between them? Cramer's V, Kruskal-Wallis, or something else?
179 views

### Binary Logistic Regression – Extremely Low Log-Likelihood Value

I am a novice statistician using R. I am running a BLR to determine the probability of good or bad sites to build a structure. Each location has a composite "score" that was generated from index ...
281 views

### Comparison of point-biserial and linear correlation coefficients

I have a continuous variable X that is associated with a continuous outcome Y and a dichotomous outcome Z. If I calculate Pearson's $r$ between X and Y, and the point-biserial coefficient $r_{pb}$ ...
97 views

### Estimating the Marginal Effect of a Misclassified Binary Regressor Without Instruments

In ordinary least squares, we can use an errors-in-variables model when one or more of the regressors are measured with additive noise to ameliorate the effects of attenuation bias. We just need to ...
1k views

### Stepwise binary logit regression - help for bootstrapping in Stata

I am running a stepwise binary logit regression in Stata using 14 independent variables. Two of the independent variables are dummies (assuming a value of 0 or 1). I've tested the independent ...
195 views

### Prediction method where predictors and response variable are binary

I have a group of binary tasks performed by multiple subjects. Every task can be either performed right or wrong (i.e.,1/0). My goal is to predict the accuracy of future task given the performance on ...
3k views

### Factor analysis with binary variables using Stata 13

I am trying to do confirmatory factor analysis on data that is coded binary (0 no, 1 yes). UCLA suggests using a tetrachoric ...
250 views

### When looking at the association between binary variables, when are odds ratios better than risk ratios and vice-versa?

The Wikipedia page lists some scenarios: While both measures are useful, they have different statistical uses. In medical research, the odds ratio is commonly used for case-control studies, as ...
24k views

### Probit two-stage least squares (2SLS)

I was told that it's possible to run a two-stage IV regression where the first stage is a probit and the second stage is an OLS. Is it possible to use 2SLS if the first stage is a probit but the ...
878 views

### Can a nuisance multi-class classifier do better than binary classifier?

This is rather a theoretical question in order to save the trouble in trying to do empirical testing and is part of a bet, so I hope I am right... Say there are M classes in the data BUT you want to ...
118 views

### Binary logistic regression

im new to binary logistic regression. I don't know whether the test is giving me real results based on my data set. My dependent variable will be the presence of STEC in fecal samples (Presence= Yes, ...
755 views

### What is a good technique for grouping objects based on binary or dichotomous traits?

I have a set of objects each of which has a list of traits. Data on the traits is binary: an object has a trait or does not. The number of objects that I have is moderately greater than the number ...
220 views

### Multilevel data with correlation within subjects

I have a dataset with 1206 deputies from two different chambers (1998 and 2002, respectively). In addition, there are 18 parties, and some deputies are in both chambers (the ones who were reelected). ...
43 views

### Which test is useful to assess if a source is the same in two samples of binary data?

I am looking for a statistical test that assesses if two samples which have binary values come from the same source or from different ones. Example: I have one set that has 10 0s and 6 1s and ...
820 views

### Best Regression with Binary Features

I'm seeking to do a linear regression for an evaluation function in a board game. My features are all (signed) binary 1 0 0 1 -1 1 0 0 0. Mostly zeros. Around 200 to an observation. I have 10 million ...
681 views

### (very basic) One-sample test for binary data

I've repeatedly measured a continuous variable and each measure has been assigned a populational percentile range it falls into (percentile ranges were estimated for general population in another ...
2k views

### Predicting Next Likely Outcome of Binary Time Series?

I'm trying to approach the following problem: Danny & Johnny are professional basketball players. Each day they meet, and play for a while. Whoever scores the most points is declared winner for ...
14k views

### What algorithm should I use to cluster a huge binary dataset into few categories?

I have a large (650K rows * 62 columns) matrix of binary data (0-1 entries only). The matrix is mostly sparse: about 8% is filled. I would like to cluster it into 5 groups - say named from 1 to 5. I ...
190 views

### Modeling binary outcomes - inaccurate model when using logistic regression? [duplicate]

I am trying to model the probability of a binary outcome with the independent variable being an hour variable. I understand that linear regression is not the correct method for this type of task (I ...
387 views

### Making an inference from conditional probability values

Consider the following data about bulb failures (which require a filament replacement for repair) compared across three companies: ...
1k views

### Strength of association test with binary variables

I have a dataset with different purchases for two different items from the same users. So the users purchased the two items at different points in time. I also have 3 different variables: ...
1k views

### Comparing predictions from models

I'm wondering how to compare the predictions of three different models - a logit, a probit and a linear probability model - when predicting a binary outcome. I'm currently working with simulated data, ...
24k views

### Clustering a binary matrix

I have a semi-small matrix of binary features of dimension 250k x 100. Each row is a user and the columns are binary "tags" of some user behavior e.g. "likes_cats". ...
812 views

### Which analysis for a set of (0/1)binary variables alone?

I have a dataset I would like to analyze and plot It consists of 100 binary variables (0/1) for about 2,000,000 observations There is absolutely no quantitative variable, nor anything I could use as ...
42 views

### Finding range of time with best probability of positive event occurring

I have data representing a couple hundred of independent experiments. Each one contains time - how long did the experiment took and outcome: positive and negative. There is 10% of positive outcomes. ...
482 views

### Binary Classifier evaluation when Precision is more important than Recall

Problem statement A set of points is given. We want to classify those points in two distinct classes with labels $\{0,1\}$. We count the "hits" of the classifier based on the $1$ class. Assume that we ...
187 views

### Does it make any difference which class is target class in a binary classifier with balanced data?

The title says it all. If you are working on a two class classification problem with 50% of instances from each class does it matter which of the two classes is the positive class? Does the ...
101 views

### Regression of proportions

I have to regress the mortality rate which is in number of deaths per thousand and percentage of vaccinated people. Have sample data for different districts. Can I use linear regression directly. The ...