Question: What is the conditional probability that Advertising < = 1 0 for a US store with Population = 5 0 0 ? The dataset is

What is the conditional probability that Advertising <=10 for a US store with Population =500?
The dataset is named "Carseats" and can be found in R.
The tree is :
library(ISLR);
attach(Carseats);
library(rpart); library(rpart.plot);
tree <- rpart(Advertising ~ US + Population, data = Carseats);
Please help using the ecdf function.
Use 2 digits, like 0.12

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!