Assignment 2 - Airline Pricing Analysis
Sameer Mathur
Q1a. Write R code to generate the correlation matrix for the given continuous variables {"Price", "AdvancedBookingDays", "FlyingMinutes", "Capacity", "SeatPitch", "SeatWidth"}
Q1b. Write R code to generate the correlation matrix with their significance values for the given continuous variables {"Price", "AdvancedBookingDays", "FlyingMinutes", "Capacity", "SeatPitch", "SeatWidth"}
Q1d. Write R code to visualize Q1b.
Q1e. Write R code to generate the following visual.
Q2a. Test whether the ticket price of Mumbai to Delhi flights are more than INR 5000.
Q2b. Test whether the ticket price of morning flights are costlier than the after-noon flights
Q2c. Test whether the ticket price at Diwali is more compare to non-Diwali.
Q2d. Test whether the ticket price for Air India flights costlier than IndiGo flights.
Q3a. Regress Price on Advanced Booking Days. Write R code to construct a simple linear regression model and output the summary of the model.
Q3b. Regress Price on Advanced Booking Days and IsDiwali. Write R code to construct a multiple linear regression model and output the summary of the model.