# How the class probabilities are calculated in classification tree?

I created a classification tree and predicted the class probabilities in r. Now iam asking myself how this values are calculated maybe you have an intuition?

• It depends on the method. Which method did you use to construct your classification tree? Have you consulted the documentation and its cited works? – Sycorax says Reinstate Monica Jun 24 '19 at 21:38
• @Sycorax I used the rpart package in r which is based on the cart algorithm. I searched in the vignette of the package cran.r-project.org/web/packages/rpart/vignettes/longintro.pdf but didnt find anything about it. – MasterStudent1992 Jun 24 '19 at 21:40
• Vignettes are useful to show the gist of what a package does, but it is not the same as the comprehensive documentation. For example, if you turn to page 21 of the package documentation, you'll see that the package closely follows the methods from a particular publication. Reading that publication will answer your question. – Sycorax says Reinstate Monica Jun 24 '19 at 21:48

You can check these probabilities using summary() function on your tree object.