Regression Analysis On Wallmart Sales DataLast Updated on May 3, 2021
One of the leading retail stores in the US, Walmart, would like to predict the sales and demand accurately. There are certain events and holidays which impact sales on each day. There are sales data available for 45 stores of Walmart. The business is facing a challenge due to unforeseen demands and runs out of stock some times, due to the inappropriate machine learning algorithm. An
ideal ML algorithm will predict demand accurately and ingest factors like economic conditions including CPI, Unemployment Index, etc.
Walmart runs several promotional markdown events throughout the year. These markdowns precede prominent holidays, the four largest of all, which are the Super Bowl, Labour Day, Thanksgiving, and Christmas. The weeks including these holidays are weighted five times higher in the evaluation than non-holiday weeks. Part of the challenge presented by this competition is modeling the effects of markdowns on these holiday weeks in the absence of complete/ideal historical data. Historical sales data for 45 Walmart stores located in different regions are available.
This is the historical data which covers sales from 2010-02-05 to 2012-11-01, in the file Walmart_Store_sales. Within this file you will find the following fields:
· Store - the store number
· Date - the week of sales
· Weekly_Sales - sales for the given store
· Holiday_Flag - whether the week is a special holiday week 1 – Holiday week 0 – Non-holiday week
· Temperature - Temperature on the day of sale
· Fuel_Price - Cost of fuel in the region
· CPI – Prevailing consumer price index
· Unemployment - Prevailing unemployment rate
Super Bowl: 12-Feb-10, 11-Feb-11, 10-Feb-12, 8-Feb-13
Labour Day: 10-Sep-10, 9-Sep-11, 7-Sep-12, 6-Sep-13
Thanksgiving: 26-Nov-10, 25-Nov-11, 23-Nov-12, 29-Nov-13
Christmas: 31-Dec-10, 30-Dec-11, 28-Dec-12, 27-Dec-13
Basic Statistics tasks
1. Which store has maximum sales
2. Which store has maximum standard deviation i.e., the sales vary a lot. Also, find out the coefficient of mean to standard deviation
3. Which store/s has good quarterly growth rate in Q3’2012
4. Some holidays have a negative impact on sales. Find out holidays which have higher sales than the mean sales in non-holiday season for all stores together
5. Provide a monthly and semester view of sales in units and give insights
For Store 1 – Build prediction models to forecast demand
· Linear Regression – Utilize variables like date and restructure dates as 1 for 5 Feb 2010 (starting from the earliest date in order). Hypothesize if CPI, unemployment, and fuel price have any impact on sales.
· Change dates into days by creating new variable.
Select the model which gives best accuracy.
Online Depression DetectionLast Updated on May 3, 2021
Purpose: Social networks have been developed as a great point for its users to communicate with their interested friends and share their opinions, photos, and videos refecting their moods, feelings and sentiments. This creates an opportunity to analyze social network data for user’s feelings and sentiments to investigate their moods and attitudes when they are communicating via these online tools.
Methods: Although diagnosis of depression using social networks data has picked an established position globally, there are several dimensions that are yet to be detected. In this study, we aim to perform depression analysis on Facebook data collected from an online public source. To investigate the efect of depression detection, we propose machine learning technique as an efcient and scalable method.
Results: We report an implementation of the proposed method. We have evaluated the efciency of our proposed method using a set of various psycholinguistic features. We show that our proposed method can signifcantly improve the accuracy and classifcation error rate. In addition, the result shows that in diferent experiments Decision Tree (DT) gives the highest accuracy than other ML approaches to fnd the depression.
Conclusions: Machine learning techniques identify high quality solutions of mental health problems among Facebook users.
Keywords: Social network, Emotions, Depression, Sentiment analysis
Permission Management SystemLast Updated on May 3, 2021
Permission Management System is web project developed for the newly joined employees to get their resumes validated by the manager and if manager is impressed or feels that the employee is fit for the job, he grants permission to access their official site as an employee where employee can manage his work and gets permission to view all the details of that job. The aim of this project is to make the tasks of newly joining employees and manager of the company easy. Many employees apply for the job and the manager need to validate all the details of these employees, so our project aim is to provide a database that can store all the applied employee resumes and remove all the resumes which are not fit for the job and validate the selected employee resumes. If he/she is selected for the job then the manager will be able to give access to the official site, where the employee can view all the other employees available in company and previous employee details and he/she can manage data in the official site. And even manager can give permission whether the employee is just an employee for the job or the admin to handle all the tasks in official site. The main objective of this project is to grant permissions for the newly joined employees based on his/her resume and work. The project is developed as a web-based application which works for a company to maintain their records and grant permissions for new employees. But later on, the project can be modified to all the companies by making partial changes to the site by providing their company details in the site online. Permission Management System utilitarian scope is enabled through the concepts of computing mainly Database management and the user interface aspects enabled through various web interfaces and technologies. Who can use this application in real life? 1. Employees who are willing to apply for a job. 2. Manager who gives permissions for the employee to give a job.
Python Snake GameLast Updated on May 3, 2021
This game reminds everyone their childhood memories.
In this snake game, the player has to move the snake to the fruit in order to eat it. The score will increase once the fruit is eaten. Also, the length of the snake will increase if the snake eats the fruit. The game will get over if the snake touches itself.
The turtle and random modules are used in this game project. So as to install these libraries, simply type “pip install turtle” and “pip install random” on the command prompt.
Turtle library allows us to create pictures, diagrams in a virtual form whereas random module gives the value between the given range of it.
There are 3 functions defined in this game which is “change”, “inside function”, and “move” function. In change function, the x-axis and y-axis are defined. In inside function, the logic of the game is written and in the move function, movement to the snake is given.
There are 4 keys mentioned in the code “right, left, up, down”.
If the player presses the right key, the snake will move to right direction, If the player presses the left key , the snake will move to left direction, If the player presses the up key , the snake will move to upward direction, If the player presses the down key , the snake will move to downward direction and if the snake touches itself the game will get over.
Snake GameLast Updated on May 3, 2021
The objective of this project is to build a snake game project using Python. In this python project, the player has to move a snake so it touches the red dot . If the snake touches itself or the border of the game then the game will over.
The following are the methods I used :
Turtle module, random module, time module, and concept of python by basically used in this project
Turtle module gives us a feature to draw on a drawing board
Random module will be used to generate random numbers
Time module is an inbuilt module in python. It provides the functionality of time.
The steps to build a snake game project in python:
The first is Importing libraries then we move to create a game screen and also the creation of snake and red dot. Keyboard binding is to be done next followed by the game main loop.
We require turtle, random, and time module to import
To create Game screen I used :-
- title() : will set the desired title of the screen
- setup() : used to set the height and width of the screen
- tracer(0) : will turn off the screen update
- bgcolor() : will set the background color
- forward() : will use to move the turtle in a forwarding direction for a specified amount
- right() : used to turn the turtle clockwise and left() used to turn the turtle anticlockwise
- penup() : will not draw while its move
For creating Game screen I used :-
- Turtle() : will be used to create a new turtle object
- hideturtle() : will use to hide the turtle
- goto() : used to move the turtle at x and y coordinates
Now by adding key binding in which the directions in which the snake will go and how will be decided.
If the snake touches the border of the game then the game will over. screen.clear() will delete all the drawing of the turtle on the screen
We successfully developed Snake game project in python.