-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check multiplicative scaling algorithm with potential option for bounding between 0 and 1 #39
Comments
In this example, when I scale I get px > 1, which should not be possible because px is a probability. It may be that we need to modify our multiplicative scaling algorithm such that scaled values cannot be outside [0,1] when specified. |
Do you have example data I can use to replicate the issue? |
@chacalle Here's an example dataset:
@erinamay FYI |
Oh you know what? That's actually my fault for not converting to px first. |
@krpaulson So this can be closed? |
No I think this is still an issue, just not with that example. At some point I'll transcribe the screenshot above so that we can test with it. |
Okay, here's a complete example:
Our multiplicative scaling is giving a valid solution, in that the results form the product we'd like. However, to get there, a scalar is being selected that results in qx and px values outside of the [0,1] bounds for probabilities. I've also included a toy example of scaling we've done for qx before which puts the values in conditional probability space. In this example, this means probability of death in age group [1,2) conditional on both survival to 1st birthday and death before 5th birthday, and separately probability of death in age group [2,5) conditional on both survival to 1st birthday and death before 5th birthday. These conditional probabilities should scale to 1. I think we should probably modify |
Cool thats a helpful example. We could maybe address this at the same time as generalizing |
The text was updated successfully, but these errors were encountered: