Questions tagged [chi-square-test]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
24 views

Chi-square test results interpretation

I am comparing with Chi Square the distributions of two categorical variables. Both have the same number of classes. After counting each class per variable, I obtain very similar counts but the p-...
crbl's user avatar
  • 111
2 votes
1 answer
85 views

Multiple Hypothesis Testing in feature selection process

I am doing feature selection of features which are of binary nature i.e. each feature represents presence or absence of a substructure in a molecule. And I have a target variable of two classes. My ...
As13's user avatar
  • 77
0 votes
0 answers
6 views

Sales Comparison problem, how to apply Chi Square Test or alternatives?

Lets Say Before Pandemic, the Sales of Product A, B, ,C and D, are 780 , 350 , 250 , 100, This is an Average of 36 Months , considering 12 months of Pandemic data is ignored, and after pandemic, 730 , ...
user2458922's user avatar
0 votes
0 answers
12 views

(Apparently) Inconsistent Results Between Visual Patterns and Chi-Square Test in Categorical Data Analysis

I'm stuck while working on a categorical data analysis project and would appreciate any insight. Here are the first 4 rows of the dataset: successful_upload feat_1 feat_2 0 T>2 <\$10K 1 0.5&...
Sherwood's user avatar
0 votes
1 answer
71 views

When using Chi-Squrare test in feature selection makes sense?

What are the prerequisites that need to be fulfilled before conducting a chi-square test (Bivariate analysis)? For instance, before having a correlation matrix, we should first ensure linearity. What ...
user's user avatar
  • 1
0 votes
1 answer
59 views

Feature Selection - determining the significance of imbalanced categorical data column

I have a dataset with a categorical column that contains three categories. One of the categories represents 98% of the data, while the remaining 2% are distributed between the other two categories, ...
user151171's user avatar
0 votes
0 answers
22 views

Chi-Sqare test and Continuous values

How does chi-square test work for continuous variables. I see that it is used in most papers to test dependencies between continuous explanatory variables and the target variable. Please how does this ...
Akwa Gaius's user avatar
2 votes
2 answers
125 views

Whether Chi-square statistic Test helps us to assess a non-linear correlation between two categorical variables?

I have two categorical variables: sports level (1, 2, 3 and 4) and Use of supplements (Yes and No). I analyzed whether they are independent by the X² test, and their association was significant. I ...
Géssyca T. de Oliveira's user avatar
1 vote
2 answers
966 views

Are Chi-square and ANOVA (f_classif) to select best features?

I have a binary classification problem (target 0 o 1), I have both variables continuous and categorical as features. I understood that about Chi-square i can use only categorical features to evaluate ...
SimoneA's user avatar
  • 41
0 votes
1 answer
39 views

How to demonstrate two variables are orthogonal with respect to the output in a 3-D Python dataset?

I have a Python dataset with 300 samples and 3 columns: 2 independent integer variables X,Y and the dependent continuous variable ...
Adrián Pérez Diéguez's user avatar
0 votes
1 answer
116 views

"Chi-squared approximation may be incorrect" on hypothesis test

I'm doing a hypothesis test to determine if the data follows binomial distribution with p=0.31, and I'm getting a warning when running this: ...
AlePouroullis's user avatar
0 votes
1 answer
42 views

Goodness on test or train set?

I split my data set before on train (80%) and test (20%) splits. Trained logistic regression model on the train set. Now, want to check the goodness of fit using the Chi-square likelihood omnibus test,...
Bambeil's user avatar
  • 111
0 votes
1 answer
135 views

For feature selection, do we use Chi-squared with Mutual Information together?

Or do we only choose one out of two for categorical data.
O O's user avatar
  • 1
0 votes
1 answer
639 views

Does one-hot encode effects chi-square test?

I am doing a feature selection for a data science project with one of those feature being a high cardinality categorical variable (for context, it’s nationality). I know chi-square test could handle ...
Reynard Ryanda's user avatar
2 votes
2 answers
1k views

Does t-test require Standard Deviation of sample for calculation

Might be a novice question, but the main difference between a t-test and z-test, I was able to understand, is that the z-test calculation requires the SD value of the population where as in a t-test, ...
Chris_007's user avatar
  • 193
0 votes
3 answers
4k views

p-value of chi squared test is exactly 0.0

I need to do a chi square test of two of my dataset's categorical variables. This two variables have basically the same meaning but comes from two different sources, so my idea is to use a chi square ...
Michele Papucci's user avatar
1 vote
1 answer
104 views

Why do I get this result with a chi- square test?

I have a question about the chi squared independence test, I'm working on dataset and I'm interested in finding the link between the categories of product and the gender, I plot my contingency table. ...
Polaster's user avatar
1 vote
1 answer
59 views

Low P value in Chi-squared test but low coefficient in logistic regression

I ran a chi squared test on multiple features & also used these features to build a binary classifier using logistic regression. The feature which had the least p value (~0.1) had a low ...
user16584277's user avatar
0 votes
1 answer
35 views

Multiple Hypotheses in python

I want to write a method to test multiple hypotheses for a pair of schools (say TAMU and UT Austin). I want to consider all possible pairs of words (Research Thesis Proposal AI Analytics), and ...
stacky's user avatar
  • 1
1 vote
0 answers
42 views

Should I remove features such as gender and birth month before drawing the heatmap because they are categorical?

I am working on a dataset that has both categorical and numerical (continuous and discrete) features (26 columns, 30244 rows). Target is categorical (1, 2, 3) and I am performing EDA on this dataset. ...
leahnanno's user avatar
1 vote
1 answer
42 views

How to get correlation between the categories of two categorical variable?

I have a categorical variable with 2 categories ("Health") ('healthy', 'not_healthy') and another categorical variable ("country") with 5 categories ("english", "eua&...
bonaqua's user avatar
  • 11
0 votes
1 answer
80 views

Chi-Squared test: ok for selecting significant features?

I would have a question on the contingency table and its results. I was performing this analysis on names starting with symbols as a possible feature, getting the following values: ...
V_sqrt's user avatar
  • 295
2 votes
1 answer
445 views

What is the best alternative for Fisher's Exact test for contigency tables that are NOT 2x2?

I am a newbie to data mining. I am trying to find associations between two categorical variables. Since more than 20% of my expected frequencies are less than 5, I wanted to use Fisher exact test but ...
wilma297's user avatar
2 votes
1 answer
282 views

Interpreting the results based on Granger Causality test

I am trying to use Granger Causality test: https://www.statsmodels.org/stable/generated/statsmodels.tsa.stattools.grangercausalitytests.html to assess whether "positivity score" affects ...
Darcey BM's user avatar
  • 197
1 vote
0 answers
68 views

Chi Square Test Goodness of Fit

I want to use a chi square test but I'm unsure if I'm using it right. The KickStarter website shows the frequency of main categories projects. It is updated once a day. I got a data set of KickStarter ...
Laurent's user avatar
  • 53
0 votes
1 answer
155 views

Chi-square test - how can I say if attributes are correlated?

I am experimenting a course's teorical contents on this dataset. After data cleaning, I am trying to use chi-square test. I wrote the following code: ...
user96624's user avatar
  • 169
1 vote
2 answers
964 views

Linear regression with a fixed intercept and everything is in log

I have a set of values for a surface (in pixels) that becomes bigger over time (exponentially). The surface consists of cells that divide over time. After doing some modelling, I came up with the ...
a0142204's user avatar
1 vote
0 answers
125 views

Using a Subset of Categories in a Categorical Column

I have a XGBoost model and I'm going to retrain it by adding new features. There is a column in my data and it's about professions of the customers. It has 60 categories. I suppose there is no need to ...
tkarahan's user avatar
  • 422