Thread: quatierles problem

  1. #1
    Registered User
    Join Date
    May 2010

    quatierles problem


    For a exercise I need to print out the quartieles of a number of values.

    Lets say we have this 1,2,3,4,5,6,7,8,9.

    First quartiel can be found at : 9/4 is 2,25

    So the first quartiel is between the 1 and 2.
    Can I say that the first quartiel can be calculated by 2 + (2-1) * .25

    second quartiel can then be found at 9/2 = 4,5

    Thirst quartiel can be found at 9 *.75 so it's 6.75 .
    Can I say that it's 6+(7-6) * 0.75.

    Sorry for asking but maths for me is like 20 years ago.


  2. #2
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    The formula for locating the position of the observation at a given percentile, y, with n data points sorted in ascending order is:[2]

    L(y) = n * (y/100);
    I found this formula in wikipedia, i don't know if that's the one you need.
    Devoted my life to programming...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help understanding a problem
    By dnguyen1022 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2009, 04:21 PM
  2. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  3. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  4. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  5. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM