Assignment 2 - Airline Pricing Analysis

Sameer Mathur

Assignment 2

QUESTION 1

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.

plot of chunk unnamed-chunk-6

QUESTION 2

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.

QUESTION 3

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.