Personl age 1 2 3 4 5 sex 19 female 18 male 28 male 33 male 32 male bmi 27.9 33.77 33 22.705 28.88 childrer smoker O yes 1 no 3 no 0 no O no region charges southwest 16884.9 southeast 1725.55 southeast 4449.46 northwest 21984.4 northwest 3866.85
Personl age 1 2 3 4 5 sex 19 female 18 male 28 male 33 male 32 male bmi 27.9 33.77 33 22.705 28.88 childrer smoker O yes 1 no 3 no 0 no O no region charges southwest 16884.9 southeast 1725.55 southeast 4449.46 northwest 21984.4 northwest 3866.85
Related questions
Question
Use decision tree to further explore the dataset, where the dependent variable is ‘smoker’. Please explain the approach taken. [No more than 300 words]
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question
Can u generate the python code for me as that i can generate the decision tree in Jupyter notebook? An example of a decision tree has been attached as image. Explain using the variables inside the decision tree.
Solution
by Bartleby Expert