Assignment 5 1d and 2f

Assignment 5 1d and 2f

by Alvin Han -
Number of replies: 3

2f states that the p value we should calculate is "greater than or equal to the value you get". I'm assuming that to answer 2f, we must utilize 1d, where we get the "probability of getting a sample less than or equal to that value". Otherwise the function created in 1d is left unused. 

I wanted to verify if the wording here is correct: that 2f should not be "...greater than the value you get..."; or alternatively, that 1d should not be written "...probability of getting a sample less than that value...." (ie. I'm wondering if both questions are supposed to include "or equal to") because if this were the case, answering 2f would be more complex than if it were not.

Thanks!

In reply to Alvin Han

Re: Assignment 5 1d and 2f

by Erik Spence -
Are you worried which value contains the "equal"? From a mathematical perspective the answers are the same regardless of whether it's 1d or 2f that contains the equal sign, at least in the limit of an infinitely small bin size.
In reply to Erik Spence

Re: Assignment 5 1d and 2f

by Alvin Han -
Ah I suppose if the bins were infinitely small it doesn't matter, but I thought that since our CDF isn't continuous, then the math in 2f isn't as simple as 1-calc.cumulative (assuming that is the correct way to approach 2f which I may be completely wrong!) as that would exclude the bin the value is in.

So hypothetically if we had 3 bins from 1-2, 2-3, 3-4 and we ran calc cumulative on a value 2.5, then we get the cumulative value from 1-3 and (1-calc.cumulative) yields the cumulative value from 3-4. However the question in 2f seems to ask for the cumulative value from 2-4.

Should I just not worry about it considering that the problem problem becomes irrelevant as we approach infinitely small bins?