# How to compare two groups with a single binary measurement

I have two groups of people (for example male and female) and I performed an experiment on both groups with a single binary measurement. (for example I observed if each subject has performed a specific action (noted as 1) and if the subject didn't performed that particular action (noted as 0). Now I want to compare the two groups and see if these two groups are similar or not regarding performing this action. So I have two groups (male and female) and my dependent variable is a single binary measurement. I wanted to ask what statistical method can I use to compare these two groups. (note that my sample size are small like 23 subjects for each group. Is independent t-test a good approach for it or because my measurement is binary then I need another statistical analysis. thanks in advance.

• I personally don't have background in statistics, and I am a bit confused because when we have binary measurement how could we have a normal distribution. But I am sure there should be test for this kind of experiment. at first I tried to perform independent t test, but I need to calculate the mean value, and by binary data, I have seen that we don't have mean value. Commented Mar 9 at 10:52