survival of passengers of the Titanic

In this article, I will show you how to use decision trees to predict whether the birth weights of infants will be low or not. We will use the birthwt data from the MASS library.

What is a decision tree?

A decision tree is an algorithm that builds a flowchart like graph to illustrate the possible outcomes of a decision. To build the tree, the algorithm first finds the variable that does the best job of separating the data into two groups. Then, it repeats the above step with the other variables.

Related Post:  How to install TwitteR, a Twitter client for R

This results in a tree graph, where each split represents a decision. The algorithm chooses the splits such that the maximum number of observations are classified correctly. The biggest advantage of a decision tree is that it is really intuitive and can be understood even by people with no experience in the field.

Related Post:  What's LXD?

For example, a classification tree showing the survival of passengers of the Titanic is as follows (source: Wikipedia):
survival of passengers of the Titanic

Read the complete article here.


Share on facebook
Share on twitter
Share on pinterest
Share on linkedin

Hola! Did you notice that no longer runs network ads?  Yep, no more ads from the usual suspects that track you across the Internet.  But since  I still need to pay to keep the site running, feel free to make a small donation by PayPal.

Subscribe for updates. Trust me, no spam!

Mailchimp Signup Form

Sponsored links

1. Attend Algorithm Conference, a top AI and ML event for 2020.
2. Reasons to use control panel for your server.
3. DHgate Computers Electronics, Cell Phones & more.

6 Responses

    1. But the other guys (Google, Microsoft and Apple) that have done the same thing are still going strong. I think Opera did, too, but I’m not sure.

  1. After a decade of usage Mozilla have finally lost me. First, they failed to stand behind Brendan Eich against a tiny, vocal minority, then they delivered the horrible Firefox 29 and now they have ceased to be part of the FOSS community by including proprietary software from the perpetually bug-ridden Adobe organisation, of all people and DRM at that.

    Go and join Microsoft, Mozilla, that’s the only final step downward you can take, now!

  2. If by denying DRM you prevent users getting some functionality that depends on it, ten all you are achieving is driving people away from your browser. Mozilla can campaign against DRM, but it is unreasonable to deny its users’ needs to often access DRM media. DRM will not disappear just because Mozilla does not include support for DRM. All it will mean is that to access DRM content you would have to use Internet Explorer and the open source community will be worse off.

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the latest

On social media
Via my newsletter
Mailchimp Signup Form

Partner links

1. Attend Algorithm Conference, a top AI and ML event for 2021.
2. Reasons to use control panel for your server.
3. DHgate Computers Electronics, Cell Phones & more.
Hacking, pentesting distributions

Linux Distributions for Hacking

Experts use these Linux distributions for hacking, digital forensics, and pentesting.


The authors of these books are confirmed to speak during

Algorithm Conference

T-minus AI

Author was the first chairperson of AI for the U.S. Air Force.

The case for killer robots

Author is the Director of the Center for Natural and Artificial Intelligence.

Why greatness cannot be planned

Author works on AI safety as a Senior Research Scientist at Uber AI Labs.

Anastasia Marchenkova

An invitation from Anastasia Marchenkova

Hya, after stints as a quantum researcher at Georgia Tech Quantum Optics & Quantum Telecom Lab, and the University of Maryland Joint Quantum Institute, I’m now working on superconducting qubit quantum processors at Bleximo. I’ll be speaking during Algorithm Conference in Austin, Texas, July 16 – 18, 2020. Meet me there and let’s chat about progress and hype in quantum computing.