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