how to find median...............

Post any maths and/or physics related questions here.

Moderators: Darobat, RecursiveS, Dante Shamest, Bugdude, Wizard

how to find median...............

Postby santu » Tue Jun 23, 2009 11:09 pm

I need to find the median of n cartesian coordinates..........that is the points are in the order(x1,y1),(x2,y2),....(xn,yn).......
in this case how to find the median of these points............
plzz if anybody knows the procedure plzzzzzzzzzz help me................thnx in advance......................
santu
 
Posts: 9
Joined: Thu Jun 11, 2009 2:01 am

Re: how to find median...............

Postby Alvaro » Wed Jun 24, 2009 7:43 am

What's the order?
User avatar
Alvaro
Moderator
 
Posts: 5180
Joined: Mon Sep 22, 2003 4:57 pm
Location: NY, USA

Re: how to find median...............

Postby santu » Sat Jun 27, 2009 7:46 pm

the order is in increasing order for x and also for y...............................
santu
 
Posts: 9
Joined: Thu Jun 11, 2009 2:01 am

Re: how to find median...............

Postby Alvaro » Sat Jun 27, 2009 7:58 pm

santu wrote:the order is in increasing order for x and also for y...............................

That's not an order. Well, at least not a total order: What is larger, (0,1) or (1,0)?
User avatar
Alvaro
Moderator
 
Posts: 5180
Joined: Mon Sep 22, 2003 4:57 pm
Location: NY, USA

Re: how to find median...............

Postby santu » Sun Jun 28, 2009 6:40 am

ok sir then suppose the points are (1,5),(5,2),(8,4),(4,3).........what is the median value in this cae.......................
santu
 
Posts: 9
Joined: Thu Jun 11, 2009 2:01 am

Re: how to find median...............

Postby Alvaro » Sun Jun 28, 2009 6:43 am

santu wrote:ok sir then suppose the points are (1,5),(5,2),(8,4),(4,3).........what is the median value in this cae.......................

You don't get it. The median is a point that is greater or equal than at least 50% of the points and less or equal than at least 50% of the points. If you don't have an order, you can't define the median.
User avatar
Alvaro
Moderator
 
Posts: 5180
Joined: Mon Sep 22, 2003 4:57 pm
Location: NY, USA

Re: how to find median...............

Postby santu » Sun Jun 28, 2009 6:47 am

if we order the points increasing order of x and increasing order of y..then is it possible to get sir.????that means suppose i sort the x cordinates that is 1,4,5,8 and sort the y co -ordinates that is 2,3,4,5 nad since these here even no of points exist so the median is (4.5,3.5)..is this right............????????
santu
 
Posts: 9
Joined: Thu Jun 11, 2009 2:01 am

Re: how to find median...............

Postby Wizard » Sun Jun 28, 2009 8:26 am

no. You have two dimensions, but you have to be able to sort along one dimension to find the median.
You can find the median of the X coordinate, or you can find the median of the Y coordinate. If you want to find the median of both the X and Y, you need to have some function which will take the X and Y (two dimensions) and output a single number Z (one dimension). Then you can sort on that Z to find the median. The problem is what function it is you want to use. There are many different ways you can do it, and you haven't told us enough information to know which is the right one for you.
I am going to guess it's the length of the vector: ie, the distance from (0,0) to your (x,y). In that case, the function is
Z = sqrt(x*x + y*y);
I can't guarantee that that's what you need, but if this is an assignment, it probably is. Find the Z values for each of your coordinates, sort by that, and then find the median.

edit: wait, are you trying to find the median, or the mean? The median is the number in the middle, the mean is the average.
User avatar
Wizard
Site Admin
 
Posts: 3111
Joined: Mon Sep 22, 2003 4:52 pm
Location: ON, CA

Re: how to find median...............

Postby smithdwsn » Wed May 12, 2010 8:34 am

Median is a middle value. Its basic formula is,

Median = (n1+n2+...+n)/n

Examle: Find median: 1, 2, 4, 7
Solution:
(1 + 2 + 4 + 7) ÷ 4 = 14 ÷ 4 = 3.5

The answer is 3.5.
That is called Median.
smithdwsn
 
Posts: 4
Joined: Tue May 11, 2010 11:23 am

Re: how to find median...............

Postby Alvaro » Wed May 12, 2010 9:03 am

smithdwsn wrote:Median is a middle value. Its basic formula is,

Median = (n1+n2+...+n)/n

Examle: Find median: 1, 2, 4, 7
Solution:
(1 + 2 + 4 + 7) ÷ 4 = 14 ÷ 4 = 3.5

The answer is 3.5.
That is called Median.

If you don't know what you are talking about, there is no need to contribute to the thread. What you described is called "mean" or "average", not "median".
User avatar
Alvaro
Moderator
 
Posts: 5180
Joined: Mon Sep 22, 2003 4:57 pm
Location: NY, USA


Return to Maths & Physics

Who is online

Users browsing this forum: No registered users and 1 guest

cron