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

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024

ความคิดเห็น • 53

  • @KimberlyFessel
    @KimberlyFessel  3 ปีที่แล้ว +4

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

  • @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!

  • @thepresistence5935
    @thepresistence5935 3 ปีที่แล้ว

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

  • @swarnendusekharghosh9539
    @swarnendusekharghosh9539 2 ปีที่แล้ว +1

    Thank you so much for such a clear and detailed video

  • @worldey-fp4dg
    @worldey-fp4dg 5 หลายเดือนก่อน +1

    God bless you proffesor

  • @cmacompilation4649
    @cmacompilation4649 2 ปีที่แล้ว

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

  • @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!

  • @lividpudding8565
    @lividpudding8565 4 ปีที่แล้ว

    Subscribed! Please keep going with such videos.

    • @KimberlyFessel
      @KimberlyFessel  4 ปีที่แล้ว

      Thanks for the support -- will do!

  • @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!

  • @tommymerelte4399
    @tommymerelte4399 2 ปีที่แล้ว

    Thank you, your video helps me alots

  • @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?

  • @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.

  • @zouhir2010
    @zouhir2010 3 ปีที่แล้ว

    thank you

  • @BillyT83
    @BillyT83 3 ปีที่แล้ว +4

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

    • @KimberlyFessel
      @KimberlyFessel  3 ปีที่แล้ว

      Glad you are enjoying my videos!

  • @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

  • @ahmetlacin5748
    @ahmetlacin5748 2 ปีที่แล้ว

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

  • @mohammedsaifuddin7040
    @mohammedsaifuddin7040 2 ปีที่แล้ว

    So cheerful explanation. Thank you, ma'am!

  • @abhinavkumar-iy3ev
    @abhinavkumar-iy3ev ปีที่แล้ว

    Great explanation mam 😄

  • @debatradas9268
    @debatradas9268 2 ปีที่แล้ว

    thank you so 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.

  • @t.t.cooperphd5389
    @t.t.cooperphd5389 3 ปีที่แล้ว

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

  • @son_of_aeolus2135
    @son_of_aeolus2135 3 ปีที่แล้ว

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

  • @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

  • @tawkirahmed2095
    @tawkirahmed2095 4 ปีที่แล้ว

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

  • @bilenjka1
    @bilenjka1 3 ปีที่แล้ว

    Thank you! Very good explanation

    • @KimberlyFessel
      @KimberlyFessel  3 ปีที่แล้ว

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

  • @КонстантинАхметханов
    @КонстантинАхметханов 3 ปีที่แล้ว

    It was awesome, thanks Kimberly

    • @KimberlyFessel
      @KimberlyFessel  3 ปีที่แล้ว

      Very glad to hear that - most welcome!

  • @gpt_haseeb
    @gpt_haseeb 3 ปีที่แล้ว

    Thanks