<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Madhuri Patil</title>
    <description>The latest articles on DEV Community by Madhuri Patil (@madhuripatil).</description>
    <link>https://dev.to/madhuripatil</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F672480%2Fdb3a2d05-4633-4c4e-a9db-b54a1998df25.jpg</url>
      <title>DEV Community: Madhuri Patil</title>
      <link>https://dev.to/madhuripatil</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/madhuripatil"/>
    <language>en</language>
    <item>
      <title>What is Machine Learning?</title>
      <dc:creator>Madhuri Patil</dc:creator>
      <pubDate>Wed, 05 Jun 2024 08:52:31 +0000</pubDate>
      <link>https://dev.to/madhuripatil/what-is-machine-learning-53cl</link>
      <guid>https://dev.to/madhuripatil/what-is-machine-learning-53cl</guid>
      <description>&lt;p&gt;Machine Learning (ML) is a subfield of artificial intelligence (AI) that focuses on developing algorithms and statistical models that enable computers to perform specific tasks without using explicit instructions. Instead, these models learn patterns from data and find relationship between the output variable and input variable, allowing the systems to make decisions or predictions based on new input data.&lt;/p&gt;

&lt;h3&gt;
  
  
  Key Concepts in Machine Learning:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Algorithms&lt;/strong&gt;: A mathematical function or formulas for solving a problem. In ML, algorithms are used to find patterns and realtionships in data and make predictions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Data&lt;/strong&gt;: The fuel for ML models. This includes structured data (like databases, spreadsheets) and unstructured data (like images and text).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Training&lt;/strong&gt;: The process of feeding data to an ML model function to help it learn the patterns and relationships in the data. The data used in this process is called the training set.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Model&lt;/strong&gt;: The output of the training process. A model is a mathematical representation of the patterns learned from the training data.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Features&lt;/strong&gt;: Individual measurable properties or characteristics of the data. Features are used as inputs to the model. They also known as variables, and attributes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Labels&lt;/strong&gt;: The output variable or result that the model is trying to predict. In supervised learning, the training data includes both the input features and the corresponding labels.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Types of Machine Learning:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Supervised Learning&lt;/strong&gt;: The model is trained on a labeled dataset, which means that each training example is paired with an output label. Common algorithms include linear regression, logistic regression, support vector machines, and neural networks.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Unsupervised Learning&lt;/strong&gt;: The model is trained on an unlabeled dataset, meaning that the system tries to learn patterns and structure from the data without any specific guidance on what to look for. Common algorithms include k-means clustering, hierarchical clustering, and principal component analysis (PCA).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Reinforcement Learning&lt;/strong&gt;: The model learns by interacting with an environment and receiving rewards or penalties based on its actions. This approach is often used in robotics, gaming, and navigation.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Semi-supervised Learning&lt;/strong&gt;: The model is trained on a dataset that includes both labeled and unlabeled data. This can be useful when acquiring a fully labeled dataset is difficult or expensive.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Applications of Machine Learning:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Natural Language Processing (NLP)&lt;/strong&gt;: Language translation, sentiment analysis, and chatbots.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Computer Vision&lt;/strong&gt;: Image recognition, facial recognition, and object detection.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Healthcare&lt;/strong&gt;: Disease prediction, personalized treatment plans, and medical image analysis.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Finance&lt;/strong&gt;: Fraud detection, algorithmic trading, and credit scoring.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Marketing&lt;/strong&gt;: Customer segmentation, recommendation systems, and targeted advertising.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Challenges in Machine Learning:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Data Quality&lt;/strong&gt;: The accuracy of the model heavily depends on the quality of the data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Overfitting&lt;/strong&gt;: When a model learns the training data too well, including its noise and outliers, and performs poorly on new data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Underfitting&lt;/strong&gt;: When a model is too simple to capture the underlying patterns in the data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Computational Resources&lt;/strong&gt;: Training complex models, especially deep learning models, requires significant computational power and time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ethics and Bias&lt;/strong&gt;: Ensuring that models are fair and unbiased, and that they respect privacy and ethical considerations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In summary, machine learning is a powerful tool that enables computers to learn from data and make decisions with minimal human intervention. It is a rapidly evolving field with applications across various industries and domains.&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>python</category>
      <category>datascience</category>
      <category>interview</category>
    </item>
    <item>
      <title>Histogram: Your first statistical Analysis</title>
      <dc:creator>Madhuri Patil</dc:creator>
      <pubDate>Mon, 03 Jun 2024 06:51:27 +0000</pubDate>
      <link>https://dev.to/madhuripatil/histogram-your-first-statistical-analysis-1af2</link>
      <guid>https://dev.to/madhuripatil/histogram-your-first-statistical-analysis-1af2</guid>
      <description>&lt;p&gt;The first step in any machine learning project is to analyze the data before building a model. This includes understanding of data, where we primarily use distribution visualization to perform some early analysis.&lt;/p&gt;

&lt;p&gt;This visual representation can reveal a lot about the underlying distribution, such as its normality, whether it is skewed, has a single peak or multiple peaks, and their central tendencies and potential outliers, which are crucial for understanding the underlying structure of the data.&lt;/p&gt;

&lt;p&gt;There are several methods that you can use to visualize distribution, and each has its own set of advantage and disadvantages.&lt;br&gt;
The most common method to visualizing a distribution is the histogram.&lt;/p&gt;

&lt;p&gt;In this article, let's study histogram and learn how to use them effectively to reveal valuable information from the data and their significance to avoid the common pitfalls such as inappropriate selection of bin sizes.&lt;/p&gt;
&lt;h2&gt;
  
  
  What is Histogram
&lt;/h2&gt;

&lt;p&gt;Histogram is a graphical representation of the distribution of numerical data. They divide the data into bins or intervals and display the frequency of occurrences within each bin using bars of varying heights.&lt;/p&gt;

&lt;p&gt;You must use data that is continuous in nature, as histograms are best suited for continuous data because they can effectively represent the distribution of data points within continuous intervals.&lt;/p&gt;

&lt;p&gt;Discrete numeric data, on the other hand, often contains a finite number of fixed values, which may result in a misleading representation if forced into a histogram.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq7b31reya1uhzbkxbw9k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq7b31reya1uhzbkxbw9k.png" alt="Distribution of continuous and discrete data using Histogram" width="800" height="272"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Above figure shows the histogram plots for both continuous and discrete data values.&lt;/p&gt;

&lt;p&gt;Histogram is a type of bar plot that represents the counts of number of data points that fall within a range of values, known as bins.&lt;/p&gt;

&lt;p&gt;The bins are typically of equal in width size which we can observe in both graphs, and there should be no gaps between the bars of the histogram like in plot for continuous data (left figure). However, there is huge gap can observe between the bars of histogram for discrete data (right figure).&lt;/p&gt;

&lt;p&gt;You can specify &lt;code&gt;discrete=True&lt;/code&gt; parameter if you are using seaborn for plotting, but it does not work all the time. So alternative visualizations like bar charts or frequency tables are typically more appropriate, as they accurately display the count or frequency of each unique value.&lt;/p&gt;
&lt;h2&gt;
  
  
  Histogram plot using Seaborn library of python for data visualization
&lt;/h2&gt;

&lt;p&gt;You can use &lt;em&gt;histplot&lt;/em&gt; method of seaborn library to plot histogram. It offers a range of functionalities to visualize data effectively.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# import seaborn library
&lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;seaborn&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;sns&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;matplotlib.pyplot&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;plt&lt;/span&gt;

&lt;span class="c1"&gt;# load dataset
&lt;/span&gt;&lt;span class="n"&gt;tips&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;sns&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;load_dataset&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;tips&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Univariate plotting of histogram
&lt;/span&gt;&lt;span class="n"&gt;sns&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;histplot&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tips&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;total_bill&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;bins&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;grid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ls&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;--&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;#000&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;alpha&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;0.3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;show&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcoopn88restvp05vytem.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcoopn88restvp05vytem.png" alt="Histogram Plot" width="800" height="417"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The above plot reveals the few insights about total bill of the customer's meal. For instance -&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;We can see that the distribution has single peak, with most common total bill is between $14–$16.&lt;/li&gt;
&lt;li&gt;Distribution appeared to have positive tail which indicates the right skewness with some potential outliers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can evaluate the normality of data further, by observing the mean and median values of the data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Selection of Bin Size
&lt;/h2&gt;

&lt;p&gt;The choice of the size of bins is very important, as wrong bin size can mislead the conclusion draw form the visualization.&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgdct4o2gr4pigb1rwfql.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgdct4o2gr4pigb1rwfql.png" alt="Histogram with different bin sizes" width="800" height="252"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Too small bin size can lead to a histogram with many bins (plot 1), each bins containing a small number of observations, which can result in an overly complex and noisy distribution.&lt;/p&gt;

&lt;p&gt;This granularity can distort the underlying trends and make it difficult to identify the true distribution pattern.&lt;/p&gt;

&lt;p&gt;On the other hand, choosing an overly large bin size for a histogram (plot 3) can significantly affect its ability to accurately represent the underlying data distribution.&lt;/p&gt;

&lt;p&gt;Large bins may lead to oversimplified distribution - as the multiple values are grouped in a single bin, the variations in the data points may lost, making it difficult to identify trends or anomalies.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fir4pbnslj5rbk4jg2wg2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fir4pbnslj5rbk4jg2wg2.png" alt="The figure 1 - shows the histogram with small number of bins, figure 2 - with appropriate number of bins and figure 3 large number of bins" width="800" height="251"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Conversely, a well-chosen bin size which is shown in second plot, can help in highlighting the true distribution of the data, allowing for better insights and decisions based on the visualized information.&lt;br&gt;
Sometimes it is more appropriate to use number of bins instead of their size.&lt;/p&gt;

&lt;p&gt;There are several methods to select the right size of the bins, each method has its advantages and is suitable for different types of data sets. You can learn about different methods for selection of the bin size here.&lt;/p&gt;

&lt;p&gt;Seaborn uses the default bin size, which is determined using a reference rule that depends on the sample size and variance. This works well in many cases, (i.e., with "well-behaved" data) but it fails in others.&lt;/p&gt;

&lt;p&gt;It is always a good to try different bin sizes to be sure that you are not missing something important.&lt;/p&gt;

&lt;p&gt;Seaborn offers various functionality to specify bins in several different ways, such as by setting the total number of bins to use, the width of each bin, or the specific locations where the bins should break.&lt;/p&gt;
&lt;h2&gt;
  
  
  hue
&lt;/h2&gt;

&lt;p&gt;After univariate analysis of a particular feature, you must analyze their distribution further across the different set of groups of the variable.&lt;/p&gt;

&lt;p&gt;For instance, here we must analyze the distribution of &lt;em&gt;total_bills&lt;/em&gt; across the different group of people such as male and female.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;sns&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;histplot&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tips&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;total_bill&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hue&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;sex&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;bins&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9jv6holl16h0yj4um8wg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9jv6holl16h0yj4um8wg.png" alt="Distribution of total bill across the group female and male" width="800" height="406"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  element
&lt;/h2&gt;

&lt;p&gt;In the above figure, it is little difficult to visualize the shape of the distributions for the groups as the histogram overlap by default on top of each other.&lt;/p&gt;

&lt;p&gt;You can use step function instead of bars by setting up element parameter.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;sns&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;histplot&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tips&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;total_bill&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hue&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;sex&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;bins&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;element&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;stop&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6cn71quw085ynau79lkd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6cn71quw085ynau79lkd.png" alt="total_bill" width="800" height="401"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  kde
&lt;/h2&gt;

&lt;p&gt;You can also visualize the smooth distribution of observations to understand the shape of the data, by producing continuous density estimate by setting &lt;em&gt;kde=True&lt;/em&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;sns&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;histplot&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tips&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;total_bill&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;kde&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;bins&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffw1f9i90o8h5dag3ycc4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffw1f9i90o8h5dag3ycc4.png" alt="Histogram with KDE" width="800" height="416"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As data changes, so does the shape of the histograms. There are various types of histograms, each with different meanings. Understanding the implications of a histogram's shape can guide further analysis and algorithm selection. This understanding is crucial in interpreting data correctly and making informed decisions based on statistical information.&lt;/p&gt;

&lt;p&gt;For instance, a normal distribution might suggest different data preprocessing steps or model assumptions than a bimodal distribution.&lt;/p&gt;

&lt;p&gt;Let's explore these types and learn how to transform them into normally distributed data in upcoming tutorials. For now, let's conclude this article.&lt;/p&gt;

&lt;p&gt;I hope this article helps you understand histograms using Seaborn. Don't forget to visit the Seaborn documentation to learn more details.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reference
&lt;/h2&gt;

&lt;p&gt;Seaborn offers many more functionality to effectively analyze data distribution. You can learn about them here in - &lt;a href="https://seaborn.pydata.org/generated/seaborn.histplot.html"&gt;seaborn histogram plot doc&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  🔗 Affiliate link
&lt;/h2&gt;

&lt;p&gt;If you're interested in learning machine learning and are searching for a course, you should consider checking out this &lt;a href="https://courses.dataschool.io/master-machine-learning-with-scikit-learn/rxysi"&gt;Master machine learning with scikit-learn&lt;/a&gt; offered by Kevin at Data School.&lt;/p&gt;

&lt;p&gt;This course is designed to provide comprehensive knowledge and practical skills in machine learning using the Scikit-Learn library.&lt;/p&gt;

</description>
      <category>histogram</category>
      <category>datascience</category>
      <category>python</category>
      <category>seaborn</category>
    </item>
  </channel>
</rss>
