Post Reply 
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
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

What is nice about this setup is 0% and 100% match A(0) and A(n) numbers.

Edit: It seems above percentile definition is same as MS Excel
https://exceljet.net/excel-functions/exc...e-function
Find all posts by this user
Quote this message in a reply
Post Reply 


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 - Albert Chan - 09-22-2018 12:57 PM



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