Quantile-Quantile Plots (QQ plots), Clearly Explained!!!

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 พ.ย. 2017
  • Quantile-Quantile (QQ) plots are used to determine if data can be approximated by a statistical distribution. For example, you might collect some data and wonder if it is normally distributed. A QQ plot will help you answer that question. You can also use QQ plots to compare to different datasets that you collected to determine if their distributions are comparable. This video shows you how to do both things.
    NOTE: The data in this video are measures of gene expression. If "gene expression" doesn't mean anything to you, just imagine that the data represents how tall a bunch of people are, or how much they weigh. Then consider the y-axis to be the height or weight of the people, and the x-axis just represents all of the data you collected on a single day. In this case, all of the data were collected on the same day, so they form a single column.
    For a complete index of all the StatQuest videos, check out:
    statquest.org/video-index/
    If you'd like to support StatQuest, please consider...
    Buying The StatQuest Illustrated Guide to Machine Learning!!!
    PDF - statquest.gumroad.com/l/wvtmc
    Paperback - www.amazon.com/dp/B09ZCKR4H6
    Kindle eBook - www.amazon.com/dp/B09ZG79HXC
    Patreon: / statquest
    ...or...
    TH-cam Membership: / @statquest
    ...a cool StatQuest t-shirt or sweatshirt:
    shop.spreadshirt.com/statques...
    ...buying one or two of my songs (or go large and get a whole album!)
    joshuastarmer.bandcamp.com/
    ...or just donating to StatQuest!
    www.paypal.me/statquest
    Lastly, if you want to keep up with me as I research and create new StatQuests, follow me on twitter:
    / joshuastarmer
    Corrections:
    4:35 The Uniform Distribution has one extra quantile
    5:30 I should have said that Quartiles divide the data into 4 parts.
    #statquest #quantile #qqplot

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

  • @statquest
    @statquest  2 ปีที่แล้ว +4

    Support StatQuest by buying my book The StatQuest Illustrated Guide to Machine Learning or a Study Guide or Merch!!! statquest.org/statquest-store/

  • @maindepth8830
    @maindepth8830 2 ปีที่แล้ว +54

    that intro alone, made me forget my hate for statistics and instantly fall in love with it

  • @timonveurink6335
    @timonveurink6335 4 ปีที่แล้ว +145

    Haven't seen the video yet, but that intro earned you a subscription

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

      It made me think that the whole video was going to be a song lol. Very interesting nonethless

    • @marioadiez
      @marioadiez 4 ปีที่แล้ว +2

      I'am not suscribed for the plots, but for the music!

    • @setsu2221
      @setsu2221 4 ปีที่แล้ว +1

      That intro hit me hard xD

  • @kittyxing
    @kittyxing 3 ปีที่แล้ว +71

    Thanks sooooooo much! This is the only video I found explained the details of generating QQ plot and also make the concept so clear and easy to understand!

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

      Thank you very much! :)

  • @robertopizziol7459
    @robertopizziol7459 4 ปีที่แล้ว +36

    I was waiting for the "BAAM" all video long, got just a couple of great "HOORAY!".
    Thank you for the awesome channel Josh!

    • @statquest
      @statquest  4 ปีที่แล้ว +10

      You made me laugh. :)

  • @aashishshrivastav9531
    @aashishshrivastav9531 6 ปีที่แล้ว +11

    🤔🤔🤔🤔🤔 well I thought that q-q plot was difficult but thanks to you I got it now. thanks and keep it up!!!

  • @alisalehi4980
    @alisalehi4980 6 ปีที่แล้ว +1

    I really appreciate from your very easy way explanation.
    I faced with so difficult and rough terminologies that I could not even understand the meaning of them.

  • @kevon217
    @kevon217 2 ปีที่แล้ว +4

    Couldn’t have asked for more clear explanation, thanks!

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

      Glad to help!

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

    Thanks for all the videos! Great music BTW. Also I'm looking forward to rockin' my new SQ hoodie!

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

      TRIPLE BAM! Thank you for your support!

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

    You had my like at the beginning with the jingle. Thanks for explaining this so well!!

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

      Glad you liked it!

  • @robertb-l5422
    @robertb-l5422 5 ปีที่แล้ว +3

    Very well explained, thanks so much

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

    Awesome video. Explained so clearly. Really helped me a lot!

  • @hebaebrahem7893
    @hebaebrahem7893 5 ปีที่แล้ว

    Your videos are cool and concise , thank you .

  • @user-ii5ch8nw6s
    @user-ii5ch8nw6s 6 ปีที่แล้ว

    It's so clear! Thanks a lot for your video.

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

    Triple BAMM! Serious man your channel is pure art. Thanks

  • @piotrszocik7775
    @piotrszocik7775 4 ปีที่แล้ว +1

    Great explanation, have a nice day :)

  • @dominicj7977
    @dominicj7977 5 ปีที่แล้ว +10

    Can you do a video on normality tests like shapiro wilk and anderson darling? If not anytime soon, can you share link to some good materials?

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

    Best intro song, it can be used as a 'mnemonic' for what QQ plots are used for =)

  • @tymothylim6550
    @tymothylim6550 4 ปีที่แล้ว +2

    Thank you for the video! It was short and easy to understand :)

  • @sirisudweeks9334
    @sirisudweeks9334 5 ปีที่แล้ว +1

    very nicely explained. it was a tricky concept until this video! thanks!

    • @statquest
      @statquest  5 ปีที่แล้ว

      Hooray! I'm glad the video helped. :)

  • @guillemvia6813
    @guillemvia6813 5 ปีที่แล้ว +1

    Awesomely explained! Good job!

    • @statquest
      @statquest  5 ปีที่แล้ว

      Thank you! :)

  • @padraiggluck5633
    @padraiggluck5633 4 ปีที่แล้ว +1

    Really excellent presentation, Josh. ⭐️

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

      Thank you! :)

  • @jorenmaes498
    @jorenmaes498 2 หลายเดือนก่อน +1

    I just noticed when you said "please subscribe" at the end of the video, the subscribe button lit up:)

    • @statquest
      @statquest  2 หลายเดือนก่อน

      bam! :)

  • @km2052
    @km2052 6 ปีที่แล้ว

    thanks , awesone , this is useful in measuring gene expression effect

  • @matavalamuttej841
    @matavalamuttej841 3 ปีที่แล้ว +2

    You made it very clear man !!! Great doing

    • @statquest
      @statquest  3 ปีที่แล้ว +1

      Glad to hear that!

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

    Your videos are awesome, thank you so much!

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

      Glad you like them!

  • @ThuyPham-yu7cw
    @ThuyPham-yu7cw 4 ปีที่แล้ว +4

    wow, now I can clearly understand it ! thanks alot !

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

      Hooray!!! :)

  • @ehsans2135
    @ehsans2135 3 ปีที่แล้ว +1

    so clear, so good , so nuce thank you , Josh

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

    phenomenal explanation and really cool intro music man!

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

    How helpful! Thanks a lot for your amazing videos

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

    Legendary explanation! Fantastic!

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

      Thank you!

  • @thechickendiet
    @thechickendiet 3 ปีที่แล้ว +1

    very clear with great examples!

  • @Shred427
    @Shred427 10 หลายเดือนก่อน +1

    such an awesome video, thanks!

    • @statquest
      @statquest  10 หลายเดือนก่อน

      Glad you liked it!

  • @12copablo
    @12copablo 3 ปีที่แล้ว +1

    Hoorray!
    Thx for the video :)

  • @jameswhitaker4357
    @jameswhitaker4357 10 หลายเดือนก่อน +1

    Not gonna lie, stats is my super weak spot. You've helped me a lot in my Data Models course and interpreting my results. +1

    • @statquest
      @statquest  10 หลายเดือนก่อน +1

      Happy to help!

    • @jameswhitaker4357
      @jameswhitaker4357 10 หลายเดือนก่อน +1

      @@statquest Thank you! I'm just kicking myself for not taking more stats courses at this point!

    • @statquest
      @statquest  10 หลายเดือนก่อน +1

      @@jameswhitaker4357 My stats courses were all pretty terrible, so you never really know what you're going to get. I had to teach myself statistics, and these videos are how I taught myself.

    • @jameswhitaker4357
      @jameswhitaker4357 10 หลายเดือนก่อน +1

      @@statquest That's what I'm going through right now! I've been using your videos and a "Intro to Statistical Learning with Applications in R" textbook which has helped a lot. I think when I saw terms like "heteroscedasticity" or the crazy formulas I would get scared and put off the studying, until I took a course that required knowing it LOL. And luckily most of these statistical tests and concepts are now pretty easy to perform in programming. Cheers!

    • @statquest
      @statquest  10 หลายเดือนก่อน +2

      @@jameswhitaker4357 I actually wrote a little about heteroscedasticity. Maybe I should record it.

  • @richardbarton9076
    @richardbarton9076 5 ปีที่แล้ว +1

    This was super helpful!

    • @statquest
      @statquest  5 ปีที่แล้ว

      Thank you! :)

  • @Shuffellove
    @Shuffellove 5 ปีที่แล้ว +2

    i love statquest!

  • @navatagames
    @navatagames 2 ปีที่แล้ว +3

    Nice video. Explained everything in just under 7 mins. Awesome.
    😄👍👍

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

      bam!

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

      @@statquest bam indeed. 😁

  • @urjaswitayadav3188
    @urjaswitayadav3188 6 ปีที่แล้ว +1

    Thanks for the great explanation as always! So QQ is just a way to plot and visualize the similarity of two distributions? Are there any other scenarios when these can be used? Thanks!!

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

      QQ is mostly used to check tail conditions. Density plots and cumulative plots are the best way to check distribution symmetry.

  • @heplaysguitar1090
    @heplaysguitar1090 3 ปีที่แล้ว +1

    Explained like a pro.
    Tripple BAM!!!

    • @statquest
      @statquest  3 ปีที่แล้ว +1

      Thank you! :)

  • @vineetkaur1667
    @vineetkaur1667 3 หลายเดือนก่อน +1

    Very well explained !

    • @statquest
      @statquest  3 หลายเดือนก่อน

      thank you!

  • @arneoosterlinck7590
    @arneoosterlinck7590 5 ปีที่แล้ว +1

    Great explanation, thanks!

    • @statquest
      @statquest  5 ปีที่แล้ว

      Thank you! :)

  • @aj_actuarial_ca
    @aj_actuarial_ca ปีที่แล้ว

    Thanks a lot for the wonderful explanation!

  • @joerich10
    @joerich10 6 ปีที่แล้ว +6

    is there a statistical test we can do to determine how far away the dots are allowed to deviate, rather than just eyeballing it? Or is eyeballing good enough? I.e. a stat test that could say 'the chance of these 2 distributions being the same is less than X%

    • @statquest
      @statquest  6 ปีที่แล้ว +5

      The "K-S Test" is what you want. However, it is very strict and tends to reject the null too easily. It's one of the few statistical tests where a large p-value (suggesting no difference) is more convincing than a small one. en.wikipedia.org/wiki/Kolmogorov%E2%80%93Smirnov_test

    • @kissapeles
      @kissapeles หลายเดือนก่อน

      @@statquest How were the lines drawn? Least Squares? Maybe doing R^2 calculations can provide an idea?
      Still trying to grasp my statistics a bit better :( :)

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

    It helps a lot. Thanks!

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

      Glad it helped!

  • @averkij
    @averkij 4 ปีที่แล้ว +1

    Thank you, Josh.

    • @statquest
      @statquest  4 ปีที่แล้ว +1

      Thanks! :)

  • @wanhope3660
    @wanhope3660 6 ปีที่แล้ว

    Sweet, its not that difficult to grasp anymore! Thanks

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

    This is very very cool, more likely to learn on TH-cam than in a classroom. Grazie

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

      Glad it was helpful!

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

    Thanks for this! Finally I understand

  • @user-id1rf6gt6h
    @user-id1rf6gt6h 4 ปีที่แล้ว +2

    Helped a lot! Thank you :D

  • @tallwaters9708
    @tallwaters9708 6 ปีที่แล้ว

    Thanks for the videos, if you're still looking for ideas how about k-l divergence?

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

    Awesome video - thank you SO much for saving my sanity.

  • @alecvan7143
    @alecvan7143 4 ปีที่แล้ว +1

    Best intro by far so far

    • @statquest
      @statquest  4 ปีที่แล้ว +1

      Hooray!!!! :)

  • @user-or7ji5hv8y
    @user-or7ji5hv8y 4 ปีที่แล้ว +2

    great video. a video on the intuition on why q-q plot works might be interesting.

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

      I'll keep that in mind.

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

    It's a party time with Josh Starmer and his quantiles! 😆🤘 Party on, Wayne!

  • @mikii2755
    @mikii2755 6 ปีที่แล้ว

    This video vas quite helpful

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

    And again, thank you for another amazing video ! A little question : most of the points have to fit in the straight line for the data to be considered as normally distributed and at 4:15 you said it is not the case. Althought the intersection points are really close to the line, it does not matter, most of the point have to be strictly ON the line, right ? The fact that other intersection points are close or far from the line does not give any relevant information ?

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

      I'm not sure I understand your question. For more details on how to interpret QQ-plots, see: stats.stackexchange.com/questions/101274/how-to-interpret-a-qq-plot

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

      @@statquest ok thank you !

  • @user-hv9wx5kd9u
    @user-hv9wx5kd9u 9 หลายเดือนก่อน +1

    Best Explanation ever!!! 🎉🎉🎉

    • @statquest
      @statquest  9 หลายเดือนก่อน

      Thanks!

  • @biancafeitoza4030
    @biancafeitoza4030 หลายเดือนก่อน +1

    Thank you for your help! Greetings from Brazil.

    • @statquest
      @statquest  หลายเดือนก่อน +1

      Muito obrigado! :)

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

    How beautiful and simple is that explaination 🥳

  • @praveenchalampalem4038
    @praveenchalampalem4038 4 ปีที่แล้ว +1

    You are really Awesome!!!

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

    Helpful and easy to undderstand.

  • @user-wx4vf5gj2f
    @user-wx4vf5gj2f 4 ปีที่แล้ว +2

    Thanks for saving my life

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

    You simply saved my life

  • @alexgimeno170
    @alexgimeno170 4 ปีที่แล้ว +1

    Understand it now - thank you!

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

    Thanks for this wonderful explanation! I'm curious if we can tell anything about the slope in a QQ plot? Does the slope always equal 1 when the data follows a certain distribution?

    • @statquest
      @statquest  3 ปีที่แล้ว +1

      As long as the x and y-axes are normalized to quantiles, then the slope should be 1 if the data follows a certain distribution. However, usually the x and y-axes are in the original units, and this means that the actual slope isn't super important. What is important is that the points form a straight line.

    • @maple49027
      @maple49027 3 ปีที่แล้ว +1

      @@statquest Thanks!!

  • @pankajverma3842
    @pankajverma3842 3 ปีที่แล้ว +1

    what a nice lecture!

  • @Atomflinga
    @Atomflinga 5 ปีที่แล้ว +1

    What's the approach for determining which distribution has the best fit for the data? Would the r-squared of the data against the straight line be a suitable measure for how well the distribution describes the data?

    • @statquest
      @statquest  5 ปีที่แล้ว

      This is a good question, and, to be honest, I'm not sure what the answer is. I like your idea, but it may oversimplify the problem. i.e. you could get a high R^squared value, but still have some real obvious problems if you looked at it visually.

  • @BossCock17
    @BossCock17 5 ปีที่แล้ว +3

    du hast zerfetzt bro, danke

    • @statquest
      @statquest  5 ปีที่แล้ว +1

      Bitte!!!

    • @81-jdowlwp
      @81-jdowlwp 5 ปีที่แล้ว +1

      @@statquest quick question to 2:04 in your video:
      if we have 15 data points and we divide the dataset into 15 quantiles, then shouldn't the smallest quantile be 0.06666 so around 0.07? because in your video you are saying that it is 0.7, which would mean, that 70% of all data is covered by just one datapoint. Thank you for your video :)

  • @snehasampath3486
    @snehasampath3486 ปีที่แล้ว

    Hello, the video was amazing and I was able to get an idea of QQ plots. I do have a question though. How do we draw the normal distribution and uniform distribution? Is it just random?

    • @statquest
      @statquest  ปีที่แล้ว

      The normal and uniform distributions are well defined by equations. So we just plug numbers into them to get the values out.

  • @asmaulhosnanisha4657
    @asmaulhosnanisha4657 3 ปีที่แล้ว +8

    I could have better grades if i had faculties like you...thank you Josh!!

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

    Thanks! It helps.

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

      Wow!!! Thank you very much for your support! BAM! :)

  • @cumaliturkmenoglu2240
    @cumaliturkmenoglu2240 6 ปีที่แล้ว +1

    really cool video

  • @joske7804
    @joske7804 6 ปีที่แล้ว +1

    great video

  • @robderon
    @robderon 3 ปีที่แล้ว +1

    precious help, thank you

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

    Interesting!

  • @FlopMeister71
    @FlopMeister71 6 ปีที่แล้ว +1

    Hi, I understand how the quantile points are plotted wrt observed vs theoretical distributions, what I don't understand is what determines the slope of the straight line. While this is fairly intutitive for a normal distribution, for say the Weibull distribution I am unclear how the slope of the striaght line is used to determine whether the observed vs theoretical quantiles are a good fit for a given distribution. Any ideas?

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

      I came here for the same question and left with no answer LOL

  • @alifia276
    @alifia276 3 ปีที่แล้ว +1

    Thank you! Awesome explanation

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

      Thank you! :)

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

      i have a doubt...why to use this method,instead just plot the points and see if it forms a bell curve....correct me

    • @statquest
      @statquest  3 ปีที่แล้ว +1

      @@bharathkumar5870 I'm not sure I understand your question. Are you asking, "why don't we just create a histogram with the data and see if the histogram looks like a normal distribution"? If so, histograms can be very tricky in terms of selecting the correct bin size. In contrast, with a q-q plot we don't have to worry about optimizing a bin size or anything else.

    • @bharathkumar5870
      @bharathkumar5870 3 ปีที่แล้ว +1

      @@statquest thank you sir ..u cleared my doubt. Different bins give different distributions😀

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

    Hi Josh, Amazing Video there :) Just want to understand the intuition behind the working of QQ plots ? Is it the fact that quantiles of every normal distribution are just scaled up values of a standard normal distribution and that is why we expect a straight line ?

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

      Pretty much

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

      @@statquest Thanks for the response ;) Would really appreciate if you could make something on the same or share some content that could explain the intuition behind QQ Plots.

  • @sumayyakamal8857
    @sumayyakamal8857 2 ปีที่แล้ว +3

    THANK YOU!!!!!!

  • @urjaswitayadav3188
    @urjaswitayadav3188 6 ปีที่แล้ว

    I have another question: does shape of a QQ plot also has some information? Like difference in the beginning or at the end, or overall shift of the values.

  • @user-bz8nm6eb6g
    @user-bz8nm6eb6g 2 ปีที่แล้ว +1

    Thank you!!!

  • @alexandergarcia-yo6kw
    @alexandergarcia-yo6kw 3 ปีที่แล้ว +1

    you are the best!

  • @simrangrewal9680
    @simrangrewal9680 4 ปีที่แล้ว +1

    You are great!

    • @statquest
      @statquest  4 ปีที่แล้ว +1

      Thanks! :)

  • @wildgorilla1205
    @wildgorilla1205 14 วันที่ผ่านมา +1

    Thanks man!

    • @statquest
      @statquest  14 วันที่ผ่านมา +1

      No problem!

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

    Could you do a video on Lorenz curves please

  • @Kundan5499
    @Kundan5499 6 ปีที่แล้ว

    can we change the color in qqplot , if we can then how

  • @nutellaturtle2931
    @nutellaturtle2931 5 ปีที่แล้ว +1

    How would you tell skewness from looking at the QQ plot? For example if some of the data points fell below the straight line (representative of a normal distribution) does that indicate positive/negative skew? Cheers :)

    • @nutellaturtle2931
      @nutellaturtle2931 5 ปีที่แล้ว +1

      Ah, is it correct to say that, roughly, if at the beginning the majority of points were consistently/mostly above the line since the beginning then you'd say the data is positively skewed, and conversely, if most points laid below the line since initially then the data is negatively skewed?

    • @statquest
      @statquest  5 ปีที่แล้ว +1

      Here's a link that explains how to interpret qq-plots: stats.stackexchange.com/questions/101274/how-to-interpret-a-qq-plot

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

    Best intro 🔥

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

    Sir I have been facing problem in ggplot2 package in R programming now a days
    Could you please help?

  • @wenweipeng7056
    @wenweipeng7056 5 ปีที่แล้ว +1

    Do I need to matter the exact size size or probability when dividing the contribution? Or just need to only make sure the sizes are equal?

    • @statquest
      @statquest  5 ปีที่แล้ว

      Just equal sizes.

  • @dioic13
    @dioic13 5 ปีที่แล้ว +1

    Nice lecture, but how do u identify boundary conditions, like - 1.5, for normal distribution?

    • @statquest
      @statquest  5 ปีที่แล้ว +2

      This is explained at the very start of the video at 0:38. We have 15 data points, so our data have 15 quantiles. We then divide the normal distribution into 15 quantiles. Each quantile should have an equal probability - thus, with the normal distribution, the quantiles on the edge are relatively far apart, to compensate for the relatively low probability of observing a value out there. In the middle of the curve, the quantiles are close together since there is a higher probability of observing a value there. Since each quantile has to have the same probability, then there is only one way to configure the 15 lines that we draw. If that last part doesn't make sense, then just imagine we only had one quantile - so we needed to divide the normal distribution into two equal parts. Where would we put the line? Well, there's no choice involved here because there is only one location for that line - right in the middle. Similarly, when we have to divide the normal distribution into 15 equal parts, there isn't a choice about where to put the lines, there is only one option.

  • @outerplanetexplorer1711
    @outerplanetexplorer1711 6 ปีที่แล้ว +1

    Little confused by the scales for the axis of a q-q plot (I think I'm overthinking the fitting of the straight line part)
    What if my sample contains values strictly between 100 - 200 (normally distributed) and I want to check this distribution against the normal distribution. My interpretation of the video is that a q-q plot should return values that fit perfectly on y = x.
    However because of the scale of my data, surely this isn't true. Rather is it that we can say that they will fit some line y = x + C(arbitrary constant)? Not even sure if I'm right about this haha...
    Is this the latter the correct interpretation? And in a hands on context we run a regression on a Q-Q plot to confirm this sort of thing?

    • @statquest
      @statquest  6 ปีที่แล้ว

      You are correct that the line will not always by y = x, but depends on the values for the different distributions. So y = ax + c is a more "general" line that the data should be on - the important thing is that they data are on a line, any line, if so, then you can use quantile normalization (or z-scale normalization, depending on the distribution) to compare the two samples.
      For example, I could compare two normal distributions with very different means, one with mean = 4 and the other with mean = 400 (here's the R code):
      data1

    • @outerplanetexplorer1711
      @outerplanetexplorer1711 5 ปีที่แล้ว

      Thank you! And as others have said, you're truly a phenomenal teacher!

  • @raghavgaur8901
    @raghavgaur8901 5 ปีที่แล้ว

    Hi Josh,I wanted to know that how did you choose the 4 data points from the original set by observing the another set of datpoints containing only 4 data points.

    • @statquest
      @statquest  5 ปีที่แล้ว

      Can you tell me what part of the video (time and seconds) you are talking about?

  • @txhays
    @txhays 4 ปีที่แล้ว +2

    Yessssss. Makes sense.

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

    What a great song :)

  • @cupcaketv5673
    @cupcaketv5673 6 หลายเดือนก่อน +1

    Tysm for this

    • @statquest
      @statquest  6 หลายเดือนก่อน +1

      You're welcome!

  • @gayathrikurada3315
    @gayathrikurada3315 3 ปีที่แล้ว +1

    Hi Josh, can we use percentiles in place of quantiles to plot QQ plot ? If so, in case of percentiles we can only have upto hundred percentile no matter how big our data is then how to have a definitive answer whether or not the 2 datasets have similar distributions as mention in the video at 6:30 ?

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

      The terms "quantiles" and "percentiles" are often used interchangeably, and in this case you can swap out quantiles for percentiles. And you can have as many percentiles as you want - however, the largest percentile is always 100. For example, you could have the 0.5 percentile, or the 1.23 percentile.

    • @gayathrikurada3315
      @gayathrikurada3315 3 ปีที่แล้ว +1

      @@statquest Thanks Josh.

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

    thanks for the explanation, can you clarify this please?: if we have 15 quantiles, then I thought you should plot 14 red lines in the normal distribution and the 15th line should reside in +infinite. and a little question: is the straight line generated by linear regression?

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

      Plotting a line at infinity would be hard to do and you can fit the line with regression.

  • @Dekike2
    @Dekike2 5 ปีที่แล้ว +6

    Hi!!! Great video!!!! It was very helpful to understand Q-Q Plots!!!! But just one question, how do you calculate the quantiles for your dataset?? I mean, the first observation of your dataset is 0.6, but I don't understand why, since the first observation leaves 0 observations on one of its sides. Should the quantile be 0? In the video where you explain how to calculate quantiles, you explained that the quantile for each observation is calculated dividing the number of observations that this value leaves below between the total number of observations... So, for the first point... 0/15 = 0. Why 0.6??

    • @statquest
      @statquest  5 ปีที่แล้ว +4

      I think I see the confusion here. The x and y-axes on the QQ-plot (on the right side) are labeled "Normal Quantiles" and "Data Quantiles". This is a little misleading - what we are plotting are the values at each quantile, not the quantile name itself. So if the first quantile is called "quantile 0", but it represents -1.5 in the normal distribution and 0.6 in the data, then we draw a dot at -1.5, 0.6 to represent the first quantile. Does that make sense?

    • @Dekike2
      @Dekike2 5 ปีที่แล้ว

      @@statquest Perfectly. I understood this after watching some more videos. I would suggest you to clarify this if you make a new version!! As I already told you, congratulations for your videos and of course, your quick reply!! You explain really well, and the videos are perfect (easy to follow and to understand). I'm doing my Ph.D and it is really helpful people like you. Thanks a lot.

    • @Fan-fb4tz
      @Fan-fb4tz 2 ปีที่แล้ว

      @@statquest Thank you very much for all your videos! They help me a lot. Just a follow-up question on this: how can we decide where to start as smallest quantile value in the theoretical distribution? Like you mentioned, "quantile 0" value in the sample distribution is 0.6, but how can it represent -1.5 in the normal distribution? My confusion is normal distribution doesn't technically have "quantile 0" value because it's infinity on the both tails.

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

      @@Fan-fb4tz On the left side the first quantile is defined for the first point of 15 data points, meaning that 1/15 of the data is equal to or less than that point. Thus, we find the corresponding point on the normal curve such that 1/15th of the area under the curve is to the left of it.

    • @yangyu5525
      @yangyu5525 6 หลายเดือนก่อน

      @@statquest strictly speaking, the 15 lines(15 data points) divide the whole data into 16 equal groups or parts,So corresponding to normal distribution should be divided into 16 bins so that every bin has the same probability of 1/16 ,right?