Post Reply 
HP48GX Statistical Function
09-22-2018, 02:57 PM (This post was last modified: 09-22-2018 10:31 PM by Thomas Klemm.)
Post: #6
RE: HP48GX Statistical Function
(09-22-2018 12:57 PM)Albert Chan Wrote:  What is nice about this setup is 0% and 100% match A(0) and A(n) numbers.

That's a validd point. However keep in mind that the index starts at 1 and not at 0.

Here's a modified %TILE program that also works for 0 and 100 percent:
Code:
« SWAP SORT DUP SIZE 1 - ROT % 1 + → p
  « DUP p FLOOR GET SWAP p CEIL GET + 2 /
  »
»

Examples:

Taken from Quartile.

{ 6 7 15 36 39 40 41 42 43 47 49 }
  • Q1: 25.5
  • Q2: 40
  • Q3: 42.5

{ 7 15 36 39 40 41 }
  • Q1: 25.5
  • Q2: 37.5
  • Q3: 39.5

Cheers
Thomas
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 - Thomas Klemm - 09-22-2018 02:57 PM



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