How can I compute a confidence interval for a predicted value computed using EVAL command and a classification and regression tree in Statistics Toolbox 6.1 (R2007b)?
3 views (last 30 days)
Show older comments
I generate a classification and regression tree and evaluate a new data point with EVAL command:
load fisheriris;
t = classregtree(meas,species,'names',{'SL' 'SW' 'PL' 'PW'});
sfit=eval(t,meas(1,:)+rand(1,4))
I would like to compute the confidence level for the variable 'sfit'.
Accepted Answer
MathWorks Support Team
on 23 Aug 2012
There is no command available in Statistics Toolbox in MATLAB to calculate the confidence interval for a predicted response value given a new data point and a classification and regression tree, because Classification and Regression Trees (CART) technique is not based on a probabilistic model. There is no probability level or confidence interval associated with predictions derived from using a CART tree to classify a new set of data. The confidence that an analyst can have in the accuracy of the results produced by a given model (that is, a tree) is based purely on its historical accuracy—how well it has predicted the desired response in other, similar circumstances. For more information, consult, for example, the following introductory reference on CART:
<http://www.ifpri.org/themes/mp18/techguid/tg03.pdf>
0 Comments
More Answers (0)
See Also
Categories
Find more on Discriminant Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!