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
2answers
21k views

Likert scale and yes/no calculation of one score

My survey is based on observations and interviews. The observation questions are yes/no type questions and interview questions are 4 points. $1=$ never, $2=$ sometimes, $3=$ usually, and $4=$ ...
0
votes
0answers
17 views

Feature importance interpretation in logistic regression [duplicate]

I am using the feature importance of logistic regression to rank the most influential features. My problem lies that I do not how to exactly interpret the results of the feature importance. I know ...
1
vote
1answer
196 views

Analysing Binary data in a mixed design?

I ran a study with two IVs, a between-subjects manipulation Hands vs NoHands, and a within-subjects manipulation High and Low. The outcome of what participants did was recorded and then show to one ...
3
votes
1answer
361 views

Binary logistic regression with compositional proportional predictors

I am running a binary logistic regression with compositional predictors that sum to 100% (demographic categories). I've looked at several postings about this, but can't find a good solution to my ...
0
votes
0answers
29 views

Testing underlying, latent normality of binary data

I have two multivariate binary datasets of 4 variables (or components) - P, Q, R and S each. Each row of the data is like a test on the components to say if they work (0) or fail (1) when tested. The ...
10
votes
1answer
227 views

Correlation between two binary variables within one categorical variable

The Problem: I have measured two binary variables within 1 categorical variable with 5 levels. Initially, I thought I'd be able to use Fisher's Exact test or some $N \times M \times K$ version of it. ...
1
vote
0answers
19 views

Help with understanding metrics for imbalanced classification

I am trying to train a neural network to classify chest X-ray scans as my final MSc project. I have a dataset of 13808 image, 3616 labelled COVID, 10192 labelled normal, so the ratio of COVID to ...
0
votes
0answers
16 views

Marginal effect of binary choice model

Suppose we have a standard binary choice model. However, the regressors $x$ are partitioned into two parts: $x = (x, d)$, where $X_1\in R^k$ and $d\in(0,1)$. $\beta = (\beta_1, \beta_2)$ are ...
1
vote
1answer
19 views

can multiple regression be applied when all variables are nomina binary dichotomoir.. ONE DV Y/N; 3 IV Y/N

Can multiple regression be applied when all variables are nominal dichotomous? Dependent variable: Y/N (binary) 3 Independent variables: Y/N (binary)
0
votes
0answers
11 views

Using -1 instead of 0 in binary Restricted Boltzmann Machines

I am aware of the fact that binary Restricted Boltzmann Machines - which use $0$ or $1$ as states - are asymmetric, in the sense that two states have to be both $1$ for $w_{ij}$ to enter in the energy ...
7
votes
3answers
170 views

Probability that a device turns off in n seconds

At zero time a device is on, and can be turned on or off at any time. Let $p_1, p_2, \dots$ the probabilities that the device is off at times $1, 2, \dots$. What is the probability that the device ...
0
votes
1answer
15 views

Model for a dataset with Multiple observations of an id

I have a dataset with multiple observations for a user (by id (1,2,3,4...)), I have converted the time column into 12 binary variables (January, February, March, April....) because I thought the time ...
2
votes
1answer
546 views

Using binary factors as predictor variables in piecewiseSEM in R

I am looking for help with the use of categorical binary predictor variables in the piecewiseSEM package in R. I am inspecting the effect of two categorical variables on one continuous response ...
0
votes
0answers
19 views

GLM with ANOVA and Tukey as post hoc show no significant difference between two groups that seem very different

I'm new to stats and english is not my first language, sorry if this isn't really clear, but I would hugely appreciate your help. I want to compare five pollination treatments (AU, AUTO, C, EN, PS) to ...
3
votes
0answers
57 views

Confidence intervals for binomial generalised linear model with cauchit link function

The correct way to calculate a confidence interval (CI) for a generalised linear model (GLM) and avoid the problems of normal approximation intervals has been adequately discussed by Gavin Simpson ...
4
votes
2answers
402 views

Is it appropriate to report the mean, standard deviation and coefficient of variation for binary measurements?

I am reading an article where the authors reported the mean, standard deviation, coefficient of variation, minimum and maximum values for binary measurements/variables. In the summary table the ...
0
votes
0answers
19 views

Same accuracy per epoch with Keras package model for binary outcome [duplicate]

I'm new to R and only had one course in data science. I am trying to predict a next-day stock market's direction based on technical indicators. The dataset (preprocessed in Excel, 684 predictors and ...
0
votes
0answers
30 views

Identify respondents that treat continuous data as binary

Setup: Respondents provide answers on a slider ranging from -100 to 100. Some treat the data as binary - see "data_to_reject" and "...
1
vote
0answers
13 views

Siamese Network for face comparison wont learn, accuracy stuck on 0.5, and loss stuck too [duplicate]

I'm trying to train a siamese network which contains a CNN and an embedding layer at the end to yield 2 similar (close) vectors for 2 images of the same person. I'm using the LFW_Cropped dataset, and ...
0
votes
1answer
17 views

How do unbalanced classes in binary predictors affect the regression of a continous or binary outcome?

I would like to learn more about how unbalanced binary predictors affect type I or type II error in regression models. I am aware that having unbalanced binary outcomes can increase type II error. I ...
1
vote
1answer
151 views

Which analysis to use for nominal (binary) dependent variable with multiple IVs of various types?

I have 1 dependent variable (DV) measured in binary (Exam, pass/fail), 3 independent variables (IV-1 is continuous (age, in years), IV-2 is binary (Country, Canada vs. US), and IV-3 is nominal, but ...
5
votes
1answer
73 views

Interpretation of the autocorrelation of a binary process

Every second, a device returns the value 0 or 1. The values were recorded several hours, so a list like this one [1,1,1,0,0,1,0,1,...] was obtained. What is the meaning of the corresponding ...
0
votes
1answer
242 views

Similarity between n >> 2 binary vectors

I have $n$ binary vectors $x_i, ..., x_n$ of length $d$. I wish to compute a similarity measure between all $n$ of them. My initial thought was to use the Jaccard Index, since each binary element $x_{...
3
votes
2answers
8k views

Linear Regression For Binary Independent Variables - Interpretation

I have a dataset where I want to predict inflow (people joining a platform) but my all independent variables are binary categorical (0,1). Whereas I want to predict continuous variable (inflow -- ...
5
votes
2answers
258 views

Quantile Regression with Regression Discontinuity

Sort of a methodological question: If one has an exogenous binary treatment and a continuous outcome variable Y and wants to estimate quantile treatment effects by exploiting a (sharp) discontinuity ...
0
votes
1answer
183 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"(...
2
votes
1answer
61 views

Cluster analysis with interchangeable, binary classes

The Data: I have the results of an experiment where participants were given 30 stimuli and asked to sort them into two groups. The participants were asked to sort them into the two groups without any ...
0
votes
1answer
23 views

Very low values of explained variance for the first Axes from PCoA

I am comparing different sites based on their floristic composition in R. Therefore, I have created a huge community datamatrix (presence/absence data) from 53 sites including over 1000 species. To ...
1
vote
0answers
28 views

Are “corr.test” or “ggcor” (in R) showing anything useful when using it with two binary variables?

I understand that it's using "Pearson's product-moment correlation" and it's using biserial correlation when one variable is binary and the other is continuous. What is it doing when given ...
2
votes
1answer
303 views

Which test to use? Repeated measures with binary outcomes

I would like your opinion about which analyses to use for the research question. I've got a repeated measures with binary data. N = 20 H0 = there is no difference between pre and post measurement ...
3
votes
1answer
32 views

More than two genders: Treating gender as factor or logical (for propensity score matching)?

I am matching two samples using a propensity score (I am using the MatchIt package in R as described here: https://www.r-bloggers.com/2016/06/how-to-use-r-for-matching-samples-propensity-score/). One ...
4
votes
3answers
366 views

Why isn't the ROC curve naturally plotted in 3D? [duplicate]

Something that really confuses me with how ROC plots are generated is that, according to Wikipedia: The ROC curve is created by plotting the true positive rate (TPR) against the false positive rate (...
0
votes
0answers
32 views

Correlation between categorical variable and binary variable?

Given a categorical ordered variable with more than two categories (e.g. education) and a binary variable (e.g. gender). Is it reasonable to use correlation as a measure of how both are related? My ...
2
votes
1answer
348 views

Difference between cumulative gains chart and cumulative accuracy profile for binary classifier

I am confused about the following: Here I find the definition of cumulative gains chart as the plot of x-axis: the rate of predicted positive y-axis: true positive rate It turns out that we can e....
1
vote
1answer
20 views

What means a log-odd very close to 0?

I'm running a binary logistic regression and when put in relation with one specific continuous variable, I get a log-odds (Beta) of 0.001 and a odd ratio (Exp(B)) of 1.001. No matter what other ...
0
votes
0answers
16 views

How to avoid having only one class during cross-validation

I have to perform a binary classification. My dataset is quite small 280 samples and quite imbalanced (1:10 ratio). I kept around 100 sample as testing and about 140 for training. My input variables ...
0
votes
0answers
9 views

Dynamic panel with binary outcome

Suppose I have a dynamic panel data model with unobserved heterogeneity. $$ y_{it} = \alpha y_{1,t-1} + \boldsymbol{x'_{it}\beta} + \epsilon_{it} $$ $$ \epsilon_{it} = \mu_{i} + \upsilon_{it} $$ I ...
4
votes
1answer
4k views

How do I cluster data according to Hamming distance

I've a list of binary strings and I'd like to cluster them in Python, using Hamming distance as metric. I also would like to set the number of centroids (i.e. clusters) to create. Which algorithm do ...
0
votes
1answer
539 views

How to compare two groups + binary variable?

Sorry about my language, i'm from Brazil I need help about which test should i use to compare differences between two groups that answered a binary varible In my case, the groups are Sex (male or ...
1
vote
0answers
10 views

What correlation coefficient should I compute if I have a dichotomous variable and an ordinal variable with tied ranks? [duplicate]

I am not sure if I will compute the rank-biserial correlation coefficient since the formula assumes that there are no tied ranks. To provide further context, here is my data: Note: The dichotomous ...
2
votes
0answers
54 views

Logistic Regression with Newton's method

Consider the prediction of a binary value $G$ on the basis of a quantitative predictor $X_1$. I use a linear logistic regression (without intercept) for predictions. I want to know if I have formed ...
2
votes
1answer
198 views

What is the interpretation of an S-shaped curve in the plot of eigenvalues of covariance matrix

From PCA's point of view, eigenvalues of covariance matrix should correspond to the principle components. Therefore, when we plot these eigenvalues on a data sets with some clustering pattern, we ...
1
vote
1answer
438 views

Finding the p value for binary data

I have made an experiment with binary outcomes, and I struggle with calculating a p value to decide if it is significantly different than the control group. There were two sets of identical cells: one ...
0
votes
0answers
17 views

How can compare suggestion models with different performances?

I have 4 class binary classification models. That models identify which class a particular students is suitable for. For example, we have user 1 and 4 classes ...
2
votes
2answers
3k views

Multivariate Logistic Regression in R or SAS

I was wondering whether there is a specific procedure in either R or SAS which can handle binary correlated data (multivariate logistic regression). More specifically I have a sample of 400 ...
2
votes
1answer
341 views

Can we add a new class to SVM?

Consider we have a binary SVM classifier, classifying event A and event B and we want to add another class (or more) say event C, to our SVM. Can we add C without using the training data of event A ...
0
votes
0answers
10 views

STATA: Conceptual Question about Pairwise Correlations and Linear Regression with Dummy Variables

I'd like to seek some guidance from this forum on the usage of dummy variables in pairwise correlations and linear regression. I'm fairly new to this concept. Appreciate your help in advance! Context: ...
3
votes
2answers
51 views

Testing for equal proportions when sample sizes are very small

Suppose I observe binary data for two samples (hopefully the notation below is obvious) and I wish to test the hypotheses: $$H_0: p_1 = p_2$$ $$H_A: p_1 \neq p_2$$ I know there is a $z$-test for doing ...
0
votes
0answers
12 views

Extracting Single Conditional Distribution from Binary Linear Gaussian Model?

I'm not sure how to best phrase the title, so if anyone has suggestions, I welcome them. I have a sequence of binary latent variables $z_1, z_2, ...$ and parameters $\phi_1, \phi_2, ...$ with $\phi_k \...
1
vote
1answer
997 views

Recall equals to accuracy but different to precision

I've read this question, and basically I'm having the same issue. I'm dealing with a binary classification problem. I'm calculating the precision, recall and f1 using ...

1
2 3 4 5
24