<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sumita Nair on Medium]]></title>
        <description><![CDATA[Stories by Sumita Nair on Medium]]></description>
        <link>https://medium.com/@sumeenair?source=rss-e2659c91e5b6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ciD3as_V-bn8wDTc</url>
            <title>Stories by Sumita Nair on Medium</title>
            <link>https://medium.com/@sumeenair?source=rss-e2659c91e5b6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 01:38:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sumeenair/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Predicting Restaurant Tips with Machine Learning: A Linear Regression Project]]></title>
            <link>https://medium.com/@sumeenair/predicting-restaurant-tips-with-machine-learning-a-linear-regression-project-96de8d0e03fd?source=rss-e2659c91e5b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/96de8d0e03fd</guid>
            <dc:creator><![CDATA[Sumita Nair]]></dc:creator>
            <pubDate>Wed, 20 Sep 2023 16:48:14 GMT</pubDate>
            <atom:updated>2023-09-20T16:48:14.310Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever found yourself pondering the appropriate tip to leave at a restaurant, taking into account factors such as the time of day, the size of your dining party, or other relevant features? While the customary American tipping range falls between 10% to 20%, it’s entirely feasible to predict the expected tip amount by considering variables like the time of day, the day of the week, the patron’s gender, smoking preferences, and more.</p><p>Such predictive modeling can be incredibly advantageous, not just for diners but also for waitstaff who can gain insights into what factors tend to yield the most generous tips.</p><p>To accomplish this, I gathered a straightforward dataset containing historical records of these features along with the corresponding tip amounts. This dataset encompasses details like the total bill, the gender of the person paying, whether they are a smoker or non-smoker, whether they dined during lunch or dinner, the size of their dining group, and the specific day of the week.</p><p>Data Exploration</p><p>I started by running basic exploratory data analysis to see how the data looks. Few features I played around with were :</p><ol><li>Total_bill and tip given by days of the week . I can see that weekends are the days when highest tips were paid</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*bXTQ5SFIfZkEuQ_5O8EKBg.png" /></figure><p>2. Total_bill and tip given by gender. From the data, it is seen that mostly men come to dine in than women in general, hence the tips given were also mostly by men</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*WS0YF09DNMvJo5q7po1btg.png" /></figure><p>3.Total_bill and tip given by time of the day. From the data, it is seen that mostly poeple come at dinenr time , hence the tips given were also mostly during dinner time</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*ODNxw2mo8LIpNxyinZATwg.png" /></figure><p>4. I also wanted to check which days are most popular for dining in, clearly Saturday is the most popular day</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*dZKKLLOADCzZjrsSDTppXQ.png" /></figure><p>I utilized the scikit-learn library to employ the Linear Regression model on this dataset for several compelling reasons. Firstly, my target variable is continuous, which aligns perfectly with the model’s applicability. Secondly, I considered the linear relationship assumption and the simplicity it offers as key factors influencing my choice.</p><p>If you observe that the linear regression model produces a specific prediction when given certain input values, such as in your example, it suggests that the model has learned a relationship based on the provided training data. In your case, the input features are “total_bill,” “sex,” “smoker,” “day,” “time,” and “size.”</p><ul><li>The “total_bill” feature likely has a positive coefficient, indicating that as the total bill amount increases, the predicted tip amount also increases. This is a logical expectation, as tips tend to be a percentage of the bill.</li><li>The “sex,” “smoker,” “day,” and “time” features may have coefficients that indicate their influence on tip amounts. For instance, if “sex” is binary (e.g., 0 for male, 1 for female), a positive coefficient could suggest that one gender tends to give higher tips than the other.</li><li>The “size” feature may also have an impact, as larger groups dining together may tip differently than smaller groups.</li><li>The specific prediction of 3.73 for input indicates that, given the values of these features, the model predicts a tip amount of approximately $3.74.</li></ul><p>Importance of Tip Prediction:</p><p>Predicting restaurant tips holds significant importance in the hospitality industry. Tips not only represent a substantial portion of a server’s income but also reflect customer satisfaction and service quality. Our model can be a valuable tool for:</p><p>Performance Evaluation: Restaurants can use the model to assess the performance of their staff and service quality. By identifying factors influencing tips, they can implement strategies to enhance customer experience.</p><p>Revenue Forecasting: Accurate tip prediction contributes to better revenue forecasting, allowing restaurants to manage resources efficiently, plan staffing levels, and optimize operations.</p><p>Customer Satisfaction: Understanding what drives tips can help restaurants focus on areas that matter most to their patrons, ultimately leading to improved customer satisfaction and loyalty.</p><p>Data-Driven Decision-Making: Our model empowers restaurant owners and managers to make data-driven decisions, whether it’s optimizing menu pricing, scheduling staff, or tailoring service strategies.</p><p>In conclusion, predicting restaurant tips using a Linear Regression model not only provides insights into the dynamics of tipping behavior but also offers practical applications for the restaurant industry, ultimately enhancing customer experience and business profitability.</p><p>Acknowledgments</p><p>Emadedin Hasemi’s Data Science coursework</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96de8d0e03fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python Project — Movie Data Analysis]]></title>
            <link>https://medium.com/@sumeenair/python-project-movie-data-analysis-7786a0d960da?source=rss-e2659c91e5b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/7786a0d960da</guid>
            <dc:creator><![CDATA[Sumita Nair]]></dc:creator>
            <pubDate>Thu, 23 Mar 2023 23:14:02 GMT</pubDate>
            <atom:updated>2023-03-23T23:18:16.067Z</atom:updated>
            <content:encoded><![CDATA[<h3>Python Project — Movie Data Analysis</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MIuMA8xCf_AT59NOAqSh9Q.png" /></figure><h3>Introduction</h3><p>The purpose of this project is to analyze a dataset containing information about movies and their revenue. The dataset was obtained from an external source and is saved in a CSV file. The main objectives of this project are to:</p><ul><li>Explore the dataset and identify any missing data or outliers</li><li>Visualize the data to identify any correlations between features</li><li>Create a predictive model to estimate a movie’s revenue based on its features</li></ul><h3>Methodology</h3><p>The project was completed using Python and various libraries such as Pandas, Numpy, Matplotlib, and Seaborn. The code was executed in Jupyter Notebook.</p><h3>Data Preparation</h3><p>The first step in the project was to import the necessary libraries and read in the data from the CSV file. The data was saved in a Pandas dataframe for easy manipulation and analysis.</p><p>Next, the data was examined for any missing values or outliers. A loop was used to calculate the percentage of missing data in each column of the dataframe. It was found that some columns had missing data, but the percentage of missing data was less than 5%.</p><h3>Data Visualization</h3><p>To visualize the data, various plots were created using Matplotlib and Seaborn. A scatter plot was created to show the relationship between a movie’s budget and its gross revenue. It was observed that there is a positive correlation between the two variables, which suggests that movies with higher budgets tend to earn more revenue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6zv_figwmbsxvN-xcPGc1w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RIoGvPg7yS4ivJLxnZEVWw.png" /></figure><p>A correlation matrix was also created to identify any correlations between numeric features. It was found that there is a positive correlation between a movie’s budget and its gross revenue, as well as a positive correlation between a movie’s score and its gross revenue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-u_Dl6F8i3ebBBBLZdlw8w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cqMePAhXF5TXs7DuFwxb9Q.png" /></figure><h3>Data Analysis</h3><p>To analyze the data further, a correlation matrix was created using the Pandas corr() function. The correlation matrix showed that there is a strong positive correlation between a movie’s budget and its gross revenue. There is also a moderate positive correlation between a movie’s score and its gross revenue.</p><p>To further analyze the data, the categorical variables in the dataframe were converted to numeric variables using the Pandas cat.codes function. A new correlation matrix was created using the updated dataframe, and it was observed that the correlations between the variables remained the same.</p><h3>Conclusion</h3><p>In conclusion, this project was successful in exploring a dataset containing information about movies and their revenue. The data was examined for missing values and outliers, and various visualizations were created to identify correlations between features. It was found that there is a positive correlation between a movie’s budget and its gross revenue, and a moderate positive correlation between a movie’s score and its gross revenue. This information can be used to create a predictive model to estimate a movie’s revenue based on its features.</p><p>To see the codes , please click on this link : <a href="https://github.com/sumeenair/MyPythonEDA_Movies/blob/main/Movies_dataset_Corr.py">https://github.com/sumeenair/MyPythonEDA_Movies.git</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7786a0d960da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[COVID-19 Data Analysis Report using SQL]]></title>
            <link>https://medium.com/@sumeenair/covid-19-data-analysis-report-using-sql-2ae25163523e?source=rss-e2659c91e5b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ae25163523e</guid>
            <dc:creator><![CDATA[Sumita Nair]]></dc:creator>
            <pubDate>Thu, 23 Mar 2023 23:01:48 GMT</pubDate>
            <atom:updated>2023-03-23T23:01:48.095Z</atom:updated>
            <content:encoded><![CDATA[<p>COVID-19 Data Analysis Report</p><p><strong>Introduction</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XxPQIuE79lXhu19sUWxeTw.png" /></figure><p>COVID-19 has been an ongoing pandemic that has affected millions of people worldwide. In this report, we will analyze COVID-19 data from the ‘CovidDeaths’ and ‘CovidVaccines’ tables. We will use SQL queries to gather insights about the impact of COVID-19 on different countries and continents, as well as the progress of vaccination efforts.</p><p><strong>Data Sources</strong></p><p>The data used in this report is taken from two tables: ‘CovidDeaths’ and ‘CovidVaccines.’ The ‘CovidDeaths’ table contains data on the total cases and deaths due to COVID-19 for different countries and continents. The ‘CovidVaccines’ table contains data on the number of people vaccinated against COVID-19 for different countries and continents.</p><p><strong>Queries and Analysis</strong></p><p>We performed several SQL queries to analyze the COVID-19 data. Here are the key findings:</p><ol><li>Total Cases vs Total Deaths: We analyzed the total cases and total deaths due to COVID-19 for different US states. We found that there is a strong positive correlation between total cases and total deaths. The higher the total cases, the higher the total deaths.</li><li>Total Cases vs Population: We analyzed the total cases and population for different US states. We found that some states had a higher percentage of population infected with COVID-19 than others. This suggests that some states may have a higher risk of COVID-19 transmission than others.</li><li>Highest Infection Rate Compared to Population: We analyzed the countries with the highest infection rate compared to their population. We found that some countries had a higher percentage of their population infected with COVID-19 than others. This suggests that some countries may have been hit harder by COVID-19 than others.</li><li>Highest Death Count Compared to Population: We analyzed the countries with the highest death count compared to their population. We found that some countries had a higher number of deaths per capita than others. This suggests that some countries may have had a higher mortality rate due to COVID-19 than others.</li><li>Breakdown by Continent: We broke down the total death count by continent. We found that Europe had the highest number of deaths, followed by North America and South America.</li><li>Global Numbers: We calculated the total number of cases and deaths due to COVID-19 globally. We found that there were over 500 million cases and over 8 million deaths worldwide. We also calculated the death percentage, which was around 1.6%.</li><li>Total Population vs Vaccinations: We analyzed the total population and the number of people vaccinated against COVID-19 for different countries and continents. We found that some countries had a higher percentage of their population vaccinated than others.</li><li>Percent Population Vaccinated View: We created a view to store data on the percentage of population vaccinated against COVID-19 for different countries and continents.</li></ol><p>Conclusion In conclusion, our analysis of COVID-19 data from the ‘CovidDeaths’ and ‘CovidVaccines’ tables has provided valuable insights into the impact of COVID-19 on different countries and continents. We found that there is a strong positive correlation between total cases and total deaths, and that some countries and states have been hit harder by COVID-19 than others. We also found that vaccination efforts are underway in many countries, but there is still much work to be done to ensure that everyone is protected against COVID-19. Overall, this report highlights the importance of continued monitoring and analysis of COVID-19 data to inform public health policies and interventions.</p><p>Please see the raw codes at : <a href="https://github.com/sumeenair/PortfolioProjecrts/blob/main/SQLforCoviddeathsandVaccines.sql">https://github.com/sumeenair/PortfolioProjecrts/blob/main/SQLforCoviddeathsandVaccines.sql</a></p><p>Thank you for reading !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ae25163523e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>