Saturday, 22 August 2020

Data Science & Machine Learning - 7.2 Seaborn Distribution Plots

Hi friends,

Welcome to this post on visualizing Distribution Plots under Data Science & Machine Learning. In the previous post, we discussed about the installation process of Seaborn library for Data Visualization. In this post, we'll learn about distribution plots supported by Seaborn that allows us to visualize the distribution of a dataset.

Note: All the commands discussed below are run in the Jupyter Notebook environment. See this post on Jupyter Notebook to know about it in detail. 

Seaborn Distribution Plots

So, let's first import the useful libraries. 


I have imported NumPy library as well to generate random data to fill our plots with. Now, let's start with creating various plots using Seaborn.
  1. distplot : It is used to visualize the distribution of a univariate (one variable) data points. In the example below, first we generated a random NumPy array and then plot a distribution plot of the same using the Seaborn's distplot() method:


    What it returns is basically a histogram of data points and the dark blue line is called the KDE (Kernel Density Estimation). We can remove the KDE from our plot by setting the kde parameter to false.

    The y-axis represents the count of the data points in the range represented by x-axis. We can also change the bins parameter to get a detailed/abstract view of the data points. Generally, larger the bins value more detailed the distribution plot and smaller the bins value less detailed the distribution plot.
Share:

11 comments:

  1. This is nice blog and thanks for share with us this kind of useful information related of this topic niche.hire python developers in US

    ReplyDelete
  2. Really very nice information. I liked it. Thanks for sharing this post. Keep sharing more posts.
    Data Science Course in Hyderabad

    ReplyDelete
  3. Thanks this article give more information on data science.
    For Online MBA check below.
    Innomatics Research Labs is collaborated with JAIN (Deemed-to-be University) and offering the Online MBA in Artificial Intelligence & Business Intelligence Program. It is a sublime program of getting an MBA degree from one of the best renowned university – JAIN University and an IBM certification program in Data Science, Artificial Intelligence, and Business Intelligence from Innomatics Research Labs in collaboration with Royal Society London.
    Online MBA in Data Science
    Online MBA in Business Analytics
    Online MBA in Business Intelligence

    ReplyDelete
  4. Thanks for sharing this blog with us. Nice article, Keep sharing more.
    Machine Learning Training in Hyderabad

    ReplyDelete
  5. Informative blog, keep it up for sharing more information with us.
    Data Science Online Course Training in Jordan

    ReplyDelete
  6. Thanks you and excellent and good to see the best software training courses for freshers and experience candidates to upgade the next level in an Software Industries Technologies,

    Machine Learning Training in Bangalore
    Machine Learning Course in Bangalore
    Machine Learning Training Bangalore
    Machine Learning Course Bangalore

    ReplyDelete
  7. Really good work there. Informative and helpful. Appreciate it. But might be looking for Odoo eCommerce Development in North Carolina

    ReplyDelete
  8. Thanks for sharing wonderful information ,it resolves my problem.
    Keep update , if you are looking to get the best Custom CRM Development Services, then conatct with JS Panther.

    ReplyDelete

Contact Me

Name

Email *

Message *

Popular Posts