The goal is to build a model that predicts the app rating based on various app features. This model will be particularly useful for the Google Play Store team's new feature, aiming to boost the visibility of promising apps.
The Google Play Store team is introducing a feature to enhance the visibility of certain apps, prioritizing them in recommendations and search results. The objective is to identify apps that are likely to receive high ratings, indicating their potential for success.
General
The focus is on predicting app ratings based on customer-provided data. The dataset used for analysis is the Google Play Store data ( "googleplaystore.csv").
-
Load the Data:
- Use pandas to load the dataset.
- Check for null values in each column.
-
Data Cleaning:
- Drop records with null values.
- Convert variables to correct types and formats.
-
Sanity Checks:
- Ensure the average rating falls between 1 and 5.
- Drop rows with ratings outside this range.
- Drop records where reviews exceed installs.
- For free apps (type = "Free"), drop rows with prices greater than 0.
-
Univariate Analysis:
- Boxplot for Price to identify outliers.
- Boxplot for Reviews to identify unusually high review counts.
- Histograms for Rating and Size to understand their distributions.
-
Outlier Treatment:
- Investigate and drop records with very high prices (e.g., $200).
- Drop records with more than 2 million reviews.
- Handle outliers in the 'Installs' field using percentiles.
-
Bivariate Analysis:
- Scatter plots and box plots for Rating against various features.
- Explore relationships with Price, Size, Reviews, Content Rating, and Category.
-
Data Preprocessing:
- Create a copy of the dataframe (inp1).
- Apply log transformation (np.log1p) to Reviews and Installs.
- Drop unnecessary columns (App, Last Updated, Current Ver, Android Ver).
- Get dummy columns for Category, Genres, and Content Rating (inp2).
-
Train-Test Split:
- Split the data into training (70%) and testing (30%) sets.
- Separate data into X_train, y_train, X_test, and y_test.
-
Model Building:
- Use linear regression as the modeling technique.
- Report the R2 on the train set.
- Make predictions on the test set and report R2.
- Load the dataset using pandas.
- Follow the data cleaning and preprocessing steps.
- Perform univariate and bivariate analysis as directed.
- Build and evaluate the linear regression model.