Questions tagged [binary-data]

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

Filter by
Sorted by
Tagged with
2
votes
0answers
209 views

Poisson Regression for binary outcomes - why is legitimate?

I have learned - and taught - that to build a regression model for a binary outcome one should use a logistic regression, for a outcome that has discrete counts one should use the Poisson regression, ...
0
votes
1answer
1k views

Linear probability model with fixed effects?

If I want to estimate a linear probability model with (region) fixed effects, is that the same as just running a fixed effects regression? Maybe I'm getting tripped up with the language and whether I ...
1
vote
0answers
19 views

Estimating a linear probability model on a subsample

I am dealing with a situation where I have a binary outcome variable $z \in \{0,1\}$ for treatment under a program that ran from 2000 to 2010 (so units were treated throughout the period). In my data, ...
1
vote
0answers
22 views

Interpretation of hierarchical clustered binary dataset

...
2
votes
0answers
71 views

Is better to use a multiclass classifier or a set of binary classifiers?

I have to build a general method to perform multiclass classification. The number of class in the target variable is not fixed (it is probably in a range between 3 and 10). I would like to know if it ...
0
votes
0answers
14 views

What is a good metric for a binary classifier when we are more interested in Precision than Recall but care about confidence scores?

I have an heavily imbalanced dataset and am training a binary classifier (which produces scores in the range 0 to 1) and need a single summary metric to tune hyperparameters with. For my problem, ...
0
votes
1answer
38 views

Is logistic regression the way to go?

My data has two dichotomous variables: culture (A and B), emotion (X, Y). Participants in two countries (A and B) rated 16 sound-clips on these two variables. RQ1: Are people able to distinguish ...
3
votes
1answer
55 views

Exact distribution of number of transitions in a binary vector of length $n$

I am trying to derive an analytic solution for the exact distribution of the number of transitions in a binary vector of length $n$ conditional on the observed number of $1$'s and $0$'s and under the ...
2
votes
1answer
125 views

Finding optimal point in roc curve giving weighs to true positives and false negatives

I have a binary classification model whose ROC curve looks like the one below. The black point is the optimal probability threshold to use by calculating the geometric mean. However, that's a pretty ...
1
vote
0answers
34 views

Multilevel binary logistic regression assumptions

I am struggling to work out the assumptions of hierarchical binary logistic regression, to test whether my data is suitable for such an analysis. My data is repeated measures (each participant ID ...
0
votes
0answers
17 views

How do I calculate the expected value of a binomial distribution for a genetics example?

I have model with 20 genes which can take on a value of 1 or 0 (the alleles). What is their expected value and variance assuming the alleles are selected with equal probability? Is this just a ...
0
votes
1answer
45 views

Regression interaction terms in stata

I am currently studying the relationship between having a supervisory job and having traditional values when it comes to child care (woman staying home). I want to find the relationship with ...
2
votes
1answer
22 views

Accuracy of repeated measuring of binary data

Suppose there is a device that can measure binary data (0 and 1) with 90 percent accuracy. I have used this device and measure the same data twice (or in another scenario three times). If in both ...
1
vote
0answers
31 views

Is the random slope for a binary, categorical variable in a mixed model also reported in reference to one of the categories?

I'm wondering if I should be interpreting an estimated random slope for a binary categorical variable in the same way that I should be interpreting it if it were a fixed effect. That is, is it ...
0
votes
0answers
13 views

Help Correlating Particle Count (Dirtiness) to Chip Pass/Fail

I have two datasets that I’d like to correlate in a way that is helpful and predictive. In our process, we a have a single work piece that should be perfectly clean that will eventually become many ...
1
vote
0answers
17 views

At what level of x (continuous measure) do two binary measures diverge?

Participants at different ages (continuous-data) responded to yes/no questions (binary-data) in two conditions (within-subjects). Younger participants responded similarly to both questions, whereas ...
0
votes
1answer
21 views

How to pick a classifier?

I have multiple datasets of comparable shape. I want to train a separate binary classifier for each of those datasets. These datasets have two problems Too many dimensions: (E.g. 1 dataset has 160 ...
3
votes
2answers
86 views

Multilevel between-subject design using glmer

I want to test the effect of different learning strategies across time. Conditions were manipulated between subjects. Each participant answered the same set of binary questions across 3-time points....
0
votes
0answers
55 views

Unsupervised analysis of sparse binary variables

I have a dataset with approx 5,000 customers (ID). Each customer bought between 1 and 20 different items (I) (total of 10,000 different items) ordered within classes of items (C) (total of 450). All ...
0
votes
0answers
11 views

How can i analyze retrospective binary data?

I have a population of data sampled form 2019. The total number is 118. I am looking at several different variables. The main variable is whether or not a test is performed so 1 yes or 0 no. And ...
1
vote
0answers
52 views

What's wrong with my binomial logistic regression model please? (SPSS) [closed]

I am running a binary logistic regression in SPSS (standard, no stepwise) containing 20 predictors (binary and continuous) and have the following problems: 1) it correctly classifies ~the same % as ...
2
votes
0answers
80 views

Mixed effect model with zero inflated binary (0,1) response where one level of fixed effect has all 0s. Won't converge

I am trying to use a mixed effect model to determine the relationship between year, season, and depth (my fixed effects) on nutrient outlier presence (dependent variable, 0 or 1). I have two random ...
3
votes
2answers
56 views

Binary representation: -1 vs 0

I commonly see {0,1} used in representing pass/fail data, but I recently found a case where I was given a data set with {-1,1} to perform some pre-processing. So, I'm wondering whether I should keep {-...
2
votes
3answers
42 views

drop features with one class zero variance

If a feature has zero variance, then it makes sence to drop it as is it has no predictive power. What if a feature has zero variance only for cases that belong to one class but not in the other (...
2
votes
0answers
12 views

Identifying largest impact among multiple binary predictor variables on continuous response variable

I am trying to analyze the effect individual product changes have on the changeover times in a production system to determine which product change incurs the largest "penalty" in a changeover ...
1
vote
1answer
263 views

Does it make sense to use ANOVA with one-hot-encoded data?

I have a data set with different feature types (numerical and categorical). I applied one-hot-encoding to the categorical features and then used ANOVA to find most relevant features. 6 of 66 features ...
0
votes
0answers
184 views

What statistical test is good for two groups of yes/no data set?

I have to detect certain bacteria and used two methods for same 200 samples. I have tabulated two methods as below: ...
2
votes
1answer
59 views

Is constructing a simulated model for a fixed SNR possible in binary regression?

When studying variable selection techniques like step-wise regression and the LASSO, a few studies employ a signal to ratio measure in order to control the amount of variability in a simulation. ...
0
votes
1answer
136 views

SEM: High SRMR in model with binary predictor. Other fit indices OK [closed]

In this post I may display severe lack of understanding in SEM and the math behind it so please be kind. I am testing the following structural model with lavaan using MLM (due to non-normality) with ...
0
votes
0answers
36 views

Correlation Between Binary Variable and Continuous

Y is a binary variable (0 or 1) and X is a continuous variable. What would be the best way to check how these variables are correlated? Specifically, I'd like to check if the distribution of X | Y=...
0
votes
1answer
54 views

Binomial & numerical variables as dependent and independent + random variable

I am new to statistics and trying to figure out how to analyze my data correctly. I completed a biological study with the following variables: (I have converted my binary variables to 1 and 0) -Type ...
0
votes
1answer
32 views

Computing Gradients for a [-1, 1]-valued RBM

The gradient derivation for a binary-valued RBM with values $\in\{0,1\}$ is well-documented, for example in Goodfellow, et al and here on Cross Validated. However, in some works (e.g., associative ...
0
votes
0answers
13 views

Finding an association between two methods of medical intervention and a continuous variable [duplicate]

I have here with me, two methods of intervention; a standard care method, and a specialised intervention. Different individuals receive different method, its all randomly allocated. I am trying to ...
1
vote
0answers
36 views

How to find initial feasible point for the dual problem of SVMs (Support Vector Machines)?

Problem Is there a systematic way of finding an initial feasible point for the dual problem of an SVM? Context I'm writing an implementation of Support Vector Machines for Binary Classification in ...
0
votes
1answer
180 views

Binary Classification problem for imbalanced dataset

I am new to machine learning and need help. I have a dataset with two classes(0,1) where is 0 is Profitable and 1 is Unprofitable. Ratio of 0:1 in train set is 150/52 Taking positive as "1"(...
0
votes
0answers
138 views

Data Science Take Home Challenge Interpretation of Question

I am currently applying for a Data Science position and have to finish a take-home challenge for one of the companies. However, I don't really understand what they want me to do and hope you can help ...
3
votes
1answer
39 views

GLMM in seed germination study

I have an experimental design measuring germination of a single species of tree under different treatments. The treatments include; cattle grazing and no cattle grazing and rodents and no rodents. The ...
0
votes
0answers
27 views

Diagnostic plots GLM [duplicate]

I done a binary regression,it's possible that the the plot of residual vs Predict has two different line? I never see before one like this
1
vote
0answers
45 views

Formula for testing for equivalence for binary paired data

I am trying compute p-values for an equivalence test of paired, binary data (coming from two different tests, without known ground truth). I followed the paper of Liu et al (DOI: 10.1002/sim.1012) ...
1
vote
1answer
300 views

Can the output of a probit regression with a Z-score predictor be interpreted as a standardised effect size?

I want to obtain a standardised effect size for a regression with a binary outcome. If I standardise the (continuous) predictor and run a probit regression, the resulting coefficient can be ...
0
votes
0answers
35 views

problem with diagnostic plots for binary regression

I make a binary regression to study Italy's poverty/non poverty on R. mod1<-glm(status~CLETA5+cit+AREA3+Q+studio+ACOM5+godabit,data=total,family=binomial) I don't know if the diagnostic plots are ...
1
vote
1answer
22 views

How to account for similarities in features when clustering?

I have survey data from students who were asked to rate (yes/no) if a math equation was useful for a set of four educational purposes. Students were ask to answer this survey for five different math ...
0
votes
1answer
88 views

Is AUC for binary predictor equal to balanced accuracy?

... because they come up the same when I compute them for binary predictions. So either they are the same, or I have something wrongly implemented.
2
votes
2answers
57 views

Rain overflow modeling: Categorical variables or separated models?

I'm working on a project where I have to predict rain overflow due to rain for 5 sewer locations. I have a file which tells me if there is a rain overflow (=1) at a given date for a given sewer or no (...
2
votes
2answers
87 views

Compare Leave-One-Out cross-validated performance of classifier across two datasets

I am trying to determine whether there is a statistically significant difference between the performance of a SVM classifier on two different datasets. The performance of the classifier is determined ...
1
vote
0answers
26 views

Mediation analysis with all binary variables

I am seeking to run a mediation analysis on a dataset in which the outcome variable, the mediation variable and the main input variable are all binary. Is this going to be possible? If so would anyone ...
3
votes
0answers
133 views

How can I calculate the power of my analysis with binary response data?

I have three groups with ~ 15 individuals per group. Group 1 gets a treatment Group 2 is a control in the same area Group 3 is a further control in a different area The response is binary, 1 or ...
1
vote
1answer
142 views

How to perform multiple tests of contingency tables with more power: Fisher's / Barnard's test vs Logistic regression

I have a sample of answers to Yes / No questions: \begin{array} {c | c c c c} \hline \text{Case} & X_1 & X_2 & X_3 & X_4 \\ \hline 1 & 1 & 1 & 1 & 1 \\ 2 & 0 & ...
1
vote
0answers
282 views

Exact four-sample proportion test for difference-in-differences analysis?

Assume I have a binomial variable. I can test whether the proportion is different from zero, using an exact test. I can test whether the proportions in two samples are different, using an exact test ...
0
votes
0answers
26 views

Analysing serial dependence in binary sequences

Suppose, I have a generator of a binary time series $x_t$. The generator produces a $1$ with probability $q$, except when there was a previous trial and the previous trial was a $1$: in this case the ...

1
3 4
5
6 7
24