How to check independence assumption for Naive Bayes?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Isra Abuhasna
el 22 de Sept. de 2018
Comentada: Walter Roberson
el 25 de Sept. de 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?
0 comentarios
Respuesta aceptada
Zenin Easa Panthakkalakath
el 25 de Sept. de 2018
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 comentario
Walter Roberson
el 25 de Sept. de 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.
Más respuestas (0)
Ver también
Categorías
Más información sobre Naive Bayes en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!