<?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 Aamir Raja on Medium]]></title>
        <description><![CDATA[Stories by Aamir Raja on Medium]]></description>
        <link>https://medium.com/@aamir34234?source=rss-384964074c80------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*17ibVwv73wMZV87LqAWH5A.jpeg</url>
            <title>Stories by Aamir Raja on Medium</title>
            <link>https://medium.com/@aamir34234?source=rss-384964074c80------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 15:15:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aamir34234/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[Regression Problems — How Data Scientists Love Solving Them]]></title>
            <link>https://levelup.gitconnected.com/regression-problems-how-data-scientists-love-solving-them-13d725d69b56?source=rss-384964074c80------2</link>
            <guid isPermaLink="false">https://medium.com/p/13d725d69b56</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[towards-data-science]]></category>
            <category><![CDATA[linear-regression]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[supervised-learning]]></category>
            <dc:creator><![CDATA[Aamir Raja]]></dc:creator>
            <pubDate>Sat, 18 Oct 2025 08:29:43 GMT</pubDate>
            <atom:updated>2025-10-20T03:15:05.469Z</atom:updated>
            <content:encoded><![CDATA[<h3>Regression Problems — How Data Scientists Love Solving Them</h3><p><em>Discussing the Importance of Regressions for Machine Learning and Why They’re Essential.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Osmi8VXLyaeG5MID" /><figcaption>Photo by <a href="https://unsplash.com/@kseny?utm_source=medium&amp;utm_medium=referral">Ksenia Kudelkina</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Some Data Scientists don’t experiement with Regressions until they are able to land their first Data Science jobs, so let’s start learning together now and get a headstart.</p><p>Regressions are an essential part of life, whether or not individuals are aware of such facts is another point entirely, but they have been working in the background of our minds for as long as we can remember.</p><p>Even in the Paleolithic Stone Age, which was approximately 2.6 million years ago humans would come out of their caves and take a look at their surroundings and see that sky was beginning to get dark, it was feeling cold outside and there had a strong wind on the air, and their body temperature was droppping, based on characteristics like these our friends from the Stone Age might try and better prepare themselves for snow, as it’s beginning to get colder, but if only they knew how to predict how cold it would be in the future, that would have likely helped.</p><p>This should start to provide some insight into how the models we calibrate in Data Science work, at a fundamental level. But, if it doesn’t don’t worry because this article is going to be exploring in more depth what exactly are Regressions, the different types of models, and how we measure these models and improve them.</p><h4>Regressions, what are they?</h4><p>Regressions are a machine learning issue. This means that we have a business problem, or perhaps a more individual problem, and we are trying to solve this in some way, shape, or form.</p><p>This business problem could be related to rental property. Imagine you’re looking to buy your first home. This is a decision which you’d want to take your time thinking about to make sure you really make the right choice.</p><p>Or, alternatively, if you had access to a large pool of housing data that you had permission to use ethically, then you could create a model that actually predicts what the future value of houses will be in a specific area using the range of available data you have. But this is panning out the essentials of regressions to help you see how they actually are working.</p><p>So, to add a layer of complexity, this would mean that you might build a machine learning model which is taking the available data related to housing, containing elements such as location, crime, proximity to schools, transport links, proximity to shops, quality of shops surrounding that area, quality of schools in that area, clubs for extra-curricular activities, quality of education, number of detached houses, and more. If you can think of any factor (referred to as variables in data science) that you would think about before buying a house, it’s likely that it would have some influence over house price. And anything else that you can think of that has some influence over house price that may not fall into that category could also be useful information to help with our predictions.</p><p>These factors could all potentially be plugged into our model, and then this would provide us back with the value of what housing would be in a specific area when we’re looking at this from a fundamental perspective.</p><h4>So, what type of models would you consider using?</h4><p>This is where we would have to add a pinch of extra spice to the equation. So, to explain to you here what’s going on, we would first need to make sure you have a solid understanding.</p><p>So, we have supervised machine learning. Machine learning itself is where we are teaching computers how exactly they should be learning from patterns in the data so that they are able to draw insights for us from those patterns.</p><p>The way we teach the machines to do this is through the use of already built machine learning algorithms. Machine learning algorithms are also referred to as machine learning models, and the term is one that is used in a manner that is almost interchangeable.</p><p>If we were interested in creating Regressions, we as Data Scientists would typically tend to employ supervised machine learning methods.</p><p>This would be because we are using labelled data in this instance. Labelled data means that we have a specific target that we would be trying to hit. In our previous example, we were talking about trying to predict what the house prices in a certain area may be.</p><p>This would be our target variable, referred to as <em>y</em>. In this case, this would be housing price.</p><p><em>X</em> would be all the other variables (also known as factors) that we would use to help us predict what house prices are likely to be in the future.</p><p>Some of the most common supervised machine learning models Data Scientists would employ in order to solve this problem would be:</p><ul><li>Linear Regression</li><li>Lasso Regression</li><li>Ridge Regression</li><li>Decision Tree Regressor</li><li>Random Forest Regressor</li><li>XGBoost Regressor</li><li>Neural Network Regressor</li></ul><p>Also, some individuals can unfortunately make the mistake of suggesting that Logistic Regression should be here, and although it is a supervised machine learning model, it is used for classification problems and not actually regression — so don’t fall into that trap!</p><h4>If I made a Linear Regression model, how would I analyse it?</h4><p>WOAH! Nice question, who comes up with these? Well, let’s get straight to the point.</p><p>Imagine we were working with a Linear Regression model and we wanted to use that model to try and predict future house prices in a specific area.</p><p>We put our data inside the <em>X</em> column that might help us predict the variable, and for <em>y</em> we create a column using feature engineering if we don’t have one, or we just add in a column called “house price,” which could contain the price at which houses were sold in the past.</p><p>But we also need to be careful here. New Data Scientists can make the mistake of adding in future house prices, or an estimate of future house prices, into the <em>y</em> category as the target itself. This is called <strong>data leakage</strong>, and it is a big problem. This would be considered a big problem because we want the model to be able to learn what house prices will be in the future, but if we’re already giving it future house price data and then telling the model to predict it, the model will be perfect — but that’s only because we’ve given it the exact answer. So, it’s not actually having to predict anything.</p><p>That does not mean that it has learnt the patterns behind the data that would help it make predictions about other houses or new areas where houses have been built — which, if our model could do, would be far more valuable.</p><p>The regression model’s output would also be a numeric value. This would be house prices, and the value is referred to as a <strong>continuous value</strong>. This means that because house prices can take any infinite value, the value is continuous and unlimited in the range that it can take.</p><h4>So, we’ve managed to create a Linear Regression model — how can we measure how good it is?</h4><p>You’re on fire with the questions you’re asking today. I’m very impressed.</p><p>If we were to deploy a Linear Regression machine learning model and we’ve done all the previous stages, which include:</p><ul><li>Exploratory Data Analysis</li><li>Data Cleaning and Feature Engineering</li><li>Feature Selection and Feature Importance</li><li>Creating a Train/Test Split and Importing the Model</li></ul><p>Then you go into creating a Linear Regression model. This Linear Regression model would be utilising metrics such as <strong>MAE</strong> and <strong>R-squared</strong>.</p><p><strong>MAE</strong> stands for <em>Mean Absolute Error</em>. What this metric does is it looks at the predictions your model is making and compares those predictions to what the real values should be. It then provides back a mean value of how far each prediction is from the real value. So, the lower this value is, the better the performance of your model, as this would mean that your model’s predictions are closer to the real values.</p><h4>How would the model then know what the true values are if we never knew what future house prices even are going to be?</h4><p>The model does not know exactly what the prices will be in the future, but because our model has information about what house prices were in the past, it uses that information. And because we have a train and test split built into our model, this means that a proportion of that data is given to train the model and help it learn, and a proportion of the data is hidden from the model, which will later be used to test the model to see how well it actually performs when it works with data that it has never seen before.</p><p>This is important because when we are looking at machine learning models, the model is trying to give us a value and predict how good our values are based on a metric such as MAE. Those predicted values minus the real values are actually compared against the real values from historical data which the model has never seen — not real values from the actual future, which is data we can’t possibly have access to, as we don’t have time machines yet…</p><h4>You mentioned R-squared — what’s that about?</h4><p>R-squared is another metric that would be used to assess the performance of our model. The reason why we would want to do this is because R-squared would provide us with another independent viewpoint that could be used alongside MAE.</p><p>R-squared measures how much of the variation in house prices is actually being explained by the model.</p><p>So, if the value of R-squared is 0.85, then 85% of the variation in house prices is being explained by the model, which means that 85% of the fluctuations in price happening inside the data we gave to the model are being explained by the factors we gave to the model to help it learn the patterns and insights about what is going on when we set <em>X</em>.</p><p>This means the remaining 15% could be missing because we should have added more factors to the model to help it learn more patterns about the data, or to deal with the random noise inside our dataset better through more extensive cleaning of the dataset.</p><h4>Also!</h4><p>If you enjoyed this article, please feel free to read my other articles where I regularly post about new data science topics and content to help inform you of the latest data science trends and foundational topics.</p><p>Have a great week ahead! 👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13d725d69b56" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/regression-problems-how-data-scientists-love-solving-them-13d725d69b56">Regression Problems — How Data Scientists Love Solving Them</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Land the Data Science Interview You Want — 3 Insights from Industry Leaders (Part 2)]]></title>
            <link>https://medium.com/@aamir34234/how-to-land-the-data-science-interview-you-want-3-insights-from-industry-leaders-part-2-a20e8fe44965?source=rss-384964074c80------2</link>
            <guid isPermaLink="false">https://medium.com/p/a20e8fe44965</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[Aamir Raja]]></dc:creator>
            <pubDate>Wed, 15 Oct 2025 09:38:46 GMT</pubDate>
            <atom:updated>2025-10-15T09:38:46.703Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Land the Data Science Interview You Want — 3 Insights from Industry Leaders (Part 2)</h3><p><em>Dicussing my insights from data leaders about how you can land the role you want.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Rfr2rMU2k-59VoKvNno6A.jpeg" /><figcaption>Photo credit: Data Science Festival</figcaption></figure><p>Data science is becoming increasingly competitive to land a role within, and the pool of skilled candidates for data science roles just appears to keep growing larger and larger.</p><p>This leaves many candidates asking themselves the question: <em>What can I do to actually get the job I want? Do I even stand a chance? Is it worth even applying now? Should I switch my goals completely?</em></p><p>These are all valid responses to how competitive the job marketplace is right now. We’re all stuck in the same boat, and even the individuals who started from the beginning experienced those emotions combined with a myriad of different thoughts about why they’re not worthy enough.</p><p>But the truth is, you are. In this article, we’re going to be discussing the best tips, tricks, and insights I learnt from networking with highly skilled and experienced leaders in data from the prestigious Data Science Festival event I attended in London.</p><h4>Insight 1 — Ask for a virtual coffee</h4><p>This insight was learnt from hearing Belinda Whittingham talk about how to use LinkedIn to help yourself create networking opportunities.</p><p>Belinda is a highly respected, highly experienced Talent Acquisition Manager for PwC. Her role and expertise revolve around Cloud and AI Scale-Ups, Data Engineering, Digital Value Creation, and Restructuring, and she is a big advocate for Women in Tech and Social Mobility.</p><p>To share my thoughts and understanding of what Belinda was mentioning, this is essential. Most candidates will be clicking the apply button, or the quick apply button, and that racks up applicants fast for one role, leaving the competition very fierce.</p><p>Being able to request a virtual coffee on LinkedIn and being able to set one up with someone who is within the role that you want is what will allow you to fully understand the requirements of the role on a deeper level and understand the organisation’s values and structures, which will help you add more to your CV/resume when applying.</p><p>To add, Belinda mentioned that the people she will connect with the most on LinkedIn are individuals who leave a note. This is because it makes it clear how you know each other and what you’d ideally like to get out of the working relationship.</p><p>I believe that’s very important, and everyone should be leaving a note when adding someone they have never met or connected with.</p><p>Also, don’t ask for too much of an individual’s time. Be polite, be respectful, and always try your best to cater to the other individual’s schedule. This is because they have no obligation to help you, so being able to speak with them for free and for a portion of their time is incredibly helpful to you, so always be sure to be kind, polite, and empathetic.</p><p>Usually, working individuals also can’t spare too much time, so it’s best to request a virtual coffee that’s no longer than 30 minutes. These are all things to bear in mind when trying to find someone you can connect with to learn more about the company or the role.</p><p>To add, if this really goes well and the individual thought you were a good fit for the role, they could also refer you, which gives you an edge over the competition, so that’s another positive.</p><h4><strong>Insight 2 — Relate your previous experiences</strong></h4><p>This insight was gained from hearing Luke Morton.</p><p>Luke Morton is the CEO and Founder of FirstStage. This is an AI-powered company which assists businesses with finding the best data science candidates for the roles businesses advertise.</p><p>To share my thoughts about what Luke was saying, I agree greatly.</p><p>Many candidates, students, or recent graduates have some level of experience working in other roles. These roles may not be the ideal roles that they’re aiming for long term, such as Data Scientist, Machine Learning Engineer, or AI Engineer, but what many fail to see is that their previous experience can be worth a lot.</p><p><strong>How so?</strong></p><p>Well, I’m glad you asked. This is because everyone has varying experiences working in some kind of role or volunteering. The role doesn’t matter. What matters is what the role taught you.</p><p>The role may have taught you many things, such as:</p><ul><li>Teamworking skills</li><li>Communication skills</li><li>Stakeholder negotiation</li><li>How to deal with unpleasant situations</li><li>How to deal with multiple deadlines under pressure</li><li>How to respond to feedback</li><li>How to implement feedback effectively</li></ul><p>These are all valuable skills, and taking a moment to think about what your previous work experiences have taught you, irrespective of what the role is that you actually did, is what will allow you to show that you learnt new skills and got two to three steps closer to becoming a data scientist from doing something like working at McDonald’s.</p><p>It all depends on how you frame what you learnt as valuable to employers when you are applying for data science roles, because some of the skills required to be an excellent data scientist also overlap with a lot of other jobs. For example, if you displayed strong communication skills through your work at McDonald’s, that is very important and valuable, and if you’re able to relate how that’s important for the work of a data scientist for the role you’re applying for, by learning why it is, then that’s what will help your application stand out.</p><p>Take a moment to think about what skills you learnt from your previous role, and how and why those skills are useful for data science, and highlight those in your CV/resume.</p><h4>Insight 3 — Mention podcast names</h4><p>This was an insight gained from Belinda, which I thought was very useful and helpful.</p><p>To add, this particular insight might be more relevant to when you land your first interviews, but it’s useful and helpful nevertheless, and this was definitely one of my top insight picks from the talk.</p><p>To share my thoughts and understanding about what Belinda was saying, it’s very important to show that you’re passionate about the role you’re applying for.</p><p>That may sound rather general, but when we dive deeper here, you’ll see the value in this.</p><p>A lot of individuals at the gym or while driving are listening to music. Instead, this is time you could potentially replace the music with audiobooks or podcasts — and those podcasts could be relevant to the role you’re trying to apply for.</p><p>For example, if you’re trying to apply for data science roles, you could be listening to data science podcasts while you’re doing a safe activity that doesn’t require your attention too much.</p><p>This is useful because when you have an interview, you can subtly drop the name of the podcast you were listening to and what you were learning from it when asked about what your hobbies are.</p><p>This will set you apart from other candidates in interviews because if the podcast covers topics and content from data science that will likely be useful for the role you’re applying for, you’ll likely have a deeper understanding than if you choose not to listen to data science podcasts in your spare time.</p><p>Good places to find data science podcasts could be:</p><ul><li>Audible</li><li>YouTube</li><li>LinkedIn Live</li><li>Spotify</li></ul><h4><strong>Conclusion:</strong></h4><p>Learning and implementing advice from individuals who are well-established within the industry is vital. They’re able to share information and insights which may contain information or useful little snippets that may not have crossed our minds before. I believe being able to implement this advice is what will definitely add to your personal development and support you within your data science journey.</p><h4><strong>Also!</strong></h4><p>The insights from the event were huge and really insightful, so I couldn’t share all of them in one article to avoid overwhelming you. So, if you found this article insightful, please don’t hesitate to take a look at the following articles I wrote based on what I learnt.</p><p>Have a great week ahead! 👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a20e8fe44965" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Land the Data Science Interview You Want from Data Leaders in the Field — Part 1]]></title>
            <link>https://medium.com/@aamir34234/how-to-land-the-data-science-interview-you-want-from-data-leaders-in-the-field-part-1-92370f5fb7e0?source=rss-384964074c80------2</link>
            <guid isPermaLink="false">https://medium.com/p/92370f5fb7e0</guid>
            <category><![CDATA[pwc]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[recruiters]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[Aamir Raja]]></dc:creator>
            <pubDate>Wed, 15 Oct 2025 09:35:51 GMT</pubDate>
            <atom:updated>2025-10-16T07:48:46.205Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Land the Data Science Interview You Want — 3 Insights from Industry Leaders (Part 1)</h3><p><em>Discussing the insights I learnt from data leaders and experts in the field</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pIUDP3c3MjfBrLB6JszdVA.jpeg" /><figcaption>Photo credit to Data Science Festival</figcaption></figure><p>It’s no secret that data science is one of the most prestigious and competitive fields that graduates and job-changers are all competing to get into right now.</p><p>This has made it increasingly difficult to get into, with the lack of job opportunities and the massive rise in the pool of highly qualified and skilled candidates applying for data science roles in an economy that seems to be quite stagnant currenly.</p><p>I’ve been networking extensively with leaders in data science and individuals who have founded data science companies at one of the most prestigious networking data science events in London, referred to as the Data Science Festival.</p><p>This article will be disussing the best insights, tips, tricks and advice that I learnt from speaking with leaders, professionals and founders on data science companies for those seeking to find their first data science role.</p><h4>Insight 1 — Commit to Continuous Improvement to Enhance Your Skills</h4><p>This first insight is drawn from Tia Cheang who was a key speaker at the Data Science Festival who was talking about how to land the interview you want. For information about her background in data science, Tia is a Chief Data and AI officer for InvestIndustrial and was awarded data leader of the year and has worked for prestigious organisations such as KPMG.</p><p>Her experience has been in high level roles such as:</p><ul><li>Director of Data Analytics and Digital Strategy</li><li>Chair</li><li>Board advisor</li><li>Vice Chair</li><li>Global Head of Data Strategy and Analytical Operations</li></ul><p>To add my own ideas and understanding from the quote given by Tia, it’s evident that breaking into data science can be very difficult. This is because companies’ requirements or essentials list for roles seems to be ever expanding and always updating for each data science role.</p><p>No data science role will ever have the exact same set of requirements or skills, but there are a few skills which appear to be consistent amongst most data science roles for companies that individuals appear to be applying for.</p><p>Some of the most important ways that individuals can improve their data science skills is through understanding exactly what a data science role requires and how they can show that on their CV/Resume.</p><p>Once individuals have an understanding of what a data science role requires, then individuals must invest their time or resources into developing those relevant skills in order to stand a real chance of getting an interview for their dream role.</p><p>This could involve going down multiple pathways to develop those skills, such as:</p><ul><li>Creating personal projects using Kaggle.</li><li>Asking family, friends or small business owners if you can do data science projects for them for free.</li><li>Pursuing data science bootcamps.</li><li>Doing online short courses.</li><li>Asking your manager if you’re able to do more data science work to help you upskill.</li></ul><p>These are relevant pathways that an individual can go down to develop their skills, but each pathway isn’t perfect and it comes with its own cons.</p><p>For example, creating personal projects on Kaggle might be easier to do because you’re able to gain access to data which isn’t confidential or private, but the downsides of projects like this is that everyone seems to be doing their own personal projects in some way, shape, or form. This means that most Data Scientists will have done a Kaggle project using The Titanic dataset and created machine learning models from it.</p><p>However, the issue with this is if you do the same project and everyone else has also done this project and uses it on their CV/Resume to apply for jobs how does that differentiate yourself from the competition?</p><p>Like I mentioned each of these options comes with their own set of cons, and each set comes with its own set of advantages:</p><ul><li>Ease of accessibility</li><li>Relevance to the role</li><li>Prestigious name</li><li>Internal recognition from managers</li></ul><p>I’m leaving this part up to you to have a think about which advantage is linked to which option to make this a smoother reading experience for you, but I believe it’s mostly self-evident. If not, feel free to leave a question at the bottom of this article, and as a data scientist myself I’ll do my best to reply and answer, but I believe in you all!</p><p>Coming back to the notion, these all should provide you with some ideas of projects you can do to upskill and once you have done these projects or gained the relevant skills you should be writing an article, or advertising these skills that you are learning on LinkedIn and adding these projects to your CV/Resume so that you’re one step closer to landing the role that you want.</p><h4><strong>Insight 2 — Create Your Own Opportunities via LinkedIn</strong></h4><p>This is a really important and highly underrated option that most data science professionals fail to consider when it comes to maximising your chances of landing that dream role.</p><p>This was an insight that I gained from hearing Belinda Whittingham speak about how to land the interview you want.</p><p>Belinda is a highly respected, highly experienced Talent Acquisition Manager for PwC. Her role and expertise revolve around Cloud and AI Scale-Ups, Data Engineering, Digital Value Creation, and Restructuring, and she is a big advocate for Women in Tech and Social Mobility.</p><p>To add to my own understanding from what I learnt, I agree with this insight heavily.</p><p>From what I understood, this is extremely important because if a technical recruiter for a data science role is recruiting for a data science position, they usually will have 200–300 applicants or more. Some roles can even go up to 500 or 600 applicants, depending on the organisation that individuals are applying to.</p><p><strong>So, how does this insight help me?</strong></p><p>Well, that’s a good question. This is what separates you from everyone else.</p><p>Being able to send someone a LinkedIn message to connect will provide you with the ability to maybe set up a short meeting with them online to help you better understand the requirements of the role, the company’s values, and what the company is really expecting from candidates applying for the Data Scientist role.</p><p>To add, when you actually apply, this means that your name might get recognised, and since you already appeared passionate when it came to talking about yourself, your experience, and the projects you’ve done that relate to the experience needed for the role, it will help you stand out and give you that extra boost that other candidates won’t have since most candidates don’t do this.</p><p>Sometimes it’s about applying for fewer roles, really strengthening your application, understanding what the company is looking for really well, and showing that in your application and assessments to fly through and land the role.</p><p>So, it might seem counterintuitive, but it’s not always best to strike while the iron is hot — sometimes you need to sharpen your skills before entering the arena because no one really knows what you might face.</p><h4><strong>Insight 3 — You Need Mentors in the Industry</strong></h4><p>This one might be clear to many people, but it might also not be the first thing that most people think of when they think, <em>how can I really get good at data science and land that first interview?</em></p><p>This great insight also comes from Belinda, who gave a lot of highly useful information for the data science graduates and all the individuals seeking to break into data science.</p><p>My thoughts from hearing Belinda speak about this area and from what I understood is that this is almost essential.</p><p>The reason why I believe this is because most people don’t have someone helping them who is inside the field.</p><p>Can you imagine what it would be like if you wanted to apply for Google or Meta or another highly prestigious FANG company and you had someone who works in the field and can give you direct insight into what the company is actually looking for?</p><p>Like with all things, it’s not a guarantee that you will get the role.</p><p>Like Benjamin Franklin says, <em>“The only sure thing in life is death and taxes.”</em> Which is why no one can <strong>guarantee</strong> anything.</p><p>This quote could never be more true. So, there are no guarantees when it comes to landing the role, but this tip helps massively if you do find a mentor willing to help.</p><p>Any help is better than none from someone who is experienced and has valuable insights as a Data Scientist in the field.</p><p>Well, how do I do this?</p><p>Thanks for asking.</p><p>It’s simple, really. When you have set up your virtual 30-minute coffee session to get to know more about the role, all you simply ask is, <em>“Would you consider mentoring me?”</em></p><p>This might seem direct, but this is the best way of doing it, especially if the individual you’re speaking with has the role that you’d dream of having.</p><p>This also saves you time, as you can find out immediately, and helps the other individual involved, as they know exactly what you’re looking to gain from the professional relationship.</p><p>If they say no, that’s fine. There are always more people you can ask.</p><p>The bigger your sample size, the higher the <strong>probability</strong>.</p><h4><strong>Conclusion:</strong></h4><p>Overall, if you want to maximise your chances when it comes to landing the interview you want, then I would recommend making your own notes about what I’ve learnt from the experts in the field that I got a chance to hear from and implementing them in your life, as that’s what is going to help you improve your chances the most.</p><h4>Also!</h4><p>The insights from the event were huge, and really insightful, so I couldn’t share all of them in one article, to avoid overwhelming you. So, if you found this article insightful please don’t hesitate to take a look at the following articles I wrote about from what I learnt.</p><p>Have a great week ahead! 👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92370f5fb7e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Meta’s Director of Data Engineering Taught Me About Breaking Into Data Science]]></title>
            <link>https://medium.com/data-science-collective/what-metas-director-of-data-engineering-taught-me-about-breaking-into-data-science-0d5d823d8408?source=rss-384964074c80------2</link>
            <guid isPermaLink="false">https://medium.com/p/0d5d823d8408</guid>
            <category><![CDATA[coding-interviews]]></category>
            <category><![CDATA[meta]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Aamir Raja]]></dc:creator>
            <pubDate>Tue, 14 Oct 2025 11:02:12 GMT</pubDate>
            <atom:updated>2025-10-16T13:03:48.390Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>Discussing the insights that revealed what technical recruiters expect from candidates</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ir9GeynZZoB-oQbK" /><figcaption>Photo by <a href="https://unsplash.com/@maria_shalabaieva?utm_source=medium&amp;utm_medium=referral">Mariia Shalabaieva</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I remember times when I thought to myself that it was impossible to get into Meta, Google or big prestigious tech companies based in London. I really felt I had no idea, and to add to that, like most people, I felt that I wasn’t “talented enough” to even apply for such roles when I saw openings. But luckily, my mindset started changing, as I learnt tips and tricks from experts inside various highly prestigious companies leading the field of tech/AI/data engineering and data science.</p><p>You may be thinking, how? Well, I recently got very lucky and was able to secure a ticket to the Data Science Festival in London. This is one of the most prestigious data science networking events to attend within London, and the event contained speakers from all parts of data science who were usually holding the title of Head of Data Science, and highly experienced technical recruiters were accompanying them there too.</p><p>Experts from Meta, Google, PwC, Amazon and more companies all had converged for us at London’s largest data science event to provide their best advice to all of us seeking to find their way in data science.</p><p>The talks ranged in topics covering areas such as how to ace the technical interview to how to build a data science brand for yourself. The insights were extremely valuable, and as someone who has recently graduated from his own Data Science MSc hoping to land his first role as a Data Scientist I felt that the insights I gained from the leaders in data science I spoke with were extremely useful. When such tips are applied correctly they can provide us with a unique advantage when applying for competitive roles at companies such as Meta, Google or any other company seeking data scientists.</p><p>This article will be covering the best insights, tips and tricks I learnt from leading figures inside the world of data science when it comes to securing your first role, helping you to succeed in your current one, or helping you to get that next big promotion you’re hoping for.</p><h4><strong>Well, what’s the best thing you learnt from these leaders of data science?</strong></h4><p>That’s a great question to be asking. At the moment, data science is more competitive than ever to land the first role in. Data science sectors inside large companies don’t appear to be hiring as much as they once did, and the pool of candidates that these prestigious tech companies have to choose from has massively increased.</p><p>One reason as to why this was is because data science was receiving huge amounts of media coverage, referring to data science as the new hot and emerging field which everyone loved. This shifted a substantial amount of academic focus for students who may have been interested in other STEM subjects to data science, massively raising the pool of interested parties. Therefore, generating a higher pool of qualified candidates graduating from universities taking relevant subjects such as:</p><ul><li>Economics</li><li>Data Science</li><li>Statistics</li><li>Mathematics</li><li>Machine Learning</li><li>Psychology</li><li>Physics</li></ul><p>As a result of this larger influx of students seeking to become qualified to seek out data science positions, and having the ambition to do so also, the number of data science openings did not match this new large influx, making the process incredibly competitive.</p><h4><strong>Well, what do we need to know to help us?</strong></h4><p>Firstly, you need to understand that when it comes to your personal CV/Resume and cover letter for data science roles or data engineering roles, hiring managers and technical recruiters from successful data science companies refer to themselves as “time poor.”</p><p>Time poor means that these technical recruiters can only give a limited amount of time to scanning over your CV/Resume and understanding if you’re the person they need, or not.</p><h4><strong>So, how can we maximise our chances of being that person?</strong></h4><p>Technical recruiters need you to be able to show how your past experiences and past projects are relevant to this new role you are applying for.</p><p>This means that you need to understand how the projects that you’ve done at university, or in your spare time, have solved some ideal business problem. For example, I created a machine learning model which would accurately predict fraudulent transactions, saving financial institutions tens of thousands of dollars by accurately identifying fraud before it happens.</p><p>That may not be the most concise way of mentioning what the task was, what the outcome was, and how that solved a particular business problem, but that should provide an overview of how each part of your resume should try and show how you’ve tried to solve a particular business problem and what the impact would have been realistically if you had applied your solution to the real world.</p><h4><strong>But, I actually have some relevant experience too, so how would I use that?</strong></h4><p>If you have relevant experience, either in the form of an internship, a placement year, or a full-time or part-time role because you may have already graduated or are looking for a career change, then that’s even better.</p><p>Real world experience will always trump personal projects if the experience shows that you have been using data science techniques and skills relevant to the role that you are applying for, and the applications of your skills solved a business problem, generated higher profits, increased revenues, or helped the company in some way, shape, or form.</p><p>This goes above what the standard applicant will be writing within their Resume/CV because this shows that you thought about what the business problems were that the company you were working for was actually facing and you had an impact to help solve those issues. That alone would place your experience section in your CV/Resume one tier above the standard CVs which don’t list that, and that is very important to do.</p><h4><strong>That’s great, but what if I don’t know what business problems are?</strong></h4><p>This is the age of AI, like one of the data science speakers stated at the festival. If you want to advance your thoughts, or help brainstorm ideas, there is nothing wrong with using AI to help you learn or help you think, just make sure that the work that you are putting down on your CV is written in your own words and accurately reflects the work that you did and the impact that you actually had.</p><p>The best technique I learnt from the Director of Data Engineering at Meta was to use following prompt inside of ChatGPT:</p><p><em>“Imagine you are a product manager for [insert company you are applying for]. What would be the biggest challenges your business would be facing and what would the business problems be that you’d want someone who is a [insert role that you are applying for] to be fixing for you.”</em></p><p>Then what this should do is provide you with an overview of some of the biggest business problems and challenges that the company you are applying for regularly faces when it comes to their overall running or management. So, you would then need to think: could I do a particular project that would show that I can fix these business problems for this company? Or, is there a particular role that I could apply for which would refine my skills and help me to solve similar business challenges, so that when I apply or come back to apply having prepared myself and refined my skills, I would be one of the top applicants, as it would be clear that I not only would do well in the role but I understand what challenges the business faces and would be able to address those through the skills I’ve learnt and developed.</p><p>Hiring managers and technical recruiters don’t always want the best candidate. They sometimes want the candidate who would be the safest option.</p><p>Imagine yourselves in their shoes. The managers likely have a million different responsibilities and tasks that they need to complete which have tight deadlines, and to add to their list of responsibilities they would now also need to hire a new Data Scientist, Data Engineer, or Data Analyst. You would want to be safe first of all when it comes to picking the right applicant because you wouldn’t want to make the business challenges go from hard to harder.</p><p>If someone looks like they’d easily slide into the role and be able to do the job with as little support as possible, that’s someone that they usually would want. But, you also need to prove that’s you, which is what we’ll be heading to down below.</p><h4><strong>So, if a technical interview comes up, what should you do to ace it?</strong></h4><p>The Director of Data Engineering at Meta gave a very insightful talk about how to ace the technical interview alongside other highly experienced Heads of Data Science from multiple companies across the industry.</p><p>The key message that all the panellists really tried to emphasise was that you need to be able to explain how you are thinking. The best tip that they would give to all applicants is that you need to think out loud. When the Hiring Manager wants you to solve a technical issue you need to be able to think out loud. Yes, for most people that isn’t something we all naturally do, so doing this for the first few times will be awkward or seem unfamiliar, but practice really makes perfect.</p><p>Try following this checklist to ensure you’re doing an excellent job during the technical interview:</p><ul><li>Always think out loud from the first part of the technical interview to the last.</li><li>Make sure you always explain your choices and the approach that you’re taking and why you chose that approach over the other possible approaches.</li><li>Show that you understand the limitations of your approach and how it could be made better, or any business challenges that could appear in the future as a result of it, and how this might solve that too when it comes to data structures or ease of accessibility.</li></ul><p>Most importantly, the Director of Data Engineering from Meta said he respected applicants more who, when they got stuck, instead of giving a wrong answer, actually admitted that they had forgotten or needed a moment to just think, because it showed honesty, transparency, and usually that actually led to the applicant doing better.</p><h4><strong>Biggest mistake that applicants were making in Meta’s technical interviews?</strong></h4><p>They weren’t listening well enough.</p><p>What the Hiring Manager at Meta was really emphasising a lot was that a lot of the individuals who were applying were strong technically and had amazing backgrounds, but their explanations weren’t at the level that they needed to be at to be considered an ideal candidate for the role.</p><p>This is because interviewees would digress and steer away from the question or go off-topic, which would mean that they wouldn’t be giving answers to the questions actually being asked of them, just because their thoughts led them elsewhere.</p><p>The Hiring Manager at Meta would then provide them with a hint or a tip to help steer the interviewee back to the question, but then the interviewee wouldn’t take the hint or listen to the clue, and instead just follow the incorrect chain of thought or go off topic.</p><p>This would then lead to another suggestion or tip being handed out by the interviewer, and that would lead to the interviewee once again not taking the hint or clue, which would make the process more difficult for them.</p><p>So, the key takeaway that was really being emphasised was that interviewees need to understand that the hiring managers and technical interviewers weren’t trying to trick them, or that they were against them, or had any other sinister motive. They really were on their side, and they are on our side. They want to help you and guide you along the right thought process so that you can land the role that you wanted and get accepted into Meta or Google or any other prestigious tech company that you’ve dreamed about working for.</p><h4><strong>Overall?</strong></h4><p>If there’s one key area that you should take away from reading this article, it is that experience is king irrespective of the format it may come in. This means start as soon as possible to build experience in what hiring managers are looking for in the roles you are applying for. Also, don’t hesitate in technical interviews and always listen to the help that is being provided.</p><p>This might sound simple, but most people don’t do this and that’s what will separate you from the rest.</p><h4><strong>Also!</strong></h4><p>If you enjoyed this article, please feel free to read my other articles where I regularly post about new data science topics and content to help inform you of the latest data science trends and foundational topics.</p><p>Have a great week ahead! 👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0d5d823d8408" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science-collective/what-metas-director-of-data-engineering-taught-me-about-breaking-into-data-science-0d5d823d8408">What Meta’s Director of Data Engineering Taught Me About Breaking Into Data Science</a> was originally published in <a href="https://medium.com/data-science-collective">Data Science Collective</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[K-Means Clustering — What Every Data Scientist Should Know.]]></title>
            <link>https://pub.towardsai.net/k-means-clustering-what-every-data-scientist-should-know-b770d3deebcc?source=rss-384964074c80------2</link>
            <guid isPermaLink="false">https://medium.com/p/b770d3deebcc</guid>
            <category><![CDATA[unsupervised-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[k-means]]></category>
            <dc:creator><![CDATA[Aamir Raja]]></dc:creator>
            <pubDate>Fri, 03 Oct 2025 13:58:55 GMT</pubDate>
            <atom:updated>2025-10-04T09:02:24.400Z</atom:updated>
            <content:encoded><![CDATA[<h3>K-Means Clustering — What Every Data Scientist Should Know</h3><h4><em>Discussing and simplifying intricacies of K-means clustering for machine learning.</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8qU8fpypUptmvMMK" /><figcaption>Photo by <a href="https://unsplash.com/@omilaev?utm_source=medium&amp;utm_medium=referral">Igor Omilaev</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4><strong>K-means clustering. What exactly is this?</strong></h4><p>It’s an extremely useful machine learning model that creates clusters in order to identify patterns and/or structures inside of the data.</p><p>This model is an unsupervised machine learning model. This means that the data the model is working with is unlabelled. This would mean that there is no predefined outcome or target that we are aiming for when putting our data into a model, so this K-means clustering model will help us identify patterns to help us determine what we should aim for.</p><p>This is important because sometimes the data that a Data Scientist like myself can be working with can be unstructured and unlabelled, but this particular technique can do a good job of identifying the key patterns behind all the values.</p><p>This article will explain K-means clustering, how it works in practice and mathematically, and the practical real-world applications behind K-means clustering models.</p><h4><strong>How does K-means clustering work?</strong></h4><p>K-means works by identifying similar data points and deciding to group them all together because the machine learning model has learnt from scanning the data that these particular data points have similar characteristics, and so it works in a way to help categorise similar points together.</p><p>For example, you could have different areas of a city, and you may want to group different houses inside of a city into different groups according to the risk of criminal activity in those areas. Such data points could be grouped into three groups:</p><ul><li>High crime risk</li><li>Neutral crime risk</li><li>Low crime risk</li></ul><p>This could be because the data points that are being given to the model may be house values, and specific house values align to different parts of the city.</p><p>K-means also works by minimising the distance between data points in order to form clusters that are more likely to demonstrate similar patterns, habits, or shared characteristics. This means that the data points are minimising their distance to one another by using a mathematical formula referred to as <strong>Euclidean Distance</strong>, which will be explained further below.</p><p>This is important because this ensures that we have closely structured clusters with high levels of cohesiveness. The reason this is significant is because high cohesiveness means that the data points inside of the cluster are similar to one another and deserve to belong together. However, if they demonstrate low cohesiveness, then each data point inside of a cluster likely does not demonstrate shared characteristics — meaning the points shouldn’t be categorised into the same group.</p><p>For example, if you have a data point suggesting that one individual is at high risk of developing a disease, based on that individual’s lifestyle habits and personal genetics, you wouldn’t want to group that person with someone who is low risk and say that they are the same, as they do not have shared characteristics. Clearly, that would lead to irrelevant or inaccurate pattern identifications, which this part of K-means clustering helps to negate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*EY9uf0q01dUudNkOdE5o_g.png" /><figcaption>Euclidean distance formula</figcaption></figure><p>From the above, we can see the <strong>Euclidean distance</strong>, which aims to minimise the distance between the data points. X2−X1​ illustrates that we are calculating the distance between the x-coordinates, and Y2−Y1 illustrates that we are calculating the distance between the y-coordinates inside of data points.</p><p>Point x could be representing one variable, and y could be representing another. We then would square both of these distances and take the square root of the above. This is how K-means clustering would calculate the distance between each data point and aim to minimise that to maximise similarity of each unique data point.</p><p>To add, K-means clustering also attempts to maximise the distance between each cluster that has been created. The reason for this is because the model hopes to ensure that each cluster that is created is as distinct and unique from one another as possible to help with pattern identification and recognition.</p><p>Now that we have explained how Euclidean distance works, we will demonstrate the true formula for K-means clustering below, as the above was to demonstrate how the notion works before it becomes slightly more complex.</p><p>Each cluster has a centre point to it. This is referred to as a <strong>centroid</strong>. Centroids are calculated by taking the mean of all the data points that exhibit similar characteristics to one another. This could be the mean of the y-values, x-values, and z-values, or more depending on how many values the model has assigned to the cluster.</p><p>Below we can observe the primary goal of K-means clustering. Here, the formula is attempting to minimise the distance between each data point inside of a cluster and the centre point of the cluster that it is assigned to.</p><p>Since the formula is taking this as a sum of squares, we refer to this as minimising the <strong>sum of squares</strong> between the data points and their assigned cluster.</p><p>This is done by taking the sum of squared distances inside of a cluster, as shown below:</p><ul><li>Xi represents the data point.</li><li>k represents the total amount of clusters.</li><li>Ck is a cluster referred to as cluster k, as there can be many.</li><li>Uk​ represents the centroid of the cluster.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mT_ed61BM59D1r-eEhNnpQ.png" /></figure><h4><strong>How would K-means clustering be applied to a dataset?</strong></h4><p>To begin the process, we would need to first determine the value of <strong>K</strong>. K in this instance would denote the number of clusters we have decided to create for our dataset.</p><p>Once this has been determined, the machine learning model itself will attempt to start creating centroids and assigning values to these centroids, with the values being selected in a random order. Also, as each new data point is added iteratively to a cluster, this means that the mean of the cluster changes due to the values inside the cluster tweaking. This is a continuously iterative process done by the model until the centroid inside the cluster converges to a particular point.</p><p>In order to ensure that the clusters are of good quality, each of the clusters should be different from one another, and all of the data points inside of a cluster should be similar to one another. This will be performed through Euclidean distance and minimising the sum of squares.</p><h4><strong>How are K-means models usually applied to real-world scenarios?</strong></h4><p>K-means models are usually applied for three main purposes:</p><ul><li>Customer segmentation</li><li>Document clustering</li><li>Image segmentation</li></ul><p><strong>Customer segmentation</strong> is where different groups of customers are assigned to a particular group based on their shared characteristics, habits, or lifestyle choices.For example, customers who may be purchasing similar Amazon products may be assigned to one group. Customers can be grouped based on many shared characteristics such as:</p><ul><li>Income</li><li>Age</li><li>Spending habits</li><li>Background</li><li>Product preferences</li><li>Location</li></ul><p><strong>Document clustering</strong> is when similar documents are assigned to a particular cluster. This can make it easier to access similar documents if you have thousands of documents and need to group them into a category according to topic or contents.</p><p><strong>Image segmentation</strong> is when we assign particular images to a cluster. These images can be assigned based on the number of pixels in the image or the similarity of the colours of the pixels that make up that image, depending on the goal.</p><h4><strong>Conclusion:</strong></h4><p>Overall, K-means clustering is an effective unsupervised machine learning model that takes unlabelled data and helps categorise the data points into specific groups (clusters) that are distinct from one another based on the mathematical formula we listed above.</p><p>This can be especially helpful when the dataset you are working with does not have a specific objective. For example, you would normally use some variables to predict something else, but if that is unclear, this can help with pattern identification to determine what you can predict based on your available data.</p><h4><strong>Also</strong>!</h4><p>If you enjoyed this article, please feel free to read my other articles where I regularly post about new data science topics and content to help inform you of the latest data science trends and foundational topics.</p><p>Have a great week ahead! 👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b770d3deebcc" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/k-means-clustering-what-every-data-scientist-should-know-b770d3deebcc">K-Means Clustering — What Every Data Scientist Should Know.</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Random Forest Explained: Why It’s the Swiss Army Knife of Machine Learning]]></title>
            <link>https://pub.towardsai.net/random-forest-explained-why-its-the-swiss-army-knife-of-machine-learning-b486d07d44cc?source=rss-384964074c80------2</link>
            <guid isPermaLink="false">https://medium.com/p/b486d07d44cc</guid>
            <category><![CDATA[random-forest]]></category>
            <category><![CDATA[predictions]]></category>
            <category><![CDATA[supervised-learning]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Aamir Raja]]></dc:creator>
            <pubDate>Sun, 14 Sep 2025 19:43:23 GMT</pubDate>
            <atom:updated>2025-09-28T11:59:39.315Z</atom:updated>
            <content:encoded><![CDATA[<h4>Discussing the intricacies behind Random Forest models.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4UuSmrdTGE7e_DFcDt5wLA.png" /></figure><h4><strong>Random Forest… What’s this about?</strong></h4><p>Like we’ve covered in previous articles, our machine learning models are primarily created to solve one of two issues. This can either be a classification issue or a prediction business problem that is performed to help a business meet its goals — whether that be enhanced profitability, productivity, performance, risk prediction and analysis, lower crime, or fraud detection. The plethora of issues that can be solved is endless. It’s really just up to the data scientist’s/analyst’s imagination to determine what exactly the business needs to solve in order to thrive.</p><p>Random Forest appears to be used thoroughly throughout multiple industries due to its versatility, performance capabilities, and accuracy when it comes to dealing with classification issues (Salman et al., 2024).</p><p>The model itself falls under the category of supervised machine learning models. This means that the model usually requires labeled data in order to learn patterns that help make predictions or classify the data into different groups.</p><p>Practical applications of the Random Forest machine learning algorithm can be seen as follows:</p><ul><li><strong>Banking.</strong> Random Forest models have been designed in the past to determine how creditworthy an applicant is, based on a multitude of financial characteristics (Salman et al., 2024).</li><li><strong>Health care.</strong> Random Forest models have been used in health care to predict a patient’s probability of developing a particular disease, or their risk of a disease based on factors listed within their medical history (Salman et al., 2024).</li><li><strong>Stock markets.</strong> Random Forest models have been deployed by quantitative analysts to observe how volatile a stock price is, which helps inform decision-making when it comes to advising their clients about whether they should purchase or sell their stocks to optimize their profits (Salman et al., 2024).</li><li><strong>E-commerce.</strong> Online websites have utilized Random Forest’s ability to make predictions to help businesses determine customer preferences based on factors such as a consumer’s past spending habits/patterns (Salman et al., 2024).</li></ul><p>You may be thinking <em>woah</em>, but this list is not an exhaustive account of all possible uses Random Forest has been applied to. What I have provided is simply a brief overview to help you understand the impact that Random Forest models are having within a business context, allowing you to observe how multi-million-dollar companies are happy to use these models to enhance their performance and profitability for their shareholders.</p><p>I hope what I’ve said so far has ignited your interest in Random Forest models, because within this article we are going to be discussing the inner intricacies of Random Forest models, how they work, how they are being used, and evaluating whether there are any disadvantages to deploying such models within the machine learning universe of data science and data analytics.</p><h4><strong>How does the Random Forest model work?</strong></h4><p>Random Forest works by forming a base model referred to as decision trees, and the model itself is made up of multiple decision trees. So, it’s really important that we understand how decision trees work in order to understand how the Random Forest algorithm works (IBM, 2025).</p><p>Decision trees are formed by having a root. This is the top of the hierarchy and represents the issue that is trying to be solved. This then breaks down further so that we have nodes and internal roots which simplify decision-making and break down the issue. We start with the issue, which then breaks down into all possible outcomes, showing solutions for all of the possible associated outcomes from the dataset you are working with (IBM, 2025).</p><p>Machine learning models like Random Forest will take all the possible outcomes from all of the decision trees.</p><p>The great thing about the decision trees is that, for Random Forest, they will all draw upon a random part of the data to help the model make predictions about unseen data (the data that you have not used to train the model). This ensures that all of the Random Forest models will be unique from one another and provide slightly different predictions based on what the models learned from the piece of random data it took from the entire sample (GeeksforGeeks, 2025).</p><p>Usually these decision trees work to solve classification or regression issues:</p><ul><li><strong>Classification</strong> means you are attempting to group data into one or more categories in order to solve your business problem. <em>E.g., determining whether an email is spam or not.</em></li><li><strong>Regression</strong> issues are when you are attempting to predict the future of something using the numerical data that you have available surrounding that topic. <em>For example, you may be attempting to predict future house prices using data that contains numeric values about all the house prices within London.</em></li></ul><p>The great thing about Random Forest is that, because each decision tree is also trained on a random part of the entire dataset, this ensures that each decision tree avoids overfitting (GeeksforGeeks, 2025). Overfitting happens when the model molds itself to pick up too many of the patterns from the dataset too well. This may sound great on paper, but in reality it means the model also uses irrelevant details or noise to inform its final decision-making, reducing accuracy and predictive power overall.</p><p>Taking the average of all predictions made from all the decision trees means that the model is referred to as an <strong>ensemble model</strong> by data scientists, as it is comprised of a collection of individual models that have been created to form the complete model — in this case, the many decision trees that generate the Random Forest model.</p><h4><strong>What are the advantages of using Random Forest models?</strong></h4><ul><li>Each tree is making its own prediction, so this means that each of the trees being produced doesn’t need support from the others (GeeksforGeeks, 2025).</li><li>Because each of the trees is built separately and trained on a random part of the data, the model is less likely to make mistakes and is more likely to pick up important information from the training data (GeeksforGeeks, 2025).</li><li>Combining all the predictions of the various trees really enhances the power of the model. One decision tree alone can be useful, but when you combine the predictions of multiple decision trees — each trained on different parts of the data — it generates powerful predictive performance. This also heavily reduces the risk of overfitting the data (IBM, 2025).</li><li>Random Forest also has the ability to handle missing data well. This is because each of the trees has been created individually, and because they don’t rely on support from one another, collectively taking all their predictions and using that to form final outputs gives the model a high degree of accuracy by capturing patterns from random samples of the dataset and applying them to unseen data successfully (IBM, 2025).</li><li>Random Forest can also reveal which of the variables are contributing the most predictive power to the model and which variables aren’t, allowing you to easily assess what your model needs and what you can remove to speed up the creation process (GeeksforGeeks, 2025).</li></ul><h4><strong>What are the potential downsides to using the model?</strong></h4><ul><li>Random Forest models can be computationally expensive. This means that the models can take a lot of time and resources to run (IBM, 2025). The reason for this is that the model is creating multiple decision trees and requires a lot of power from your PC. As a result, the model will consume a large amount of RAM or GPU/CPU power.</li><li>If you’re newer to data science, you might also find it harder to interpret the model compared to just working with a single decision tree, given that the model can be made up of 20 or more trees (GeeksforGeeks, 2025).</li></ul><h4><strong>Overall?</strong></h4><p>Overall, Random Forest is a massive upgrade from using decision tree models if that’s what you’ve been using before, due to their simplicity. If you’d like to use this particular model, you can implement it in Python through Pandas and scikit-learn libraries. This will allow you to import relevant libraries, develop a train/test split, and experiment with building your own models. Explore the models for yourself and see how powerful they really are when deployed on large datasets.</p><h4><strong>Also!</strong></h4><p>If you enjoyed this article, please feel free to read my other articles where I regularly post about new data science topics and content to help inform you of the latest data science trends and foundational topics.</p><p>Have a great week ahead! 👋</p><h4><strong>References:</strong></h4><p>Salman, H.A., Kalakech, A., &amp; Steiti, A. (2024). <em>Random Forest Algorithm Overview</em>. <em>Babylonian Journal of Machine Learning</em>, pp. 69–79. <a href="https://doi.org/10.58496/bjml/2024/007">https://doi.org/10.58496/bjml/2024/007</a></p><p>IBM. (2025). <em>What is Random Forest?</em> IBM. Available at: <a href="https://www.ibm.com/think/topics/random-forest">https://www.ibm.com/think/topics/random-forest</a></p><p>GeeksforGeeks. (2025). <em>Random Forest algorithm in machine learning</em>. GeeksforGeeks. Available at: <a href="https://www.geeksforgeeks.org/machine-learning/random-forest-algorithm-in-machine-learning/">https://www.geeksforgeeks.org/machine-learning/random-forest-algorithm-in-machine-learning/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b486d07d44cc" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/random-forest-explained-why-its-the-swiss-army-knife-of-machine-learning-b486d07d44cc">Random Forest Explained: Why It’s the Swiss Army Knife of Machine Learning</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[XGBoost models explained easily]]></title>
            <link>https://python.plainenglish.io/xgboost-models-explained-easily-610d5db92012?source=rss-384964074c80------2</link>
            <guid isPermaLink="false">https://medium.com/p/610d5db92012</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[xgboost]]></category>
            <dc:creator><![CDATA[Aamir Raja]]></dc:creator>
            <pubDate>Sat, 13 Sep 2025 19:37:16 GMT</pubDate>
            <atom:updated>2025-09-15T00:43:47.759Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Discussing what XGBoost models are and how they work.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7kMrlvv0MRtoSS5bMtRpeQ.png" /></figure><h4>What is XGBoost and Where Does It Come From?</h4><p>XGBoost is a type of machine learning model in data science that is derived from supervised learning models. This means that in order for your model to function in the way that you intended, it needs to be given data that is labelled. This could be in the form of a multitude of files ranging from CSV to Parquet. But the main idea is that the data inside of this file needs to be labelled.</p><p>Well, what is labelled data? I hear you asking. Labelled data is a dataset that is labelled well enough so that the models understand exactly what it’s being given to work with. Data scientists will usually also say what the model is being trained on or fed.</p><p>The reason the model needs to understand this is because, in order for it to be effective, it needs to be able to identify what exactly the relationship is between the inputs so that the model is correctly able to provide outputs. These outputs tend to revolve around some sort of prediction or classification issue, depending on what the data scientist is attempting to solve.</p><p>For example, they might be trying to predict how likely it is to rain within a specific time period. But how good their machine learning model’s predictions are can vary depending on a lot of factors — the quality of the dataset being one of the largest influencing factors.</p><p>In this article, we will be exploring how exactly XGBoost models work and how effective these models typically tend to be, to get a holistic understanding of the way they impact the world around us as we develop alongside data science and AI.</p><h4>XGBoost Seems Interesting — Can You Break It Down for Us?</h4><p>Sure. XGBoost stands for <strong>Extreme Gradient Boosting</strong>. This model was developed by Tianqi Chen, an Assistant Professor in the Machine Learning Department at Carnegie Mellon University, who is truly one of our greatest minds due to how this model works.</p><p>Extreme Gradient Boosting models rely on the use of many different models and take their strengths so that they are able to leverage speed, efficiency, and performance capabilities to the fullest extent. This is referred to as <strong>ensemble learning</strong>, due to its ability to bring together multiple machine learning models.</p><p>Firstly, the model relies on <strong>Decision Trees</strong>. This is a model which attempts to sequentially test its predictive capabilities by building itself in a sequential manner. This means that the model builds multiple smaller versions of itself, aka trees. The model learns from the mistakes of different trees and creates a complete model by using all of their insights. This process is known as <strong>boosting</strong>.</p><p>This means that the model will take the sum of all the predictions, which will then be used on the dataset that you feed into the model.</p><p>This model is prebuilt, and you can simply use it inside of Python by installing XGBoost and then importing it into your application.</p><h4>Does This Model Have Any Additional Features?</h4><p>Yes. This model has the ability to be fine-tuned in a way that makes its performance capabilities even more powerful than its default settings.</p><p>This is done through a process referred to as <strong>hyperparameter tuning</strong>. Now, this process might sound complicated, but it’s not as complex as it sounds — we’ll break it down.</p><p>Hyperparameter tuning is a process whereby an individual can fine-tune certain features of the model to enhance its predictive power and accuracy, depending on the issue they’re trying to solve.</p><p>To give a brief example, some of the hyperparameters that can be tuned are:</p><ul><li><strong>max_depth</strong> — This determines how many trees we want our model to grow and learn from. The more trees that are grown, the better the performance capabilities of the model are. But the trade-off is that the model usually will take much longer to run, depending on the performance capabilities of your PC, so bear this in mind.</li><li><strong>max_leaves</strong> — This determines the number of leaves that are attached to each tree. Each decision tree will have leaves attached to the end which display the outcomes of the tree. Sometimes models can be complex and the outcomes can’t be simply defined by a yes or no, so assigning more branches might allow the model to perform better by capturing more data insights and complexities. The trade-off here is that the model can become <strong>overfit</strong>.</li></ul><h4>What’s Overfitting?</h4><p>Overfitting a model is when the model fits the data too well. This means that the data has been analysed and every possible detail found inside the dataset is being used to make predictions or classifications.</p><p>The issue is that because it has taken in too many patterns, it has also captured irrelevant details in the data that it didn’t actually need. This means the model won’t perform as well as it otherwise would have if it only captured valuable insights and ignored irrelevant patterns.</p><p>When the model is actually deployed on unseen data, it’s likely to perform less well because it believes irrelevant patterns are important, and tries to use them to make predictions.</p><h4>How Is This Model Actually Used in Real Life?</h4><ul><li><strong>Fraud detection</strong> — Financial institutions and banks use XGBoost to detect fraudulent transactions and help deter criminal activities.</li><li><strong>Transport planning</strong> — Public transport authorities could use XGBoost to predict bus/train travel times, arrival times, and when demand for tickets will peak.</li><li><strong>Crime prediction</strong> — Law enforcement could use XGBoost to predict when criminal activity is most likely to happen, the types of crimes, and the factors influencing them.</li></ul><h4>Overall, What Do You Think About XGBoost?</h4><p>XGBoost’s uses are endless. If you have an issue that requires some kind of prediction — or you are attempting to classify two categories or even one hundred categories — XGBoost is a powerhouse when it comes to solving these issues.</p><p>It has been widely adopted since its implementation, alongside other widely used machine learning models such as logistic regression, linear regression, random forest, and k-means clustering. Given its countless applications in a variety of leading industries across the UK, I wouldn’t be surprised to see it staying in use for a long time.</p><h4><strong>Also!</strong></h4><p>If you enjoyed this article, please feel free to read my other articles where I regularly post about new data science topics and content to help inform you of the latest trends and foundational concepts.</p><p>Have a great week ahead! 👋</p><h3>A message from our Founder</h3><p><strong>Hey, </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>Sunil</strong></a><strong> here.</strong> I wanted to take a moment to thank you for reading until the end and for being a part of this community.</p><p>Did you know that our team run these publications as a volunteer effort to over 3.5m monthly readers? <strong>We don’t receive any funding, we do this to support the community. ❤️</strong></p><p>If you want to show some love, please take a moment to <strong>follow me on </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>LinkedIn</strong></a><strong>, </strong><a href="https://tiktok.com/@messyfounder"><strong>TikTok</strong></a>, <a href="https://instagram.com/sunilsandhu"><strong>Instagram</strong></a>. You can also subscribe to our <a href="https://newsletter.plainenglish.io/"><strong>weekly newsletter</strong></a>.</p><p>And before you go, don’t forget to <strong>clap</strong> and <strong>follow</strong> the writer️!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=610d5db92012" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/xgboost-models-explained-easily-610d5db92012">XGBoost models explained easily</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What you need to know about ETL pipelines]]></title>
            <link>https://python.plainenglish.io/what-you-need-to-know-about-etl-pipelines-65895d76fff9?source=rss-384964074c80------2</link>
            <guid isPermaLink="false">https://medium.com/p/65895d76fff9</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[etl]]></category>
            <category><![CDATA[etl-tool]]></category>
            <category><![CDATA[aws-glue]]></category>
            <dc:creator><![CDATA[Aamir Raja]]></dc:creator>
            <pubDate>Sun, 07 Sep 2025 16:34:13 GMT</pubDate>
            <atom:updated>2025-09-15T00:54:32.887Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Discussing ETL pipeline creation fundamentals.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pRPi5THf5k6t5dM8" /><figcaption>Photo by <a href="https://unsplash.com/@shotbywoliul?utm_source=medium&amp;utm_medium=referral">Woliul Hasan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>ETL stands for extract, transform and load. Data engineers refer to this as a pipeline because it’s like an automated system of pipes, as you decide exactly what needs to be put into the system and you organise a framework of pipes to determine exactly what you need to have coming out, and in what shape, form, time or location. I suppose it’s similar in a way to how plumbers decide how they want their pipes to operate, but through a data engineer’s perspective.</p><p>ETL pipeline creation forms an essential piece of the analytical data work performed by data engineers and data analysts, depending on the organisation and the role, of course. These pipelines form the foundation of data work for these roles, given the high amount of data they have to sift through, and automating these processes through the use of popular technologies such as AWS Glue makes life so much easier.</p><p>In this article, we will be discussing the importance of data pipelines and outlining some of the most effective ways that you can try creating some ETL pipelines of your own to support whatever kind of data work you may be interested in, as applying transformations is an essential part of data roles.</p><h4><strong>Can you please explain how an ETL pipeline works?</strong></h4><p><strong>Extract:</strong><br>Extracting the relevant data file that you have means that you are pulling raw data from its original source. This could be in the form of a table, a schema, or a metadata table, depending on what has been uploaded to your database which you’re able to extract data from. Different organisations have access to unique data tables and databases.</p><p><strong>Transform:</strong><br>Transforming is the second stage. This is the stage where you decide what you want to change in the data that you’ve selected. Let’s say that you have a table comprised of thousands of rows providing you with different flavours of ice cream. You might decide that some of the data information that has been provided to you really isn’t the information you’re looking for. So, you begin to drop certain columns, filter out certain values, and maybe even remove one or two flavours of ice cream that you’re not a big fan of or aren’t interested in.</p><p>These all change the nature of what is in the dataset itself. Usually, if you were to do this manually, you could write code which could perform the same task, but we’ll be looking at ways to make your life easier.</p><p><strong>Load:</strong><br>We’ve now come to the final stage, which is where the dataset itself has been twisted and moulded to provide you with the information that you wanted. Now you want the code, software, or data integration service that you’re using to give you back the final output. But usually, the main area this deals with is: where would you like to put it?</p><p>Deciding where you put this newly transformed data matters a lot. If we’re being honest, this really depends on what you’re doing, how big your data table is, and how often you plan to create new datasets using your newly created ETL pipeline.</p><p>Most organisations will usually at this stage load this information into their cloud service so that any of the relevant individuals in the organisation can access this newly sculpted data to design models, explore with data analysis, or create data visualisations from. The uses are infinite, and these ETL pipelines save time, energy, and resources.</p><p><strong>I’ve never made an ETL pipeline. So where can I start?<br></strong>AWS Glue is part of Amazon’s Web Services (AWS) and is easily accessible for most individuals. This makes creating ETL pipelines a breeze and takes the legwork out of the coding side. Coding the pipelines which may have transformed and loaded your data into a structure is now automated and is as simple as clicking a few buttons.</p><p>This is as simple as navigating around three central features: S3, which is Amazon’s cloud storage. Here you can make buckets, and within these buckets, you can create one for inputs and one for outputs.</p><p>What you’ll want to do is upload your dataset, which will usually be in the form of a CSV file, into the input bucket so that you’re able to begin using this as soon as possible.</p><p>The next step is to learn about crawlers. Crawlers aren’t anything to do with spiders; they’re an automated tool found inside AWS Glue which you can use to scan over your dataset, and this will extract all of the metadata from your input bucket, which has been stored within Amazon S3, and put this into a data catalogue.</p><p>A data catalogue is an area where data about your data will be stored in a format that is more easily accessible for use with Amazon Glue.</p><p>The final stage is running AWS Glue. Here you’ll need to start a job. You can get a visual overview of the entire ETL pipeline creation process and even see the Python code behind it. You’ll select where your code is within your data catalogue, select the transformation that you’d like to apply to your datasets, and then select where you’d like the information to be loaded into. The useful thing is that you can also decide what language you’d like your data transformation to be written in as well!</p><p>For the purposes of efficient storage, I would recommend storing your data back into Amazon S3, as this means that you’d be able to easily access it, and putting the data back into your output bucket would make it easy to find.</p><p>Additionally, within the loading feature, you can select the visual display of where the data will be loaded, and here you can easily determine if you’d like the data to come back to you in CSV format or in a range of other formats, including Avro and Parquet.</p><p>This should provide you with an overview of how each of the stages works within AWS Glue, and for the purposes of simplicity, I created a simple ETL pipeline visual which can be viewed down below, following the pattern outlined above:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/328/1*U0ACidZwIDQD7sEUVipB_w.png" /><figcaption>AWS Glue job visual overview</figcaption></figure><h4><strong>Summary:</strong></h4><p>Overall, ETL pipeline creation is a fundamental area of data analysis. It’s needed and created by a wide range of individuals, ranging from data analysts to data engineers. The way these individuals go about creating these ETL pipelines can vary greatly, but today we covered the fundamentals of AWS Glue to provide you with an overview of how it works and how it efficiently supports the ETL process.</p><h4><strong>Also!</strong></h4><p>If you enjoyed this article, please feel free to read my other articles, where I regularly post about new data science topics and content to help inform you of the latest data science trends and foundational topics.</p><p>Have a great week ahead! 👋</p><h3>A message from our Founder</h3><p><strong>Hey, </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>Sunil</strong></a><strong> here.</strong> I wanted to take a moment to thank you for reading until the end and for being a part of this community.</p><p>Did you know that our team run these publications as a volunteer effort to over 3.5m monthly readers? <strong>We don’t receive any funding, we do this to support the community. ❤️</strong></p><p>If you want to show some love, please take a moment to <strong>follow me on </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>LinkedIn</strong></a><strong>, </strong><a href="https://tiktok.com/@messyfounder"><strong>TikTok</strong></a>, <a href="https://instagram.com/sunilsandhu"><strong>Instagram</strong></a>. You can also subscribe to our <a href="https://newsletter.plainenglish.io/"><strong>weekly newsletter</strong></a>.</p><p>And before you go, don’t forget to <strong>clap</strong> and <strong>follow</strong> the writer️!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65895d76fff9" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/what-you-need-to-know-about-etl-pipelines-65895d76fff9">What you need to know about ETL pipelines</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linear Regression for Machine Learning Explained]]></title>
            <link>https://python.plainenglish.io/linear-regression-for-machine-learning-explained-6468052186a3?source=rss-384964074c80------2</link>
            <guid isPermaLink="false">https://medium.com/p/6468052186a3</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[linear-regression]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Aamir Raja]]></dc:creator>
            <pubDate>Sat, 22 Feb 2025 18:11:53 GMT</pubDate>
            <atom:updated>2025-09-15T00:36:09.180Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Discussing the inner workings of linear regression models</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ah1WobqIe_Je3DuR" /><figcaption>Photo by <a href="https://unsplash.com/@kikisad?utm_source=medium&amp;utm_medium=referral">Killian Cartignies</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Linear regression models are a fundamental topic in data science that falls into the category of machine learning. This type of machine-learning model is an incredibly fundamental model that is used very regularly through a variety of fields and has multiple applications, which can also be of a similar nature.</p><p>For example, the model can be used for either data prediction or data analysis, and given the breadth of these fields, we will be able to observe how incredibly useful and relevant this type of model can be to aid businesses with business insights or help forecast potential shortcoming or downturns of any industries.</p><p>Linear regression models generate huge amounts of value for a plethora of industries through the extraction of valuable insights that could save businesses millions of pounds, save businesses from the consequences of an economic recession, or help inform large-scale decision-making for heads of departments.</p><p>In this article, we shall be exploring the inner workings of linear regression models, how to create them, and provide you, as upcoming data scientists with the relevant knowledge you need to have a good understanding of how and why these models are important for all walks of life.</p><h4>What do I need to know about linear regression?</h4><p>Linear regression is a form of machine learning model that is used for the purposes of statistical analysis and data analysis and allows us to model the relationship between two variables, known as the independent and dependent variable. This can be shown mathematically and through the use of coding. However, it is essential to understand the mathematics behind such models before delving deeper.</p><p>Linear regression can be displayed mathematically with the following notations:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/288/1*3C71Wrq-XH8X1NoZk64KXg.png" /></figure><ul><li>Y is referred to as the dependent variable. This is what we’re trying to predict.</li><li>M represents the slope of the linear regression line in the model. Used to observe how much y will change when x changes by 1 unit.</li><li>B represents the intercept. This will show us what our starting prediction will be when x = 0.</li><li>X represents the independent variable. This is used to show how x impacts our prediction of y and their relationship.</li></ul><p>When we take the values above and put them together inside a model what we then have is the linear regression model. This is known as a simple linear regression model because it models the relationship between one dependent variable and one independent variable.</p><p>However, we can also have what’s known as a multiple linear regression model. This can be represented by the same mathematical notations, however, this is usually done when we are trying to examine and model the relationship between the dependent variable and multiple independent variables, as displayed below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/1*tkhlKVokbZFBmwR9QlAcJw.png" /></figure><p>Ultimately, when examining the dataset you will be able to determine if the most appropriate will either be a simple linear regression model or multiple linear regression model.</p><p>This is because multiple linear regression models are usually more appropriate when you are provided with a dataset that has many variables that seem important and relevant to helping predict what the dependent variable is, and what the relationship between the dependent variable and multiple independent variables is.</p><h4>What are some real-world applications of linear regression models?</h4><p>Linear regression models have many real-world applications. This is because any field that requires some degree of prediction and those fields can be within any of the fields listed below:</p><ul><li>Finance</li><li>Economics</li><li>Healthcare</li><li>Real estate</li><li>Sports analytics</li><li>Energy and environment</li></ul><p>A prime example of this could be Amazon attempting to predict what its future stock price is going to be. Therefore, the data analysts and data scientists at Amazon may attempt to use all the relevant available data and create a linear regression model to identify the relationships between different variables and stock prices.</p><p>Other factors included as independent variables could be variables such as seasonality, technological progress, brand image, and profits. This is because these factors may have some relationship with stock price and so it may be best to attempt to identify if a relationship is present and predict future stock prices based on these variables.</p><p>These types of models form the fundamental foundation for a whole variety of other algorithms because usually linear regressions or multiple linear regression models will be used to identify any relationships that are present between variables in the data and the further more complex machine learning algorithms will be deployed to extract deeper insights into the inner working of the dataset provided.</p><p>Being able to have ability to reflect on your findings for applying a simple linear regression or multiple linear regression will allow one to observe whether the increased complexity in the new models such as neural network models or logistic regression is justified in its efforts. Given that these models usually will attempt to build further upon the foundation of a linear regression model, with added complexity.</p><h4>Assumptions of the linear regression model:</h4><p>Linear regression models also appear to have assumptions being made about either the relationships between variables inside the dataset or the data itself.</p><p>These assumptions are:</p><ul><li>Linearity between the variables. This means assuming there is a proportional change in Y for every change in X.</li><li>Independence. This means that each piece of data should not be able to influence the others.</li><li>Homoscedasticity. This means the variance of prediction errors should remain constant across different values of X.</li><li>Normality. This would mean that the errors of the model should follow a normal distribution.</li></ul><p>Therefore, any one of these issues could be violated by either the dataset or the relationship that is present between the variables. Financial datasets very oftenly violate the assumptions of independence because variables such as stock prices are influenced by their past values.</p><p>Thus, the most appropriate machine learning model to deploy depends on the assumptions of the model not being violated before deployment through thorough analysis of the nature of the dataset a Data Scientist must choose the model they deem most suitable for the job.</p><h4>Foundational code for the creation of linear regression model:</h4><p>A primary example of the creation of a linear regression model, as it is being deployed on a CSV file that is publicly accessible, called salary.</p><pre># Required libraries<br>import pandas as pd<br>import numpy as np<br>import matplotlib.pyplot as plt<br>from sklearn.model_selection import train_test_split<br>from sklearn.linear_model import LinearRegression<br><br># Uploading data<br>df_sal = pd.read_csv(&#39;Salary_Data.csv&#39;)<br><br># Extracting independent (X) and dependent (y) variables<br>X = df_sal[[&#39;YearsExperience&#39;]]  <br>y = df_sal[&#39;Salary&#39;]  <br><br># Splitting dataset into training and testing sets<br>X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=0)<br><br># Initialising the linear regression model<br>regressor = LinearRegression()<br>regressor.fit(X_train, y_train)<br><br># Making predictions<br>y_pred_test = regressor.predict(X_test)<br><br># Visualisation creation<br>plt.scatter(X_test, y_test, color=&#39;blue&#39;, label=&#39;Actual Data&#39;)<br>plt.plot(X_test, y_pred_test, color=&#39;red&#39;, linewidth=2, label=&#39;Regression Line&#39;)<br>plt.title(&#39;Salary vs Experience&#39;)<br>plt.xlabel(&#39;Years of Experience&#39;)<br>plt.ylabel(&#39;Salary&#39;)<br>plt.legend()<br>plt.show()<br><br># Display regression model coefficients<br>print(f&#39;Intercept: {regressor.intercept_:.2f}&#39;)<br>print(f&#39;Coefficient: {regressor.coef_[0]:.2f}&#39;)</pre><h4>Summary:</h4><p>It is evident that linear regression models are a foundational machine learning model used throughout many domains of data science and data analytics, as these models can provide the foundation for more complex models and serve as a means of comparison. But, whether these models will be appropriate for use will depend on if the assumptions of the models are upheld or violated, as this will allow one to determine if this is the appropriate model to use to identify relationships between the variables and make predicts about the dependent variable, or not.</p><h3>Also!</h3><p>If you enjoyed this article, please feel free to read my other articles where I regularly post about new data science topics and content to help inform you of the latest data science trends and foundational topics.</p><p>Have a great week ahead! 👋</p><h3>A message from our Founder</h3><p><strong>Hey, </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>Sunil</strong></a><strong> here.</strong> I wanted to take a moment to thank you for reading until the end and for being a part of this community.</p><p>Did you know that our team run these publications as a volunteer effort to over 3.5m monthly readers? <strong>We don’t receive any funding, we do this to support the community. ❤️</strong></p><p>If you want to show some love, please take a moment to <strong>follow me on </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>LinkedIn</strong></a><strong>, </strong><a href="https://tiktok.com/@messyfounder"><strong>TikTok</strong></a>, <a href="https://instagram.com/sunilsandhu"><strong>Instagram</strong></a>. You can also subscribe to our <a href="https://newsletter.plainenglish.io/"><strong>weekly newsletter</strong></a>.</p><p>And before you go, don’t forget to <strong>clap</strong> and <strong>follow</strong> the writer️!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6468052186a3" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/linear-regression-for-machine-learning-explained-6468052186a3">Linear Regression for Machine Learning Explained</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machine Learning for Fraud Detection: Lessons and Insights]]></title>
            <link>https://pub.towardsai.net/machine-learning-for-fraud-detection-lessons-and-insights-b0cb36524e9e?source=rss-384964074c80------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0cb36524e9e</guid>
            <category><![CDATA[fraud-detection]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Aamir Raja]]></dc:creator>
            <pubDate>Sat, 15 Feb 2025 22:55:24 GMT</pubDate>
            <atom:updated>2025-09-28T11:59:57.460Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>Discussing my research on fraudulent transaction detection</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*G9CHpxzkv5empHlj" /><figcaption>Photo by <a href="https://unsplash.com/@bermixstudio?utm_source=medium&amp;utm_medium=referral">Bermix Studio</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>How common is fraud?</h4><p>Fraud is prevalent throughout society with common news articles showing up on the BBC such as “Victims lose £7m to romance fraud in one year” (Sinclair, 2025). Or, “Ghost broking: Young and vulnerable people targeted by insurance scam” (Pandey, 2022).</p><p>Fraud runs rampant throughout our society, yet it appears that it falls through the cracks of our financial fraud detection systems, commonly being detected one step too late.</p><p>The impacts of fraud can be disastrous for all of those who have had the unfortunate luck of dealing with fraudsters. Fraud can easily cost companies millions of pounds and can cause pensioners to lose all their savings which they have spent decades accumulating. This can be observed as the approximate cost of fraud alone is equivalent to £6.8 billion in the United Kingdom and Wales (Cleverly &amp; Tugendhat, 2024).</p><p>Statistics such as these made me interested in understanding what types of fraud take place within society and made me ponder what can be done to minimise it and or ideally negate it. Hence, I took it upon myself to try and research such issues further to investigate what the data science solutions would be to resolve such issues, as data is a powerful tool when used in the correct hands, so I wished to analyse fraudulent transaction-based data and observe how I could deploy my knowledge of machine learning to help combat a very prevalent real-world finance issue.</p><p>In this article, I shall be exploring and discussing the machine learning (ML) methods I deployed for fraudulent transaction detection the issues surrounding detecting fraudulent transactions when deploying machine learning models for such purposes, and any general insights I may have in relation to such topics to share my understanding of such topics.</p><h4>What are the different types of fraud?</h4><p>Fraud can be defined as “criminal deception intended to result in personal or financial gain”. I believe this definition encompasses the different types of fraud that we may be discussing throughout this article, which can take the form of:</p><ul><li>Insurance fraud.</li><li>Pension fraud.</li><li>E-commerce fraud.</li><li>Credit card fraud.</li><li>Mobile fraudulent transactions.</li><li>Romance fraud.</li></ul><p>Fraud is a vast domain for criminals to tap into for significant financial gain, and fraudulent behaviour may come from one individual who is running their operations, or a group of individuals working with one another to ensure that the scam runs as smoothly as possible to minimise the probability of detection and possible criminal charges being pressed against them.</p><p>Credit card fraud alone is a prominent cause of concern for the banking industry and global financial health. In the Single Euro Payment area, we can observe that credit card fraud amounted to 1.8 billion Euros in 2019 and the total loss from credit card fraud amounted to $21.84 billion, which was observed globally that year (Raghavan &amp; Gayar, 2019).</p><p>Credit card fraud is a transactional type of fraud that can also occur within seconds, as fraudsters are adapting to common fraud prevention strategies deployed by financial institutions, and although financial institutions are adapting their strategies to attempt to keep up with fraudsters sometimes this alone is not enough, as displayed by our statistics above.</p><p>Credit card fraud also has many forms and can fall into multiple domains such as:</p><ul><li>Account takeover.</li><li>Application fraud.</li><li>Lost or stolen credit card.</li><li>Non-received items fraud.</li></ul><h4>Why is it so difficult to simply stop these fraudsters?</h4><p>The primary challenge in fraud prevention is fraud detection; without it, fraud goes unnoticed and fraudsters will be able to steal the information or data they need to pull off their quick heist and reap the financial rewards from such lucrative pursuits.</p><p>Data scientists find it especially difficult to get access to significant quantities of sensitive, personal financial data to analyse and deploy the most efficient or effective machine learning (ML) fraud detection methods.</p><p>Financial data contains a lot of sensitive information, and using such data would be very helpful in creating machine learning models for credit card fraud detection. However, compliance rules must be maintained in a skilled manner. Also, areas such as GDPR, and data privacy must be respected, and consent must be provided for such information to be used for the training and development of machine learning models. These policies make fraudulent transaction detection a highly sensitive and restricted field, limiting data scientists’ access to crucial data and potentially limiting ML model deployment and development.</p><p>In addition, security concerns play a significant role in handling such sensitive information. This is because financial data may contain very personal data about individuals’ date of birth, income, address, marital status, mortgage payments, and more. Therefore, access remains extremely limited to maintain privacy and this is an area data scientists must respect and work around, but this is an area that does add an element of difficulty to such ML modelling tasks.</p><p>Furthermore, fraud detection datasets appear to be extremely imbalanced which adds to the tasks of data scientists. This dataset will usually contain a significant amount of non-fraudulent transactions and an infinitesimal proportion of fraudulent transactions, as they’re sprinkled throughout a dataset which can sometimes contain millions of transactions or more. Therefore, data scientists must utilise effective methods for balancing the data before they attempt to detect and minimise fraud.</p><h4>What is machine learning and how is it used for fraud detection?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QFP4n2UgFwvgXGwi" /><figcaption>Photo by <a href="https://unsplash.com/@jefflssantos?utm_source=medium&amp;utm_medium=referral">Jefferson Santos</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Machine learning revolves around exposing machines to human data, which over time will allow the machine to detect patterns, and learn the way that humans learn, adapt, and evolve their fraudulent behaviours all of which is usually done through the use of artificial intelligence (IBM, 2025).</p><p>Machine learning is a common tool used by data scientists across a variety of industries to resolve fraud detection and to aid with fraud prevention, and some of the ML models that typically tend to be used for such measures are:</p><ul><li>Logistic regression.</li><li>Random forest.</li><li>Artificial neural networks (ANNs).</li><li>K-means clustering.</li><li>XGBoost.</li><li>Support vector machines (SVMs).</li><li>K-nearest neighbours.</li><li>Convolutional neural networks (CNNs)</li></ul><p>Machine learning models can also fall into the categories of supervised and unsupervised learning models.</p><h4>Unsupervised learning</h4><p>Unsupervised machine learning models can identify patterns and structures within data without being provided with a focus variable, unlike supervised machine learning, which requires labelled data. These models do not need labelled data because the algorithms search for shared characteristics between instances or patterns within the data, proceeding to cluster and group them accordingly.</p><p>Unsupervised machine learning techniques are commonly used in fraud detection, product segmentation, image recognition, scientific discovery, and movie recommendations on streaming platforms like Netflix.</p><p>Some of the ML models that typically fall into this category are:</p><ul><li>K-means clustering</li><li>Principal component analysis (PCA)</li><li>Autoencoders</li></ul><h4>Supervised learning</h4><p>This type of machine learning is defined by the use of input and output variables. Within this, the model is trained using input data and output data, and it works through the use of labelled data, which is data that contains features(input) and targets (output). The models deployed attempt to understand the relationship between the input data that is labelled and the output data used to train.</p><p>This allows the model to provide predictions or classifications when given unseen instances.</p><p>ML models that fall into this category will typically be:</p><ul><li>XGBoost</li><li>Logistic regression</li><li>Random forest</li><li>Linear regression</li><li>Support vector machines (SVMs)</li><li>Decision trees</li></ul><p>Overall, models used for ML will be used for classification or regression challenges.</p><p>Fraud detection and prevention in nature would be considered to be a classification problem that is being attempted to be solved through the use of ML models. Therefore, it’s only appropriate we explain this below:</p><h4>Classification problem</h4><p>Classification problems will range around issues such as fraud detection because as a Data Scientist, you will be provided with significant amounts of data that haven’t been placed into any category and therefore require an ML model to do this for you. E.g. Fraudulent transaction data will have two types of data referred to as the majority class (legitimate transactions) and the minority class (fraudulent transactions). Hence, it will be the ML model’s job to predict the likelihood of a transaction being fraudulent based on trends and patterns shown to it.</p><h4>Results</h4><p>Although I ran tests on my dataset using XGBoost, random forest, logistic regression, and k-means clustering. The results displayed the XGBoost model as the most effective at fraud transaction detection.</p><p>One of the most effective models that were shown throughout the literature was XGBoost and through my findings, I was also able to replicate this with my original findings.</p><p>I then attempted to further optimise the model through the use of hyperparameter optimisation, which is a series of tweaks that an individual can make for each of their ML models to further improve their performance and accuracy when it comes to fraud detection.</p><h4>Conclusion:</h4><p>Overall, incentives for fraud have never been higher and so fraudsters will continue to innovate and adapt their fraudulent transaction to overcome typical fraud detection methods used by industries such as finance. However, finance industries simultaneously have been attempting to invest heavily in research and development to counter the attempts of fraudsters and detect fraud to protect their businesses and ensure the safety of their customers’ transactions.</p><p>ML models for fraudulent transaction detection appear to be improving with the significant improvements in artificial intelligence, hardware capabilities, and significantly greater supplies of highly skilled data scientists in the workplace to help thwart such fraudulent behaviour.</p><p>From my research and observations, XGBoost appears to be incredibly effective at detecting fraudulent transactions with the random forest model being a close contender in second place. Both models demonstrated strong performance due to their ability to optimise a wide range of hyperparameters, which we did. However, XGBoost was the most effective for such classification tasks, due to robust default hyperparameters and built-in boosting framework built into the model.</p><h4>Also!</h4><p>If you enjoyed this article, please feel free to read my other articles where I regularly post about new data science topics and content to help inform you of the latest data science trends and foundational topics.</p><p>Have a great week ahead! 👋</p><h4>References:</h4><p>Cleverly, J. and Tugendhat, T. (2024) <em>Major campaign to fight fraud launched</em>, <em>GOV.UK</em>. Available at: <a href="https://www.gov.uk/government/news/major-campaign-to-fight-fraud-launched#:~:text=The%20estimated%20cost%20of%20fraud,a%20decline%20now%20being%20observed.">https://www.gov.uk/government/news/major-campaign-to-fight-fraud-launched#:~:text=The%20estimated%20cost%20of%20fraud,a%20decline%20now%20being%20observed.</a> (Accessed: 15 February 2025).</p><p>IBM (2025) <em>What is machine learning (ML)?</em>, <em>IBM</em>. Available at: <a href="https://www.ibm.com/think/topics/machine-learning">https://www.ibm.com/think/topics/machine-learning</a> (Accessed: 15 February 2025).</p><p><strong>Raghavan, P. &amp; Gayar, N.E., 2019.</strong> Fraud detection using machine learning and deep learning. <em>2019 International Conference on Computational Intelligence and Knowledge Economy (ICCIKE)</em>, Dubai, United Arab Emirates, pp. 334–339. doi:10.1109/ICCIKE47802.2019.9004231.</p><p>Pandey, M. (2022) <em>Ghost broking: Young and vulnerable people targeted by insurance scam</em>, <em>BBC News</em>. Available at: <a href="https://www.bbc.com/news/newsbeat-61992772">https://www.bbc.com/news/newsbeat-61992772</a> (Accessed: 15 February 2025).</p><p>Sinclair, E. (2025) <em>Romance fraud: Victims in Surrey and Sussex lose £7M in one year</em>, <em>BBC News</em>. Available at: <a href="https://www.bbc.co.uk/news/articles/czrldx6zk8ko">https://www.bbc.co.uk/news/articles/czrldx6zk8ko</a> (Accessed: 15 February 2025).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0cb36524e9e" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/machine-learning-for-fraud-detection-lessons-and-insights-b0cb36524e9e">Machine Learning for Fraud Detection: Lessons and Insights</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>