The dataset contains the following columns:
customerID: Unique identifier for each customer.
customerName: Name of the customer.
Age: Age of the customer.
Fan_Mailing_List: Whether the customer is part of the fan mailing list.
Customer_Type: The type of customer, such as "Last-Minute" or "In-Between".
Game_ID: Unique identifier for each game.
Num_Tickets_Purchased: The number of tickets purchased by the customer.
Seat_Location: The location of the customer's seat.
Ticket_Price: The price of the ticket.
Concession_Purchases: The amount of concession purchases by the customer.
Days_Before_Game: The number of days before the game the customer purchased the ticket.
customerID: Unique identifier for each customer.
customerName: Name of the customer.
Age: Age of the customer.
Fan_Mailing_List: Whether the customer is part of the fan mailing list.
Customer_Type: The type of customer, such as "Last-Minute" or "In-Between".
Game_ID: Unique identifier for each game.
Num_Tickets_Purchased: The number of tickets purchased by the customer.
Seat_Location: The location of the customer's seat.
Ticket_Price: The price of the ticket.
Concession_Purchases: The amount of concession purchases by the customer.
Days_Before_Game: The number of days before the game the customer purchased the ticket.
Let's start the exploratory data analysis (EDA) by understanding the distributions and relationships between these variables. We'll create histograms for numerical variables, bar plots for categorical variables, and scatter plots to examine potential correlations.
The histograms above represent the distributions of the numerical variables in the dataset. Here are some observations:
Age: The age of the customers appears to be normally distributed with the majority of customers aged between 20 and 60 years.
Num_Tickets_Purchased: Most customers tend to buy 1 or 2 tickets. Purchases of more than 2 tickets are less common.
Ticket_Price: The ticket price seems to be right-skewed, indicating that most tickets are priced on the lower end, with few tickets priced higher.
Concession_Purchases: The majority of customers spend relatively low amounts on concession purchases. The data is right-skewed, indicating that high expenditure on concessions is rare.
Days_Before_Game: Many customers purchase tickets just a few days before the game. There's a sharp peak at 0, suggesting that last-minute ticket purchases are common.
Age: The age of the customers appears to be normally distributed with the majority of customers aged between 20 and 60 years.
Num_Tickets_Purchased: Most customers tend to buy 1 or 2 tickets. Purchases of more than 2 tickets are less common.
Ticket_Price: The ticket price seems to be right-skewed, indicating that most tickets are priced on the lower end, with few tickets priced higher.
Concession_Purchases: The majority of customers spend relatively low amounts on concession purchases. The data is right-skewed, indicating that high expenditure on concessions is rare.
Days_Before_Game: Many customers purchase tickets just a few days before the game. There's a sharp peak at 0, suggesting that last-minute ticket purchases are common.
Now, let's take a look at the categorical variables:Fan_Mailing_List,Customer_Type, andSeat_Location. We'll create bar plots for these.
The bar plots above represent the distributions of the categorical variables in the dataset. Here are some observations:
Fan_Mailing_List: The majority of customers are not on the fan mailing list.
Customer_Type: The dataset has more "Last-Minute" customers compared to "In-Between" or "Planner" customers.
Seat_Location: Most customers are seated in the "Upper" location, with fewer in "Middle" and the least in "Lower".
Fan_Mailing_List: The majority of customers are not on the fan mailing list.
Customer_Type: The dataset has more "Last-Minute" customers compared to "In-Between" or "Planner" customers.
Seat_Location: Most customers are seated in the "Upper" location, with fewer in "Middle" and the least in "Lower".
Now, let's create some scatter plots to examine potential correlations between numerical variables. We'll use a pairplot for this. Additionally, it might be interesting to look at these relationships byCustomer_Type.
The pair plot above shows the relationships between the numerical variables, colored byCustomer_Type. The diagonal histograms show the distributions of the respective numerical variables for each type of customer. Here are some observations:
Age: The age distributions for the different customer types do not seem significantly different.
Num_Tickets_Purchased: "Planner" customers seem to buy more tickets on average compared to "Last-Minute" and "In-Between" customers.
Ticket_Price: The ticket prices do not show a significant difference between customer types.
Concession_Purchases: All customer types seem to have similar concession purchase behavior. There doesn't appear to be a clear trend indicating that one type of customer spends more on concessions than another.
Days_Before_Game: As expected, "Planner" customers buy their tickets much earlier than "Last-Minute" and "In-Between" customers.
Age: The age distributions for the different customer types do not seem significantly different.
Num_Tickets_Purchased: "Planner" customers seem to buy more tickets on average compared to "Last-Minute" and "In-Between" customers.
Ticket_Price: The ticket prices do not show a significant difference between customer types.
Concession_Purchases: All customer types seem to have similar concession purchase behavior. There doesn't appear to be a clear trend indicating that one type of customer spends more on concessions than another.
Days_Before_Game: As expected, "Planner" customers buy their tickets much earlier than "Last-Minute" and "In-Between" customers.
It's worth noting that these are preliminary observations. For a more rigorous analysis, statistical tests may be necessary.
In conclusion, this exploratory data analysis provides some initial insights into the data, revealing trends and patterns within the variables. However, a more detailed analysis may be required to answer specific questions or to build predictive models.