BBS: Inland Empire Archive Date: 08-15-92 (04:48) Number: 173 From: MING ONG Refer#: NONE To: STEVE CRAVER Recvd: NO Subj: Re: Fomula Conf: (2) Quik_Bas
-=> Quoting Steve Craver to All <=-
SC> Does anyone know the correct formula for finding the MEDIAN of an
SC> array of numbers? Not the average, just the median. Thanks
SC> Steve
There is no mathematical formula for the Median. It is performed
mechanically as follows:
Given a "random" series of an odd set of numbers:
1, 5, 3, 10, 4
the median is:
1, 3, 4, 5, 10
^
or 4. It is the middle number of the sorted list.
Given a "random" series of an even set of numbers:
1, 5, 6, 4, 10, 9
the median is:
1, 4, 5 , 6, 9, 10
^
or 5 + (6-5)/2 = 5.5 It is the average of the center most number of the
sorted list plus the left most digit.
... A clean desk is a sign of a cluttered desk drawer.
Blue Wave/QWK v2.10
--- WM v2.04/91-0049
* Origin: Reservation Only! Las Vegas,Nv~702-898-8630~ (1:209/721)

Books at Amazon:
Back to BASIC: The History, Corruption, and Future of the Language
Hackers: Heroes of the Computer Revolution (including Tiny BASIC)
Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution
The Advent of the Algorithm: The Idea that Rules the World
Moths in the Machine: The Power and Perils of Programming
Mastering Visual Basic .NET