フィルターのクリア

Probability of a sample?

1 回表示 (過去 30 日間)
cev
cev 2013 年 11 月 17 日
コメント済み: Walter Roberson 2013 年 11 月 17 日
How can I find probability of a sample in a dataset?
%# load data
load carsmall
%# construct predicting attributes and target class
vars = {'MPG' 'Cylinders' 'Horsepower' 'Model_Year'};
x = [MPG Cylinders Horsepower Model_Year];
y = cellstr(Origin);
%# train classification decision tree
t = classregtree(x, y, 'method','classification', 'names',vars, ...
'categorical', [2 4], 'prune','off');
After this I want to find the probability of only one sample e.g. sample number 35?
  1 件のコメント
Walter Roberson
Walter Roberson 2013 年 11 月 17 日
Probability? As in "What is the probability that the 35'th die rolled is a '4'?" ?
When you have a finite set of occurrences, then one would speak about "frequency" rather than "probability". "Probability" requires an assumption of an infinite number of occurrences (or at the very least, as the asymptope as the number of occurrences approaches infinity.)

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by