This project performs data analysis and machine learning on video game sales data using R, including visualization, KNN regression, linear regression, and decision tree models.
This project analyzes video game sales data and applies machine learning techniques to predict global sales. It includes data preprocessing, visualization, and multiple predictive models.
-
📊 Data cleaning and preprocessing
-
📈 Data visualization using ggplot2
-
🤖 Machine Learning models:
- K-Nearest Neighbors (KNN)
- Linear Regression
- Decision Tree
-
📉 Model evaluation using MSE and MAE
- R Programming
- tidyverse
- ggplot2
- FNN (KNN)
- caret
- tree
- corrplot
├── script.R # Main R script
├── Video_Games_Sales_as_at_22_Dec_2016.csv # Dataset
1️⃣ Open RStudio or R environment
2️⃣ Install required libraries:
install.packages(c("tidyverse","FNN","corrplot","tree","caret"))
3️⃣ Run the script:
source("script.R")
The dataset contains video game sales information including platform, genre, publisher, critic scores, and global sales.
- Used for regression prediction of global sales
- Optimal K value selected using MSE
- Predicts sales based on multiple features
- Evaluated using Mean Squared Error
- Visualizes decision-making process
- Pruned for better accuracy
- Mean Squared Error (MSE)
- Mean Absolute Error (MAE)
- Add more advanced models (Random Forest, XGBoost)
- Improve feature selection
- Build interactive dashboard
Feel free to fork and contribute!
This project is open-source.
Aditya Yadav