This algorithm assumes that the values are already sorted. Picking quantiles in a sorted stream of arrays is rather easy. Tricky quantiles algorithms are those that don't require sorting (they are actually faster than sorting).
@@shivtyagi8572 from the video description "This method can be used for all types of data sets but is most valuable when you have a large amount of data such as in stem-and-leaf plots. ", if you have any dataset you first have to generate the stem and leave diagram which costs much more time than the quantiles algorithm (O(n log n) vs O(n)).
Thank you, I was using this blindly with the thought that if it's even I shouldn't add a 1 when using either the 1/4*n or 3/4*n. I was getting the wrong answer and got me confused. Makes me wonder when should I not add the 1
Here is an even easier way: If the number of data points is even add 1 and multiply by 1/2 for mean, but if you are trying to find Q1 or Q3, add 2 to the even number of total data and multiply by 1/4(for Q1) or 3/4(for Q3). But if the number of total data are odd, then add 1 for median and quartiles
@@jasperley3256 If the number is even then after N+1 you will end up with an odd number. Half an odd number = X.5 th value, This just means that you need to average the number on either side of the the .5 So if 1/2(10+1) = 5.5th number. You need to average the 5th and 6th value. He explains this at minute 5:35 in his video.
+Mr Pantsu some books say to use 1/4(n+1) to find Q1 but that won't give you an accurate answer. It's best to find Q2 first which will split the data in half and then use 1/2(n+1) on each half of the data to find Q1 and Q3.
Thank you so much🎉. More blessings to you.
OMG THANK YOU SOOOOOOOOOO MUCH!! Learnt it like *click* thanks sooo much 🙏
I'm from EGYPT and I understand
very well❤
This algorithm assumes that the values are already sorted. Picking quantiles in a sorted stream of arrays is rather easy. Tricky quantiles algorithms are those that don't require sorting (they are actually faster than sorting).
all stem and leaf diagrams must be sorted... what are you on about
@@shivtyagi8572 from the video description "This method can be used for all types of data sets but is most valuable when you have a large amount of data such as in stem-and-leaf plots. ", if you have any dataset you first have to generate the stem and leave diagram which costs much more time than the quantiles algorithm (O(n log n) vs O(n)).
thanks a lot..God bless
Thank you so much you made this so much easier !
Thank you so much!! This is a lifesaver for me
Thank you, I was using this blindly with the thought that if it's even I shouldn't add a 1 when using either the 1/4*n or 3/4*n. I was getting the wrong answer and got me confused. Makes me wonder when should I not add the 1
what if you don't get a whole number?
Bro just came, dropped 3 immensely useful video, and DIPPED.
What if your median was 2 numbers and you had to add and divide them leaving you with a decimal ?
8:00
Thanks, that is very helpful.
Here is an even easier way:
If the number of data points is even add 1 and multiply by 1/2 for mean, but if you are trying to find Q1 or Q3, add 2 to the even number of total data and multiply by 1/4(for Q1) or 3/4(for Q3). But if the number of total data are odd, then add 1 for median and quartiles
Thank youu so much,its help me doing my group assignment
Can this method use to median , Q1 and Q2 for group data(like in table form)?
Does this work for third quartile
AYE YO THANK YOU SO MUCH BROTHER!!!!!
What if the number of data values is an odd???
I mean an even data of values
@@jasperley3256 If the number is even then after N+1 you will end up with an odd number. Half an odd number = X.5 th value, This just means that you need to average the number on either side of the the .5
So if 1/2(10+1) = 5.5th number. You need to average the 5th and 6th value.
He explains this at minute 5:35 in his video.
this is flipping insane wtfff thank youu
Thanks a lot, sir.
What if its a decimal?
Then you round to the nearest whole number.
you magic creature you're majestic
your a life saver
thanks 😊
Great video, thank u
+Temilade Soyoye Most welcome
what is the difference between 1/4(n+1) and 1/2(n+1)?
+Mr Pantsu some books say to use 1/4(n+1) to find Q1 but that won't give you an accurate answer. It's best to find Q2 first which will split the data in half and then use 1/2(n+1) on each half of the data to find Q1 and Q3.
Ahhhh ok! Thanks a lot!!
you explained it well but I have a question , if zero is there do you count that
Yes😊
Thanks good man!
thanks you this helps so much
Abhishek righttttt
is calling q2 the inter-quartile correct?
tq bro
Thank You
You're the best
thanks cuz
you're amazing man! appreciate it
thank you :)
Thank you very muchhh
k thx
Saya dr unikop
I DONT GET IT I DONT GET IT WHAT THE FECK
STOP YAPPING
**th**
Thank you so much for this video, the formula is very helpful and come in handy.