<?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 Maliha Gangat on Medium]]></title>
        <description><![CDATA[Stories by Maliha Gangat on Medium]]></description>
        <link>https://medium.com/@maliha-gangat?source=rss-61cf87a6ac67------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*XWF4tVAJiRP9nsb2QAyZIw.jpeg</url>
            <title>Stories by Maliha Gangat on Medium</title>
            <link>https://medium.com/@maliha-gangat?source=rss-61cf87a6ac67------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 00:34:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@maliha-gangat/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[Effect of Covid-19 on Mental Health]]></title>
            <link>https://medium.com/analytics-vidhya/effect-of-covid-19-on-mental-health-3db2596ce57a?source=rss-61cf87a6ac67------2</link>
            <guid isPermaLink="false">https://medium.com/p/3db2596ce57a</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[mental-health]]></category>
            <dc:creator><![CDATA[Maliha Gangat]]></dc:creator>
            <pubDate>Sun, 06 Dec 2020 05:28:07 GMT</pubDate>
            <atom:updated>2020-12-06T10:06:25.315Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Our Mind and Covid-19</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q6wT06WP_6P6O3IPnQo8Tw.jpeg" /></figure><p>Mental health awareness has been around for a long time, and many people have, and still are struggling with their mental health. I decided to gather some data and then try running different visualisation methods to see how Covid-19 has affected the mental health of people as compared to the previous years. This article looks into the data set containing 33 weeks before the global outbreak and 18 weeks afterwards, and from the data, we can state that Covid-19 has an impact on peoples mental health.</p><p>This section of the article looks at the worldwide data and the effect of Covid-19 on the mental health of people across the globe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1bRJaogd6mqqIrFV15kR-Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I_o7y-P54l3CJhpxLwzBfA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gGowkUbU8ktdxkii8MVDoQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1BkV41q0uKKvewaHUx_8_A.png" /></figure><p>This visualisation consists of worldwide data. People for decades have suffered different types of mental illness, however, after 9th February 2020, there has been an increase in the rate of the mental illness around the world, as that marks the beginning of Covid-19, as more and more people started to stay at home. People who are always surrounded by people found themselves all alone.</p><p>People who tested positive are restricted in managed isolation and treated with the utmost precautions. Usually, when suffering from illness, naturally, we lean on our loved ones. Still, those who tested positive have to isolate, which also leads to anxiety and depression as they cannot rely on their loved ones for support. According to the healthline.com, almost 20 % of Covid-19 patient have developed mental health issues within three months of diagnosis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IdH6o7bBx9cyb3z2e6VI-g.png" /></figure><p>The table shows the change in the average interest of each of the term after the outbreak, and we can view the mental health services have declined almost by 20 %. Due to Covid-19, mental health services are disrupted by 98%. Moreover, it means that due to inefficient mental health services people are not able to get the required aid, which generally they would receive. It also shows an increase in the panic attack. As the symptoms of Covid-19 are similar to that of the common cold and flu, it makes it challenging to figure out what is one affected with unless, they do the Covid-19 test, till the results come out, a person will panic and be anxious.</p><p>This section of the article looks more into Italy, as Italy was the most affected country with the highest death toll due to coronavirus.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fVuXTlBLkdJ_cbMv5ATVeA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aA6vWjc1RcC1EeoPxA2ofQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mABhdx4p7tPZhy1V1Jl5PA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x5dg-Gtms8jP20Zah-gHTw.png" /></figure><p>The above visualisations illustrate the mental health data of Italy. Italy deaths toll due to coronavirus is the second highest in the world, and the lockdown imposed is stringent and most prolonged in Europe. Ever since the lockdown and the increase in death rate, after mid of March 2020, there was a sudden rise in the different types of mental health issues.</p><p>The people who are heavily affected, such as Lombardy in Italy, has an increase in mental health and the wellbeing of the frontline workers. Due to the new measures introduced, individuals’ usual activities, routines and livelihoods are affected, and the levels of depression, loneliness etc., are rising.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V__AfWLgFmH3DDHviFqc5Q.png" /></figure><p>The table shows the change in the average interest of each of the term before and after the outbreak, almost 30% decline in the mental health services after the outbreak of Covid-19. Moreover, we can also observe that there has been an 89% increase in OCD of the people as everyone is trying their best to keep themselves and the places, they visit sanitised and clean.</p><p>The world has changed a lot due to Covid-19, and this pandemic has affected the mental health of everyone at large. We, as individuals, have to start raising awareness as in many communities, families and cities discussing mental health is still a taboo. We need to come together to bring the change in the attitude and encouraging people to seek help is essential. The government also needs to allocate more of the national health budget on mental health, as having a healthy mind is just as important as having a healthy body.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3db2596ce57a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/effect-of-covid-19-on-mental-health-3db2596ce57a">Effect of Covid-19 on Mental Health</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Predictive Data Model on Ames Housing Data]]></title>
            <link>https://medium.com/analytics-vidhya/predictive-data-model-on-ames-housing-data-c45a84f6c4ac?source=rss-61cf87a6ac67------2</link>
            <guid isPermaLink="false">https://medium.com/p/c45a84f6c4ac</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[predictive-analytics]]></category>
            <dc:creator><![CDATA[Maliha Gangat]]></dc:creator>
            <pubDate>Sun, 01 Nov 2020 03:04:00 GMT</pubDate>
            <atom:updated>2020-11-08T17:17:19.595Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong></p><p>Understanding the customer needs and predicting customer’s purchase intents form the core of success for any business. Ask a home buyer to describe their dream house, and they probably won’t begin with the height of the basement ceiling or the proximity to an east-west railroad. But this project dataset proves that much more influences price negotiations than the number of bedrooms or a white-picket fence. For the vastly diversified realty market, with prices of properties increasing exponentially, it becomes essential to study the factors which affect directly or indirectly when a customer decides to buy a house and to predict the market trend. In general, for any purchase, a potential customer makes the decision based on the value for the money. <strong>Here I need to predict</strong> <strong>the price of a house in Ames, US. </strong>Also, this problem statement allowed me to study the Advanced regression techniques and their implementation in machine learning language like R. Understanding the theory and implementing it into practice was a challenge for us.</p><p><strong>Data Set</strong></p><p>I had two different data sets, namely train and test. Both contained numerous variables in terms of features which were describing a house. Training data set contained 1460 observations for which the sale price of the homes was provided. Based on this data, a prediction model was to be built. Test data set contained 1459 observations for which the sale price was to be predicted.</p><p>In total, 80 variables focus on the quality and quantity of many physical attributes of the property. Most of the variables are precisely the type of information that a typical home buyer would want to know about a potential property (e.g. When was it built? How big is the lot? How many square feet of living space is in the dwelling? Is the basement finished? How many bathrooms are there?).</p><p>Data set contained 23 nominal variables and 23 ordinal variables. Nominal Includes variables like-the weather condition and material used for construction. For the nominal and ordinal variables, the levels were in the range of 2 to 28. Total of 14 discrete variables comprises the number of kitchens, washrooms, and bedrooms. This also includes the garage capacity and construction or re-modelling dates; 20 continuous variables describe the area dimension of each observation. Lot size and total dwelling square footage are standard home listing available online. Area measurements on the basement, porches and main living area are further classified into respective classes based on quality and type.</p><p><strong>2.</strong> <strong>Steps Involved in Building Model</strong></p><blockquote>Ø Load the data train and test data set</blockquote><blockquote>Ø Check for missing values. Replace missing values with the mean of numeric data and with the mode of categorical data.</blockquote><blockquote>Ø Check for Outliers if any with respect to the target variable</blockquote><blockquote>Ø Build the Regression Model — Target variable against independent variables</blockquote><blockquote>Ø Predict the testing data set on the built model</blockquote><h4><strong>DataVisualization</strong></h4><p>For every data analysis, initial data cleaning is required. Otherwise, outliers in the data set produce wrong prediction models, and that can seriously affect the model accuracy. Initially, I decided to analyse our data through visualisation. I compared the response variables (sale price) concerning a few important quantitative variables like ‘Garage living area’, ‘Lot Area’ etc. Scatter plots were plotted, and few outliers were observed right away.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3zLOyGbpPS26Ni3R9unpzQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yDfsPjlHSnn6jRe8G1nmTA.jpeg" /></figure><p>Also, the box plot helped us to visualise the range of house prices were dealing with. Most of the sales price is below $500k. All the value points above $500k (total =10) are excluded from the prediction model. Thus, outliers were removed through the initial screening. To confirm the same outliers, normality check was done in the next step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vFAHWlpJvtDApVkhBx3ArA.jpeg" /></figure><p><strong>Normality Check</strong></p><p>All statistical methods rely on the initial assumption of data being normally distributed. Hence, before applying any statistical method, it should be confirmed whether the data is normally distributed or not. Histogram was plotted to determine the normality trend of data. The histogram was skewed as the outliers were present at the higher price range. Data points representing sale price more than $ 500K were excluded from the analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*up_1US4Yle1PZQ5oDVErnQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*0MUNWKqhB2fVHCG58s2GQQ.jpeg" /></figure><p><strong>Removing Outliers</strong></p><p>An outlier is defined as an observation which stands far away from most of the other observations. Often an outlier is present due to the measurements error. Therefore, one of the most essential tasks in data analysis is to identify and to remove the outliers as it will degrade our statistical results. I have removed outliers concerning the target variable, i.e. SalePrice and below is the summary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2ZWq-u7aiE1p8iaDLxqdlg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I0Kkz-D-YTInoFXTzMNGyg.jpeg" /></figure><p><strong>Data Cleaning on Test Data set</strong></p><p>Follow the similar steps done on the training data set and will get the cleaned data set with 0 missing values. This test data set will be ready to predict the Sale Price.</p><p><strong>RMSE</strong></p><p>The <strong>root-mean-square</strong> deviation (RMSD) or <strong>root-mean-square error</strong> (<strong>RMSE</strong>) (or sometimes root-mean-squared error) is a frequently used measure of the differences between values (sample and population values) predicted by a model or an estimator and the values actually observed. I used rmse to predict the best model.</p><p><strong>4.</strong> <strong>Building Regression Model</strong></p><p>I decided to begin our post-cleaning analysis and model development process by generating a linear model. Linear models are the first models chosen to examine as they are the easiest to fit and most intuitively interpretable. The first model I decided to create was an ordinary least squares (OLS) model containing all the predictors in the data set. The results of the model can be seen in the regression output below.</p><p><strong>Linear Regression Model</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*t_zd9q_P1g3Fk_wM-KEzVA.jpeg" /><figcaption>The rmse value for this model is 0.04751894</figcaption></figure><p>I made another linear model, but this time I kept the direction of the model both. This was the summary of the code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*cVSzjY3cuCkm5217zuSbCQ.jpeg" /><figcaption>The rmse value for this model is 0.04937933</figcaption></figure><p>After running two linear models, I ran an SVM model (SUPPORT VECTOR MACHINE)</p><p><strong>Support Vector Machine (SVM)</strong></p><p>Support vectors are those points which are near to the hyperplane. The distance of the support vector from the hyperplane should be maximum but minimum. SVM is not affected by outliers, transformation in SVM is known as kernel transformation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*no6-losvvixs7xgh4L6_MA.png" /><figcaption>The rmse value for this model is 0.04863575</figcaption></figure><p>After a normal SVM model, I decided to run ten-fold cross-validation or a k fold cross-validation model Here it breaks the data into 10 sections it repeats it 10 times and takes a mean of accuracy The tune() function performs the cross-validation, the cost function is very critical in building the model, the cost function should be less.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/370/1*ghrwgpZ70ZGdDo1OZRFuxw.jpeg" /><figcaption>The rmse value for this model is 0.06503909</figcaption></figure><p><strong>Bagging and Random Forest</strong></p><p>Bagging, aka bootstrap aggregation, is a relatively simple way to increase the power of a predictive statistical model by taking multiple random samples(with replacement) from your training data set, and using each of these samples to construct a separate model and separate predictions for your test set. These predictions are then averaged to create a more accurate final prediction value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*m0PJ-8zXPnN_X2Qd27v_dg.png" /><figcaption>The rmse value for this model is 0.06338549</figcaption></figure><p>After Bagging model, I ran a random model.</p><p>The remove the biasedness from the bagging model I choose to run a random forest model. In the random forest, the variable keeps on changing Each tree in the random forest is grown to the largest extent possible, and there is no pruning. Random-forest can handle large data easily, and it can even identify the most significant variables, so it is considered as one of the dimensionality reduction methods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*NfU95ymN2kwoVzFuRfaNmg.jpeg" /><figcaption>The rmse value for this model is 0.0255915</figcaption></figure><p><strong>KNN</strong></p><p>K nearest neighbours is a simple algorithm that stores all the available cases and classifies new cases by a majority vote of its k neighbours. This algorithm segregates unlabeled data points into well-defined groups. Choosing the number of nearest neighbours plays a significant role in the efficiency of the model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*1cgWAeVMYSO4HkVw6_EC2w.jpeg" /><figcaption>The rmse value for this model is 0.05964994</figcaption></figure><p><strong>5.</strong> <strong>Conclusion</strong></p><p>After cleaning the data and handling missing values, I build the model where I predicted the sale price values on the test data. Each model prediction was different.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hioorcjLsxTmC_GZgQuXEQ.png" /></figure><p>It is seen that the random forest was the most robust model. The rmse value of random forest model is 0.0255915. I used that model to predict the SalePrice on test data.</p><p><a href="https://github.com/MalihaG/Ames-Housing-Data">https://github.com/MalihaG/Ames-Housing-Data</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c45a84f6c4ac" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/predictive-data-model-on-ames-housing-data-c45a84f6c4ac">Predictive Data Model on Ames Housing Data</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>