What is a violin plot and how to make a Seaborn violinplot in Python

Поділитися
Вставка
  • Опубліковано 29 вер 2024

КОМЕНТАРІ • 53

  • @KimberlyFessel
    @KimberlyFessel  3 роки тому +4

    If you enjoyed 😄, please subscribe and check out my full "Introduction to Seaborn" playlist: ua-cam.com/play/PLtPIclEQf-3cG31dxSMZ8KTcDG7zYng1j.html

  • @worldey-fp4dg
    @worldey-fp4dg 5 місяців тому +1

    God bless you proffesor

  • @thepresistence5935
    @thepresistence5935 3 роки тому

    Feeling honored coz we are getting knowledge from ph.D professionalist. Thank you so much, dude!

  • @lividpudding8565
    @lividpudding8565 4 роки тому

    Subscribed! Please keep going with such videos.

  • @skillbits5941
    @skillbits5941 4 роки тому +1

    Great visualisation, it helps to understand :) I have also just started tutorials but on ML in Python, yours are already very professional, looking forward what's next.

    • @KimberlyFessel
      @KimberlyFessel  4 роки тому

      Thank you -- glad the visuals were helpful!

  • @tommymerelte4399
    @tommymerelte4399 2 роки тому

    Thank you, your video helps me alots

  • @nadagh3235
    @nadagh3235 Рік тому

    Thanks for this video. I am confused about how to read the violin plot. Are there some cases where boxplots are better than Violinplots?

  • @zhenliu9622
    @zhenliu9622 3 роки тому

    Hi Kimberly, this is really interesting and clear comparison between box and violin plots. I got a question about the whiskers of violin plots. Does it also show the minimum and maximum of the samples excluding the outliers as the box plot did? Another question is the upper and lower bound values of the violin plots, do they represent the minimum and maximum values of the samples in including the outliers? Thanks

    • @KimberlyFessel
      @KimberlyFessel  3 роки тому +1

      Great questions! The inner "whiskers" of the violin plot are the same ones that you will see for the boxplot (min/max excluding outliers) by default. You can change what's displayed in the center of your violin plot, however, by referencing its "inner" argument. The violin plot typically extends beyond what you see for a box plot though because its borders are KDE plots. The KDE plot is built by adding up little kernels (typically a small Gaussian centered about each point) for your data. Even points farthest away from the center get their own kernels (Gaussians centered at the point), which makes the violin boundaries extend even further than the maximum or minimum values.

    • @zhenliu9622
      @zhenliu9622 3 роки тому +1

      @@KimberlyFessel Thanks, Kimberly, excellent explanation!

  • @zouhir2010
    @zouhir2010 3 роки тому

    thank you

  • @BillyT83
    @BillyT83 3 роки тому +4

    I really enjoy your videos, informational and to the point explanations!

  • @emanabdelhaleem7561
    @emanabdelhaleem7561 6 місяців тому

    Thank you
    also, you look the cutest with your hair like this

  • @amrjad5956
    @amrjad5956 11 місяців тому

    This channel is so underrated. you are worth of at least 2 million subscribers to be honest. Keep up the good work

  • @swarnendusekharghosh9539
    @swarnendusekharghosh9539 2 роки тому +1

    Thank you so much for such a clear and detailed video

  • @jessicad.234
    @jessicad.234 Рік тому

    Just learned it at college today, didn't figure it out in class, but here it helps a lot. Thank you!

  • @cmacompilation4649
    @cmacompilation4649 2 роки тому

    You look like a scientific version of Ema Watson 😅 love your videos Professor ❤️

  • @mohammedsaifuddin7040
    @mohammedsaifuddin7040 2 роки тому

    So cheerful explanation. Thank you, ma'am!

  • @ahmetlacin5748
    @ahmetlacin5748 2 роки тому

    awesome.. such a clear explanation. thank you soooooooooo much!

  • @Himanshu-ed3mf
    @Himanshu-ed3mf 3 роки тому

    I see, left and right whiskers in violin plot are not of same length. but in box plot, they are of same length. how?

    • @KimberlyFessel
      @KimberlyFessel  3 роки тому

      Typically, the whiskers in both the violin plot and the box plot will mark the 25% to 75% percentiles; note that the violin plot whiskers are marked in black and are usually inside the violin. The violin plot will often extend beyond the whiskers because it shows the entire KDE and does not truncate or show outliers like the box plot does. The left vs right whisker should show the same thing in the violin plot and the box plot, but again, the violin plot whiskers are marked by the black line inside the violin.

  • @abhinavkumar-iy3ev
    @abhinavkumar-iy3ev Рік тому

    Great explanation mam 😄

  • @t.t.cooperphd5389
    @t.t.cooperphd5389 3 роки тому

    Thank you Dr. Fessel :) My proteomics figures are going to be fire now!

  • @gauthamambethkar4483
    @gauthamambethkar4483 3 роки тому

    Hi kimberly, Thanks for this wonderful tutorial. At 7:36, when you say " violin plot is actually doing is first splitting our data into four and six cylinders and then scaling by count", I do not fully understand what is happening here. It would be helpful if someone explains this.

    • @KimberlyFessel
      @KimberlyFessel  3 роки тому +2

      Glad you are enjoying the tutorials! What I meant by that is that seaborn first groups by cylinder then scales the widths of the violin by the proportion of each origin. In this example, there were 130 4-cylinder cars roughly 50% from each origin, so the width of the two components (blue and orange) are roughly the same. There were only 10 6-cylinder cars: 60% from Japan and 40% from Europe, so for the second violin, the blue side is wider, occupying 60% of the total width. Right after this part though, I say this is a bit misleading because the width didn't tell us that there were 130 4-cylinder cars vs only 10 6-cylinder cars because both violins were normalized to the same total width. Setting scale_hue=False allows us to scale over all the counts in all segments, making the second violin (with only 10 observations) much narrower.

    • @thepresistence5935
      @thepresistence5935 3 роки тому

      bro tamil la

  • @debatradas9268
    @debatradas9268 2 роки тому

    thank you so much

  • @son_of_aeolus2135
    @son_of_aeolus2135 3 роки тому

    Good it's helps us to learn easily..,...thanks for the vedieos

  • @mayureshjoshi4616
    @mayureshjoshi4616 4 роки тому

    please make more videos , with different visual libraries !

    • @KimberlyFessel
      @KimberlyFessel  4 роки тому +2

      Thanks much! I'm currently working on some matplotlib content. Also considering Plotly and Altair.

  • @tawkirahmed2095
    @tawkirahmed2095 4 роки тому

    It wil be better if u use CSV file data to show those graph.

  • @aswanthj7382
    @aswanthj7382 3 роки тому

    good video
    good explanation
    please create more videos :)

    • @KimberlyFessel
      @KimberlyFessel  3 роки тому +1

      Thanks very much, and I will definitely create more videos! Any requests?

  • @bilenjka1
    @bilenjka1 3 роки тому

    Thank you! Very good explanation

    • @KimberlyFessel
      @KimberlyFessel  3 роки тому

      You're very welcome! Glad you found my explanation useful. 😄

  • @КонстантинАхметханов

    It was awesome, thanks Kimberly

  • @gpt_haseeb
    @gpt_haseeb 3 роки тому

    Thanks