{statics} Kvartil (quartiles) why I didnt get right solution ?

  • Thread starter Thread starter artiny
  • Start date Start date
  • Tags Tags
    Statics
AI Thread Summary
The discussion revolves around calculating quartiles from a given vector in MATLAB. The user initially calculated the third quartile (Q3) as 11 and the first quartile (Q1) as 8, but later realized the need for interpolation to find accurate quartile values. By interpreting the vector's distribution, they determined that Q1 should be calculated using interpolation between the values 5 and 8, resulting in a Q1 value of 7.25. This highlights the importance of understanding quartile calculations and the role of interpolation in obtaining precise results. Accurate quartile determination is essential for statistical analysis.
artiny
Messages
6
Reaction score
0

Homework Statement



On this vector I didnt get the right answer:

x = [ 5 8 10 11 137 ] [/B]
q3: i = (p/100)*n = (75/100)*5 = 3.75 >> 4th in vector is 11
q1: i = (25/100)*5 = 1.25 >> 2nd is 8

in MATLAB is solution
Capture.PNG

Homework Equations

The Attempt at a Solution

 
Physics news on Phys.org
Never seen this concept before, but from a little reading at http://au.mathworks.com/help/stats/quantiles-and-percentiles.html it seems that the vector is interpreted as:
1/10 are <= 5
3/10 are <= 8,
5/10 are <= 10
etc.
For the first quartile, we want find how many are <= 0.25. This is done by interpolation between1/10 and 3/10. 0.25 is positioned (0.25-0.1)/(0.3-0.1) along that interval, so gets that share of (8-5):
5 + (8-5)*(0.25-0.1)/(0.3-0.1) = 7.25.
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...
Back
Top