# Tagged Questions

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

1k views

### Generate random correlated data between a binary and a continuous variable

I want to generate two variables. One is binary outcome variable (say success / failure) and the other is age in years. I want age to be positively correlated with success. For example there should be ...
191 views

### Detecting clusters in a binary sequence

I have a binary sequence such as 11111011011110101100000000000100101011011111101111100000000000011010100000010000000011101111 Where clusters of mostly 1's are ...
572 views

### Forecasting binary time series

I have a binary time series with 1 when the car is not moving, and 0 when the car is moving. I want to make a forecast for a time horizon up to 36 hours ahead and for each hour. My first approach ...
82 views

### Concerns about the size of odds-ratio estimates in binary logistic regression model

I am creating some binary regressions and am wondering if I should be surprised by the size of the odds ratios. In this particular example, the dependent variable indicates whether a student can ...
139 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 ...
91 views

### 2D binary classification

Background A laboratory wants to evaluate whether a certain form of gel electrophoresis is suited as a classification method for the quality of a certain substance. Several gels were loaded, each ...
61 views

### Normalize binary features for logistic regression

I am applying logistic regression and I am using a mixture of continuous and binary features. My question would be how do you go about binary features when trying to normalize. I would very much ...
228 views

### Modelling a binary response variable with a binary explanatory variable

I'm modeling (using GLM) one binary explanatory variable against a binary response variable. The output looks ok to me, but I'm a biologist with a basic knowledge of stats, I just wanted to ask if ...
89 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 ...
178 views

### How to handle missing data in all explanatory variables in linear regression

It's multivariate linear regression meaning multiple dependent variables (Y). Data A has both X (explanatory variables) and Y, but data B has only Y. I wonder if there is any way to incorporate data ...
76 views

### PAC learning theory and lower bound on the amount of input samples

I am trying to answer the following question: "How much (binary) data do I need for my learner to have seen every variable of the dataset at least once?" In my set-up I am feeding my algorithm binary ...
38 views

### Using R and hidden Markov models to predict pseudorandom binary sequences better than P > .5?

I would to predict a pseudo-random binary sequence of 0's and 1's. I am thinking of using the HMM package in R. I have a binary sequence like ... 0 1 0 0 1 1 0 1 x(n+1)? with thousands of values. ...
192 views

### Binary interaction terms using lmer

I am trying to create a model using the lmer function. The model will contain the continuous response term "Average.profit" and explanatory terms "Type", ...
74 views

### Is there a (parametric) distribution over sparse symmetric, binary matrix-valued random variables?

The title says it all, really. I'm aware of the Wishart distribution for symmetric, nonnegative-definite matrix-valued random variables, and am looking for something along these lines, but for sparse ...
321 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 ...
55 views

### Determine ratio constant and formula for an equitable score in my algorithm

I am working on a algorithm for a software module but decided I was hung up on the mathematical formula so I posted here instead of Programmers. Each scenario will have a team of people competing. ...
202 views

### Changing attributes from nominal to binary

Reading this book, I found the following description regarding model trees for numeric prediction, in which nominal attributes are transformed to binary attributes. Before constructing a model ...
51 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 ...
28 views

### Correlation of one binary input series and continous response series

I have one input series of type 0/1 (it is an intervention time series) and some metric response series. I need to have a look at cross correlations. Normally I would use Box-Jenkins-technique. But ...
65 views

### Prediction based on repeated measure with binary outcome

I'd like to make a prediction about a subject's likelihood that a certain outcome will occur based on a series of measurements taken over time. The easiest way to explain the problem is as follows. ...
199 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 ...
83 views

### Reporting contrasts between binary probability parameters in Bayesian data analysis - odds ratios or difference in probability?

In a bayesian data analysis, if one is modeling differences in binomial/bernoulli probability parameter differences between populations, is it still standard to report the difference in the binary ...
75 views

### Mediation analysis using binary IV and difference scores

I have one IV ($A$) and two DVs ($B$,$C$). $A$ is a binary, experimentally manipulated variable. Each subject has two scores on $B$ and two scores on $C$, corresponding to the experimental ...
118 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 ...
2k 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 ...
75 views

### Binary or multinomial logit?

I am having some doubts on whether I should use binary or multinomial logit. I am modelling product choice. The dependent variable is the choice of either shampoo or toothpaste. Although my dependent ...
468 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 ...
47 views

### Can logistic regression estimates suffering from subsample abuse be salvaged?

Suppose we have some logistic regression modelling problem; $f(X) = Y$, where $Y$ is binary and $X$ is a vector of normally distributed variables. In industry it is sometimes the case that ...
41 views

### Testing association with 0-1 independent variable - how?

I'm looking to demonstrate an association between penalty (overtime) payments and absenteeism. The dependent variable is overtime payments ($0-$highval) for a shift, and the outcome variable is 'was ...
52 views

### Highly significant positive binary IV: Interaction always positive too

I'm working on a project where the main independent variable is binary. We then interact this variable with different continuous variables. The binary variable is by far the most significant variable ...
50 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 ...
85 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 ...
213 views

### How to compare two sequences of binary data?

I have two differing-length sequences of binary values. In each sequence, each value corresponds to an observation which is either right or wrong. I'm looking for a statistical test that addresses ...
159 views

### Quantile regression with dummy variable that's equal to 0 over most $t$

I have the model $Y_t = a + b*X_t + c*D_t + e_t$, where $t \in T = \{1,...,3000\}$ and $D_t$ is a binary variable equal to $0$ over $T \backslash \{20,21,...,30\}$, and equal to $1$ over ...
118 views

### Dichotomous DV and 3 points of measurement per condition within each subject

I have been reading a lot on this site and I think I am going to analyze my data using a mixed model ANOVA- random effect= subject and 2 fixed effects- comparison and pricing. All of my subjects were ...
111 views

### Proving significantly better performance in binary forecasting

I have two different algorithms that make forecasts for binary events. The observed result can either be 1 or 0 (like "rain" or "no rain"). The algorithms usually give a forecast in the 0.4-0.6 range. ...
76 views

### Classifier or regression for binary system?

Lets say you want to create a random forest model that predicts whether a user will click on your search engine ad. Lets say the training data set marks the independent variable (i.e. whether the user ...
30 views

### Which statistical tool can compare binary and ordinal data?

My research question is whether aptitude tests are a good indicator on how students will perform on course exams. I have already performed an analysis on total exam score compared with total aptitude ...
18 views

### Trusting the results of a binary vector comparison

Dear Statistics Experts, I have two pretty long binary vectors (~3 mi positions), and I found the distance between then using Jaccard's Index J=(a / (a + b + c)). After getting the result, I asked ...
27 views

### Confidence with probability values

I am constructing a predictive model for a binary outcome, which gives me results in a "probability-prediction" fashion such as "0.3-YES" or "0.4-NO". The model is working perfectly. My question ...
131 views

### PLS-DA with binary predictors in R (package mixOmics)

I am trying to analyse a dataset with at minimum 50 explanatory variables coded as 0 and 1 for presence/absence and a binary response variable (case/control). The goal is to see how the variables can ...
133 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 ...
53 views

### comparison of sets of binary sequences

I want to compare three sets of binary sequences and assess whether they differ statistically. Each sequence is 100 bits long (the length 0-100 represents the axis of an elongated tissue : if there ...
73 views

### Is there a better alternative to a logit / probit regression when all dependent variables are dichotomous?

I'm working on a clinical trial dataset with binary response. All dependent variables are also binary. My first impulse was to simply run a standard logit/probit regression and be done with it. But ...
240 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 ...
84 views

### Steps followed when Binary logistic regression when both dependent and independent variables are binary

I had set of binary variables. To apply logistic regression, I have checked association between dependent and independent variables and considered only those independent variables in the model which ...
40 views

### Binary classification to evaluate a object classifer. How to merge two samples/groups (different size)?

I'm evaluating a classifier to detect objects. For example: I have a set1 with 50 pictures with the object to detect. And set2 with 100 pictures without the object. I determine the true positves (0 ...
139 views

### Binary logistic regression on SPSS 20 - output seems inconsistent and illogical

I have one categorical dichotomous dependent variable (yes/no - retention of newly learned words) and two independent variables - both are categorical. One independent variable is "delay between ...
### 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 ...