Calculate Correlation Among Categorical Variables in Python

Поділитися
Вставка
  • Опубліковано 19 лис 2024

КОМЕНТАРІ • 5

  • @dragnar4743
    @dragnar4743 3 місяці тому

    Love this video very much 💛💛 I don't think there are any other video on yt explaining about chi2_contingency. btw, I have some doubts.
    we are using chi_sq_result[1]. Correct me if I'm wrong
    [o] = test statistics
    [1] = p value
    [2] = degree of freedom
    [3] = expected table
    we are only using P-value for checking correlation, right?
    And, I don't understand why we are writing as:
    chi2_contingency(crosstab , )
    our 1st argument is the crosstab, but is there any 2nd missing argument after , ?

    • @ml-explained
      @ml-explained  3 місяці тому

      Thank you for the feedback. There are a few things unexplained in the video and it is still early days for me making these. I'll put out a detailed video going over this concept in detail once I get some time away from work.

  • @gummyface
    @gummyface Рік тому

    my savior 😭

  • @twocentswithdeb
    @twocentswithdeb Рік тому

    Not sure why but for me even if the correlation is =1 it says NOT CORRELATED

    • @ml-explained
      @ml-explained  Рік тому

      I’ll check the code, probably a bug, but the important thing is the concept, if that’s clear then the purpose of the video is fulfilled