3 hours later…
2:37 PM
2 hours later…
5:51 PM
The value does not add up to 1, as desirable for a PDF, so whenever I integrate from one point to another, I divide the result by the integral from 0.01 to 150
the PDF gives me the results: 0.0367 for the first section, 0.05912 for the second and 0.0371 for the third section
(Should be (10·x^07)/7 for the smallest portion, 10/(3·y^0.3) for the next and 10 / (13·y^1.3) for the last)
* Sorry, a correction, the PDF gives the results: 0.0367 for the first section, 0.5912 for the second and 0.371 for the third section
Or is the inverse CDF the inverse of the indefinite integral AND the correction to make it fit within the range [0,1]?
If it's the inverse of the definite integral... it's integrated from the cut point up to the value, from 0.0 up to the value, or from the cut point up to the value plus the complete minor sections from 0 to it's respective cut points??
I ended up with the value from the range 0..1, knowing to which section it belongs, and ready to be fed to the inverse of the CDF
But have no clue about what exactly is the inverse of the CDF. Maybe I should make each of the CDFs range from 0 to 1....
7:24 PM
@Toxyd well, if the PDF doesn't integrate to 1 then the relative probabilities of the piecewise PDFs might potentially be off
7:56 PM
I can either divide the input or the output. But the inverse... well, Should I multiply the input or output by 5 and that's it?
8:31 PM
Let's see... CDF for a high value is the integration of PDF1 from the low value to the first limit, the PDF2 from the first limit to the second and the PDF3 from the second limit up to X. The result, divided by the same sum of the three PDFs up to the maximum value instead of up to x, so the result is normalized
Something that could be summarized to look like this ( Abreviating PDFn(x1, x2) as Pn(x1, x2) in order to make it legible) :
8:54 PM
9:51 PM
You only really need to normalize to find the relative probabilities of your piecewise segments. So integrate all those PDFs into CDFs individually, then divide them all by the sum of the whole thing to get your relative probabilities.
Once you have those, you might as well forget about the normalisation factor and treat each of the CDFs as if it were the only one
if the PDF is in the form P(x)=a x^b for some range of x_min x_max, the integral will be in the form CDF(x)=a/(b+1) * x^(b+1) - C where C is just P(x_min)
next day → last day (17 days later) »
Transcript for
Jun '1612
Jun13
Starbuilding Cosmos II algorithm impl…
Where the one that asked worldbuilding.stackexchange.com/quest...