Results 1 to 4 of 4

Math Help - Calculate p-value for function

  1. #1
    Junior Member
    Joined
    Oct 2007
    From
    Bath, UK
    Posts
    25

    Calculate p-value for function

    I have some data which I theorise to be uniformly distibuted in the set:
    {-10,-9,...,-2,-1,1,2,...,9,10}

    i.e. a 5% chance of choosing any of the non-zero integers in [-10,10]. If I have a given, know, set of observations from this random variable, let's say I have:

    {1, 5, -6, -3, 7, 2, 3, 3, -6, -10, -2, -5, -7, 1, 9, 10, 8}

    And I am given that each observation is independent, how do I calculate the p-value that the given set of data was observed from the given distribution?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by bumcheekcity View Post
    I have some data which I theorise to be uniformly distibuted in the set:
    {-10,-9,...,-2,-1,1,2,...,9,10}

    i.e. a 5% chance of choosing any of the non-zero integers in [-10,10]. If I have a given, know, set of observations from this random variable, let's say I have:

    {1, 5, -6, -3, 7, 2, 3, 3, -6, -10, -2, -5, -7, 1, 9, 10, 8}

    And I am given that each observation is independent, how do I calculate the p-value that the given set of data was observed from the given distribution?
    If you had a larger sample then a \chi^2 test on the frequency of each symbol in your sample would be appropriate. But you have a very small sample here.

    In this case you need to frame a question, something like what is the probability that in a sample of this size the highest frequency symbol occurs 2 or fewer times.

    CB
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Junior Member
    Joined
    Oct 2007
    From
    Bath, UK
    Posts
    25
    Quote Originally Posted by CaptainBlack View Post
    If you had a larger sample then a \chi^2 test on the frequency of each symbol in your sample would be appropriate. But you have a very small sample here.

    In this case you need to frame a question, something like what is the probability that in a sample of this size the highest frequency symbol occurs 2 or fewer times.

    CB
    This isn't a problem on a question sheet, it's a real-world problem, so I could continue to gather an arbitrarily large amount of data. How much data would I need to gather?

    I read on Wikipedia about Perason's test, which seems to be suitable. I recall doing this 6 months ago and can dig out my notes if this would be appropriate.
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by bumcheekcity View Post
    This isn't a problem on a question sheet, it's a real-world problem, so I could continue to gather an arbitrarily large amount of data. How much data would I need to gather?

    I read on Wikipedia about Perason's test, which seems to be suitable. I recall doing this 6 months ago and can dig out my notes if this would be appropriate.
    Something like 500 would probably be OK (the idea is to get most if not all the observed frequencies over 5).

    (Pearson's test is the \chi^2 test)

    CB
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 2
    Last Post: September 2nd 2010, 11:52 AM
  2. For the function (x) = x^3 - 8x + 3, calculate
    Posted in the Calculus Forum
    Replies: 3
    Last Post: August 3rd 2010, 02:59 PM
  3. calculate smallest and highest value of the function
    Posted in the Pre-Calculus Forum
    Replies: 3
    Last Post: June 29th 2010, 06:53 AM
  4. Replies: 4
    Last Post: April 1st 2010, 04:20 AM
  5. calculate mean given density function
    Posted in the Advanced Statistics Forum
    Replies: 7
    Last Post: February 13th 2010, 07:45 PM

Search Tags


/mathhelpforum @mathhelpforum