Questions tagged [binary-data]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
380 views

Principal Component Analysis (PCA) for binary data [duplicate]

First of all, I would like to note that I have read similar topics in CrossValidated but I am not fully satisfied. I have a dataset which consists of an $N\times M$ binary matrix. 1 means that an ...
2
votes
3answers
586 views

How can I tell if my binary classifier is any good?

Say I have a data set with 10,000 rows and the target is a binary variable with 1500 positives (1's) and 8500 negatives (0's). I run a model and get predictions on the 0-1 interval. My question is ...
1
vote
1answer
265 views

Testing for significant binary attributes

I have binary vectors, each with a binary outcome: for example: |A|B|C| outcome 1 0 0 -> 0 0 0 1 -> 0 1 0 1 -> 0 0 1 0 -> 1 0 1 1 -> 1 How ...
1
vote
2answers
1k views

The bootstrapped confidence intervals for ORs are strangely big or small in my binary logistic regression. Are they valid in the first place?

This question is an extension to my previous question, although it is not repeated. My bootstrapped ORs are OK. They are equal to non-bootstrapped ORs. However, the confidence intervals of the ...
6
votes
1answer
6k views

How to interpret the significant interaction of two non-significant main predictors?

I have two non-significant main binary variables in my binary logistic regression model, but their interaction is significant. The variables are centered and no multicollinearity is the case (all VIFs ...
3
votes
1answer
226 views

A model that can fit binary data in R

I have data that indicates if the computers in my network are up or down. Data is collected every minute and has a seasonality of one week, looks like this for 3 hosts. Servers are supposed to go down ...
1
vote
2answers
2k views

For ungrouped binary data, can the deviance be approximated by a chi-squared distribution?

I heard that "for ungrouped binary data, the deviance cannot be approximated by a $\chi^2$-distribution." Is it true? Why?
1
vote
1answer
2k views

Generalized linear model with mean contrast pairwise comparison versus chi-square tests

I have binary data on prevalence of infection (infected/all analysed) and I want to compare this proportion between groups (species and sexes). I would like to ask if by conducting a Generalized ...
26
votes
2answers
26k views

Similarity Coefficients for binary data: Why choose Jaccard over Russell and Rao?

From Encyclopedia of Statistical Sciences I understand that given $p$ dichotomous (binary: 1=present; 0=absent) attributes (variables), we can form a contingency table for any two objects i and j of a ...
5
votes
2answers
357 views

Finding latent variables in 7 dichotomous variables

I have read other posts on conducting Factor analysis (FA) with dichotomous variables and although it appears clear that FA done in the default way is not appropriate, I am still unclear about a few ...
1
vote
0answers
47 views

How to test for significant difference between 2 binary variables in one sample [duplicate]

I would like to test if there is a significant difference between the pre-test and post-test in a dichotomous variable (0 = "False", 1 = "True"). I'm using only one sample of 30 subjects. So, my 2 ...
1
vote
0answers
96 views

generalized linear models, explanatory variables completely determine response

I am very new to stats, so I apologize for this naive question. Say I have the following data ...
0
votes
1answer
73 views

Find the correlation between two binary observations when the parameter is one of two possible values with priors $p(\theta_1)$ and $p(\theta_2)$

Consider two binary observations, $x_1$ and $x_2$, which are independent given $\theta$. Now suppose there is uncertainty with respect to $\theta$. Find the correlation between two binary observations ...
0
votes
0answers
156 views

OLS Regression for binary outcome [duplicate]

When is it appropriate to use linear regression for a binary outcome? I understand that it is conventional to use logistic regression for a binary outcome because it generates a linear list of ...
2
votes
1answer
1k views

Testing binary data

I have a data set that is a group of participants who accept or reject each of two devices, and I'd like to test if the two devices are accepted at different rates. Summary table like so ...
2
votes
0answers
99 views

Analyzing presence/absence data for art history

How can I best analyze the presence/absence data that I have gathered about the illuminations in a medieval manuscript? I have identified individual motifs in chapter headings and created a ...
2
votes
1answer
2k views

Cronbach's Alpha on true and false data?

I have a 10 item knowledge scale (true/false). Can I do Cronbach alpha test?
2
votes
3answers
769 views

How can I calculate the relative probability of each move resulting in a win, given historic win/loss data for the possible moves?

We are at a position in a game where there is a decision to be made. As there are relatively few game positions and possible moves, we have collected statistics from previous occasions the game was ...
2
votes
1answer
190 views

Transformation of binary data

I have a function that I am trying to optimize using Particle Swarm Optimization. The objective function gets a binary string. These binary strings are candidate solutions of the subject function. I ...
4
votes
1answer
1k views

Select best set of binary variables for clustering known sample labels

I have a set of samples, for which I know the "true groups". For this samples I have about 200 binary variables, I would like to know a method to select the subset of variables, that gives me a ...
0
votes
1answer
1k views

Statistical test over binary data

Given certain products (ProductA, ProductB, ProductC, etc..) users are asked to rank them according to their preference (whether they like, somewhat like, or not like, the product). Thereafter I ...
37
votes
5answers
35k views

Should you ever standardise binary variables?

I have a data set with a set of features. Some of them are binary $(1=$ active or fired, $0=$ inactive or dormant), and the rest are real valued, e.g. $4564.342$. I want to feed this data to a ...
1
vote
0answers
549 views

PCA on binary data (0's & 1's) -> what does it mean when a PC is correlated with the nr of 1's per subject?

I conducted a PCA on dichotomous variables (0's and 1's). The dataset consists of human subjects and a few thousand genetic variants, where the presence of a genetic variant is indicated with 0's and ...
4
votes
0answers
5k views

GEE (or GLMM) in SPSS: Interpreting outputs and model selection

I am attempting to analyze my (experimental psych) data in SPSS, and I have a few questions regarding the kind of analysis I should be using (GEE or GLMM), how I should be interpreting the output, and ...
12
votes
3answers
16k views

Distance Metrics For Binary Vectors

I have vectors of same length consisting of 1 and 0. I am trying to find out how similar they are. So far I am using hamming distance that I calculate sum of one vector then sum of second vector and ...
0
votes
1answer
7k views

Calculating a correlation with yes/no answers?

How do you calculate a correlation, that similar to Spearman and Pearson forumlar when you are only comparing one variable (age) to answer given by yes and no. As ages goes up more likely to answer ...
3
votes
1answer
2k views

Converting binary data to percentage

I've done an experiment where I recorded a positive or negative result from a cell. My data is set in tables of counts of events and trials, but I don't know how to do statistical analysis on binary ...
1
vote
1answer
1k views

Positive/negative relationship for a binary variable in a linear regression

I have a linear regression with multiple independent variables. One of the variables is binary. If the parameter estimates are positive or negative, does it share the same positive/negative ...
0
votes
1answer
273 views

spss: working with two binary/dummy variables

Am trying to set a few binary/dummy variables against each other, i.e. propensity_to_dance and gender. I assume that it' ok to ...
2
votes
0answers
75 views

Predict binary occupancy vector from history of vectors

I have a set of binary vectors where each vector represents one day of occupancy in a house and consists of 48 elements (each element for 30 minutes of the day). Each element can be 1 meaning that ...
2
votes
0answers
779 views

multiple imputation with binary variables

I have 54 missing values in my dataset of 459 cases. Variables are all binary (0-1). I want to try a multiple imputation to avoid a listwise deletion, using the mi ...
0
votes
0answers
46 views

spss 20 for mac: how to get probabilities after running a binary logistic regression [duplicate]

I have a binary variable that I'm investigating in SPSS, inclination_to_dance. I have another linear variable as well, ...
5
votes
2answers
52k views

Is there a simple rule for interpretation of Interactions (and their directions) in binary logistic regression? [duplicate]

I have a binary logistic regression with Y (a disease) and 5 independent variables (and some of their 2-sided interactions which did not cause multicollinearity). All of my single IVs significantly ...
3
votes
1answer
2k views

Re-scaling a confusion matrix after down sampling one class

Let's say I have a large, un-balanced binary classification problem (in reality nrow is more like 500k, and ncol is more like 500): ...
5
votes
4answers
3k views

Evaluate statistical significance of difference between outcomes of tests

I have 400 patients and I apply 4 tests to all of them. This gives me a number of positive and negative for each test. I want to compare the tests 2 by 2 to find out if there is any statistically ...
8
votes
3answers
1k views

Detecting clusters in a binary sequence

I have a binary sequence such as 11111011011110101100000000000100101011011111101111100000000000011010100000010000000011101111 Where clusters of mostly 1's are ...
0
votes
1answer
102 views

Any technique other than Logistic

All my predictors are binary in nature. So far I have been building the model with the logistic fuction. Could anyone suggest any appropriate statistical technique keeping the following points in mind:...
6
votes
0answers
1k views

Analysis of survival data using binomial GLM with offset

We are interested in determining whether there's an association between frequency of screening visits and cancer outcomes and whether that differs by race. We have Medicare data to analyze this. ...
2
votes
3answers
4k views

Reporting of an interaction in a binary logistic regression

I've found some interesting results that I'm trying to write up appropriately, but I'm having a hard time finding any guidance into how to write up an interaction in a binary logistic regression (...
1
vote
2answers
392 views

Alternative to LPM and logit regression in Stata

I'm dealing currently with complex dataset that was already tested with Linear probability model and logit regression. I'd like to find an alternative for original regressions. The sample uses a ...
11
votes
3answers
3k views

How to visualize Bayesian goodness of fit for logistic regression

For a Bayesian logistic regression problem, I have created a posterior predictive distribution. I sample from the predictive distribution and receive thousands of samples of (0,1) for each observation ...
2
votes
3answers
5k views

Which test(s) for analyzing yes-no answers for control vs treated conditions

To keep it simple, I have sets of data in which I have a control and a treated sample. The data I obtain is "yes" or "no" (0 or 1) for a particular behaviour. I have 150 data points for each condition ...
0
votes
3answers
2k views

Binary classification machine learning

I have data set (30,000) mapping people to incomes(<=some number ,>some number) each instance has 15 features so as age, education. I would like some advice/pointers as to the best machine ...
2
votes
1answer
99 views

Classification of biological samples with binary variables

I have a question about a very basic classification problem. The objective is to discriminate between feature A and B. Where A is a specific biological sample, and B all others. And the goal is to ...
4
votes
2answers
8k views

Covariance of binary and continuous variable

Suppose $y$ is a continuous random variable and $d$ is a binary random variable that takes the value $1$ with probability $p$ and $0$ with probability $1-p$. How do I show that $\text{Cov}(y,d)=(E[y|...
5
votes
2answers
8k views

Is ANOVA being misused for these binary data?

Everywhere I have read that if you want to test the hypothesis of dependence of a binary outcome on your data, you should not apply ANOVA (if its incorrect, please let me know). We can apply logistic ...
2
votes
1answer
1k views

How to factor analyze two binary variables only

Normally when I do factor analysis, I have a whole bunch of variables that need to be reduced. But here I only have two binary variables (yes/no) that I need to reduce into one interval factor. Is ...
2
votes
0answers
2k views

How to construct GLMM model for repeated measures with binary responses with lmer

In my experiment I assigned subjects to one of the 3 treatments A, B or C. Within each treatment, a single subject was tested with two models sequentially. The test sequence was randomized. The ...
2
votes
1answer
2k views

What is a binary explanatory variable?

Can someone provide a simple definition of what a binary explanatory variable is? A description in simple terms would be ideal. How would you recognize one?
9
votes
3answers
23k views

Calculating Jaccard or other association coefficient for binary data using matrix multiplication

I want to know if is there any possible way to calculate Jaccard coefficient using matrix multiplication. I used this code ...