Question
Predicting Delayed Flights: The file FlightDelays.xls contains information on all commercial flights departing the Washington DC area and arriving at New York during January 2004.
Predicting Delayed Flights: The file FlightDelays.xls contains information on all commercial flights departing the Washington DC area and arriving at New York during January 2004. For each flight there is information on the departure and arrival airports, the distance of the route, the scheduled time and date of the flight, etc. The variable that we are trying to predict is whether or not a flight is delayed. A delay is defined as an arrival that is at least 15 minutes later than scheduled.
1. 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 2-hour bins (in XLMiner use Data UtilitiesBin Continuous Data and select 8 bins with equal width). This will avoid treating the departure time as a continuous predictor, because it is reasonable that delays are related to rush-hour times. Partition the data into training and validation sets
2. Fit a classification tree to the flight delay variable, using all the relevant predictors. Use the best pruned tree without a limitation on the minimum number of observations in the final nodes. Express the resulting tree as a set of rules.
3. If you needed to fly between DCA and EWR on a Monday at 7:00 AM, would you be able to use this tree? What other information would you need? Is it available in practice? What information is redundant?
4. Fit another tree, this time excluding the day-of-month predictor (Why?). Select the option of seeing both the full tree and the best pruned tree. You will find that the best pruned tree contains a single terminal node. (
a) How is this tree used for classification? (What is the rule for classifying?) b) To what is this rule equivalent? c) Examine the unpruned tree. What are the top three predictors according to this tree? d) Why, technically, does the pruned tree result in a single node? e) What is the disadvantage of using the top levels of the unpruned tree as opposed to the pruned tree?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started