Skip to content

Conversation

oliver-czulo
Copy link
Contributor

test contingency tables for independence of observations

test contingency tables for independence of observations
@estebanz01
Copy link
Owner

thank you! 🙏 I promise I'll review this week. Lots of stuff going on at the same time.

@oliver-czulo
Copy link
Contributor Author

thank you! 🙏 I promise I'll review this week. Lots of stuff going on at the same time.

No worries, took me long enough how to do a rebase properly 🙈 I grew up with SVN, and GIT concepts can be quite different... Looking forward to your feedback, any time 😃

@estebanz01
Copy link
Owner

Hi! Sorry for the looooong review. I was reading lots of theory around it to make sure we have a robust scenario.

Can you add the following information as a test case? After that, we just need to merge it!

Relationship between Region and Product

  • Alpha: 0.05
  • Chi-score ~ 38.2484
  • p-value ~ 0.00000100449

source: https://gplresearch.com/prueba-chi-cuadrado/

Region Product
ABC
N271241
S536529
E273253
W121815

Independence between nutrition and IQ

  • Alpha: 0.1
  • Chi-score ~ 9.75
  • Null hypothesis rejected, alternative accepted.

source: https://www.estadistica.net/Algoritmos2/web-contingencia.pdf (Contraste de Independencia Example, page 27).

Nutrition IQ
< 8080 - 9090 - 99>= 100
Good245228177219
Bad31271310

Political Affiliation and Opinion

  • Alpha: 0.05
  • Chi-score ~ 22.152
  • p-value <= 0.0001

source: https://online.stat.psu.edu/stat500/lesson/8/8.1

Party Opinion
favorindifferentopposed
Democrat1388364
Bad646784

Gender and Condiment

  • Alpha: 0.1
  • Chi-score ~2.95
  • p-value ~0.229

source: https://online.stat.psu.edu/stat500/lesson/8/8.1

Gender Condiment
KetchupMustardRelish
Male152310
Female25198

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants