# Questions tagged [binary-data]

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

1,176 questions
Filter by
Sorted by
Tagged with
285 views

### Can a categorical variable be divided by a numerical variable?

I am reading P.R. Rosenbaum, Model-based direct adjustment, Journal of the American Statistical Association, 1987 (82), pp. 387-394. However, there is one equation, which I can't understand.  d = \...
5k views

### Inverse probability of treatment weighted (IPTW) estimator for a binary outcome

Recently, there are several estimators have been proposed to estimate the average treatment effect (ATE) in observation studies, such as IPTW, doubly-robust estimator, etc. It fully makes senses to me ...
366 views

### Discretize frequency of words that follow zipfian distribution

How could I discretize the frequency of words found in a corpus that follow a zipfian distribution? Are there standard methods? It should create bins of exponential-increasing size. My goal is to ...
2k views

### Canonical correlation analysis with continuous and binary data

I came across interesting article on application of canonical correlation analysis (CCA). Authors apply classical CCA on a mixed variables dataset (both independent and dependent sets include ...
199 views

### How can I compare my model to a technically invalid model?

I've created nice little nonlinear model relating survival probability to length in salmon. I fit it assuming binomial errors and minimizing the negative log likelihood. I've been asked to compare it ...
19k views

### Measuring entropy/ information/ patterns of a 2d binary matrix

I want to measure the entropy/ information density/ pattern-likeness of a two-dimensional binary matrix. Let me show some pictures for clarification: This display should have a rather high entropy: ...
52k views

### Why is gender typically coded 0/1 rather than 1/2, for example?

I understand the logic of coding for data analysis. My question below is on the use of a specific code. Is there a reason why gender is often coded as 0 for female and 1 for male? Why is this coding ...
18k views

### What is the effect of dichotomising variables?

When dichotomising variables, what information is lost in the process? How does a dichotomisation help in the analyses?
49k views

### Doing principal component analysis or factor analysis on binary data

I have a dataset with a large number of Yes/No responses. Can I use principal components (PCA) or any other data reduction analyses (such as factor analysis) for this type of data? Please advise how I ...
2k views

### Local polynomial (linear) regression of binary data — logit transformation?

I got a bit confused about how to fit a local polynomial to binary outcomes if I would rather approximate the underlying index (within a link function) instead. (Basically for the same reason why ...
7k 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 ...
4k views

### How to perform regression on a nominal variable using many binary explanatory variables?

I have a dataset: Response: categorical, 9 levels. 23 predictors: binary, with many 0's. Number of samples: 64. I'm interested to know the dependence of (each level of) the response on predictors. ...
145 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. ...
609 views

### Assessing statistical significance of a rare binary event in time series

I have a univariate time series which is an index of susceptibility to failure, and a binary variable which indicates whether a failure actually occurred in a given time window or not. I want to carry ...
254 views

### How to test component failure in a general way?

Let's say I have 100 parts. I sample one part and find it defective. I then sample another five parts and do not find them defective. What statistical procedure would I use that combines this ...
1k views

### Analyzing (hierarchical?) clustered pair-matched binary data

We teach supplementary lessons in nearly two dozen local schools, and have two data sets of approximately four hundred records each from pre-post tests given at these schools. Each record contains pre ...
12k 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 ...
6k views

### Assessing and testing inter-rater agreement with kappa statistic on a set of binary and Likert items?

I am trying to calculate inter-rater reliability scores for 10 survey questions (on which there were 2 raters)--seven questions are binary (yes/no), and 3 are Likert-scale questions. Should inter-...
20k views

### How to calculate SE for a binary measure, given sample size n and known population mean?

Lets say there is population of measurements X, and 50% of those X = 1, and the the other 50% = 0. Therefore, population mean = 0.5 given a random sample of size n, how do you determine the SE of ...
7k views

### Recommended procedure for factor analysis on dichotomous data with R

I have to run a factor analysis on a dataset made up of dichotomous variables (0=yes, 1= no) and I don´t know if I'm on the right track. Using tetrachoric() I ...
1k views

### Multiple comparisons with binary data: Hsu's MCB method

Given a factor with a number of levels, say for example, versions of a banner advertisement on a web page, where the measurement of interest is the click through rate (# clicks / # of times banner add ...
12k views

### Calculating significance of difference between two binary values on one dataset

Suppose my sample comprises 350 instances. Each instance has two independent binary (pos and neg) evaluations, A and B. If my ...
2k views

### Whether to use factor analysis based on binary multiple response data?

I have a survey where I have asked people which type of computer games they enjoy and whether they consider themselves a hardcore gamer. I allowed people to select multiple genres, but now I am unsure ...
8k views

### For a classification problem if class variable has unequal distribution which technique we should use?

for eg. if I have a class variable credit scoring with two classes good and bad, where #(good) = 700 and #(bad)= 300. I do not want to shorten my data. which technique I should use? I was using SVM ...