How to check independence assumption for Naive Bayes?

2 vues (au cours des 30 derniers jours)
Isra Abuhasna
Isra Abuhasna le 22 Sep 2018
Commenté : Walter Roberson le 25 Sep 2018
I know that the assumption for the Naive Bayes classifier is that the features are independent, but what if we want to check if that applies to our data? How would we do test it using Matlab?

Réponse acceptée

Zenin Easa Panthakkalakath
For a 2-dimensional matrix, if the determinant is zero, then at least two rows or two columns are linearly dependent.
You can also do a principal component analysis in order to know in which direction the variation is significant.
  1 commentaire
Walter Roberson
Walter Roberson le 25 Sep 2018
The determinant would be 0 for non-square matrices.
You could check whether rank() was min() rows, cols, with anything less implying dependence beyond the usual.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by