Flight Price Prediction

Average Flight Price by Airline

The bar chart displays the average flight prices by airline, along with error bars indicating price variability. Jet Airways, Multiple carriers Premium economy, and Air India show the highest average prices among all airlines. In contrast, Trujet, SpiceJet, and Air Asia offer the lowest average fares. Notably, Vistara Premium economy has a high variability in pricing, suggesting inconsistency or limited sample size.

Average Flight Price by Number of Stops


Summary Statistics by Total Stops:
# A tibble: 4 × 7
  Total_Stops count mean_price median_price sd_price min_price max_price
  <chr>       <int>      <dbl>        <dbl>    <dbl>     <dbl>     <dbl>
1 3 stops        45     13112        12954     2963.      8607     21829
2 2 stops      1518     12667.       12756.    3111.      4647     34608
3 1 stop       5621     10557.       10262     4041.      3480     54826
4 non-stop     3491      5025.        4667     2078.      1759     31945

Correlation between number of stops and price: 0.621

Flight prices tend to increase with the number of stops. Non-stop flights are the cheapest on average, with a mean price of $5,025, while flights with 3 stops are the most expensive, averaging $13,112. The correlation coefficient of 0.621 indicates a moderately strong positive relationship between the number of stops and ticket price. This suggests that more stops generally lead to higher fares.