Question: use this document/link https://drive.google.com/open?id=138puSOxDk-Zu1sn5B_4LVJ__q6hwz41k Data Preprocessing. Create dummies for day of week, carrier, departure airport, and arrival airport. This will give you 17 dummies. Bin
use this document/link https://drive.google.com/open?id=138puSOxDk-Zu1sn5B_4LVJ__q6hwz41k
Data Preprocessing. Create dummies for day of week, carrier, departure airport, and arrival airport. This will give you 17 dummies. Bin the scheduled departure time into eight bins (in XLMiner use Transform Bin Continuous Data and select equal width). After binning CRS DEP TIME into the 8 bins, this new variable should be broken down into dummies (because the effect will not be linear, due to the morning and afternoon rush hours). This will avoid treating the departure time as a continuous predictor, since it is reasonable that delays are related to rush-hour times. Partition the data into training and validation sets. (show all steps)
Fit a classi?cation tree to the ?ight delay variable using all the relevant predictors. Do not include DEP_TIME (actual departure time) in the model because it is unknown at the time of prediction (unless we are generating our predictions of delays after the plane takes off, which is unlikely). In the third step of the Classi?cation Tree menu, choose Maximum # levels to be displayed = 6. Use the best-pruned tree, setting the minimum number of observations in the ?nal nodes to 1. Express the resulting tree as a set of rules.
If you needed to ?y between DCA and EWR on a Monday at 7 AM, would you be able to use this tree? What other information would you need? Is it available in practice? What information is redundant?
Fit another tree, this time excluding the Weather predictor. (Why?) Select the option of seeing both the full tree and the best-pruned tree. You will ?nd that the best-pruned tree contains a single terminal node.
How is this tree used for classi?cation? (What is the rule for classifying?)
To what is this rule equivalent?
Examine the full tree. What are the top three predictors according to this tree?
Why, technically, does the pruned tree result in a tree with a single node?
What is the disadvantage of using the top levels of the full tree as opposed to the best-pruned tree?
Compare this general result to that from logistic regression in the example in Chapter 10. What are possible reasons for the classi?cation trees failure to ?nd a good predictive model?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
