HP48GX Statistical Function
09-22-2018, 12:57 PM (This post was last modified: 09-22-2018 05:13 PM by Albert Chan.)
Post: #5
 Albert Chan Senior Member Posts: 2,066 Joined: Jul 2018
RE: HP48GX Statistical Function
(09-22-2018 09:57 AM)Thomas Klemm Wrote:
{ 7 15 36 39 40 41 }
• Q1: 11
• Q2: 37.5
• Q3: 40.5
But this might not be exactly what you expect.

Yes, not what I expected (Q1, Q3 seems very extreme, to the edges)

My code do this differently, using percentiles.

let A be sorted data points, so A(0) be the smallest data point, A(n) largest
Interpolate for percentage of n: Q1 = 25%, Q2 = 50%, Q3 = 75%

Above example, n = 5:
Q1 = A(1.25) = 20.25
Q2 = A(2.50) = 37.50
Q3 = A(3.75) = 39.75

Edit: It seems above percentile definition is same as MS Excel
https://exceljet.net/excel-functions/exc...e-function
 « Next Oldest | Next Newest »

 Messages In This Thread HP48GX Statistical Function - thenewpotato - 09-21-2018, 11:12 PM RE: HP48GX Statistical Function - Jlouis - 09-22-2018, 02:56 AM RE: HP48GX Statistical Function - joeres - 09-22-2018, 03:45 AM RE: HP48GX Statistical Function - Thomas Klemm - 09-22-2018, 09:57 AM RE: HP48GX Statistical Function - Albert Chan - 09-22-2018 12:57 PM RE: HP48GX Statistical Function - Thomas Klemm - 09-22-2018, 02:57 PM

User(s) browsing this thread: 1 Guest(s)