Objective: Delve into the dynamics of product pricing on Amazon UK to uncover insights that can inform business strategies and decision-making.
Dataset: This lab utilizes the Amazon UK product dataset which provides information on product categories, brands, prices, ratings, and more from from Amazon UK. You'll need to download it to start working with it.
Objective: Understand the relationship between product categories and their best-seller status.
-
Crosstab Analysis:
-
Create a crosstab between the product
category
and theisBestSeller
status. -
Are there categories where being a best-seller is more prevalent?
Hint: one option is to calculate the proportion of best-sellers for each category and then sort the categories based on this proportion in descending order.
-
-
Statistical Tests:
- Conduct a Chi-square test to determine if the best-seller distribution is independent of the product category.
- Compute Cramér's V to understand the strength of association between best-seller status and category.
-
Visualizations:
- Visualize the relationship between product categories and the best-seller status using a stacked bar chart.
Objective: Investigate how different product categories influence product prices.
-
Preliminary Step: Remove outliers in product prices.
For this purpose, we can use the IQR (Interquartile Range) method. Products priced below the first quartile minus 1.5 times the IQR or above the third quartile plus 1.5 times the IQR will be considered outliers and removed from the dataset. The next steps will be done with the dataframe without outliers.
Hint: you can check the last Check For Understanding at the end of the lesson EDA Bivariate Analysis for a hint on how to do this.
-
Violin Plots:
- Use a violin plot to visualize the distribution of
price
across different productcategories
. Filter out the top 20 categories based on count for better visualization. - Which product category tends to have the highest median price? Don't filter here by top categories.
- Use a violin plot to visualize the distribution of
-
Bar Charts:
- Create a bar chart comparing the average price of products for the top 10 product categories (based on count).
- Which product category commands the highest average price? Don't filter here by top categories.
-
Box Plots:
- Visualize the distribution of product
ratings
based on theircategory
using side-by-side box plots. Filter out the top 10 categories based on count for better visualization. - Which category tends to receive the highest median rating from customers? Don't filter here by top categories.
- Visualize the distribution of product
Objective: Analyze how product ratings (stars
) correlate with product prices.
-
Correlation Coefficients:
- Calculate the correlation coefficient between
price
andstars
. - Is there a significant correlation between product price and its rating?
- Calculate the correlation coefficient between
-
Visualizations:
- Use a scatter plot to visualize the relationship between product rating and price. What patterns can you observe?
- Use a correlation heatmap to visualize correlations between all numerical variables.
- Examine if product prices typically follow a normal distribution using a QQ plot.
Submission: Submit a Jupyter Notebook which contains code and a business-centric report summarizing your findings.
Bonus:
- Do the same analysis without taking out the outliers. What are your insights?