How to check independence assumption for Naive Bayes?

조회 수: 2 (최근 30일)
Isra Abuhasna
Isra Abuhasna 2018년 9월 22일
댓글: Walter Roberson 2018년 9월 25일
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?

채택된 답변

Zenin Easa Panthakkalakath
Zenin Easa Panthakkalakath 2018년 9월 25일
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
Walter Roberson
Walter Roberson 2018년 9월 25일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by