Skip to content
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

rounding the predicted mean up to the order of the most significative digit of the variance #102

Closed
pasq-cat opened this issue Jul 16, 2024 · 9 comments

Comments

@pasq-cat
Copy link
Contributor

pasq-cat commented Jul 16, 2024

as mentioned in msteams, i think we could round the variance to the first 1or 2 significative digits. we can introduce this change either in the .predict() function or directly in glm_predictive_distribution.

@pat-alt
Copy link
Member

pat-alt commented Jul 17, 2024

I'm not sure about this one: I think I would still return the value at the precision that we've computed it but print a rounded value in the console. As I understand it, you're mostly bothered by this from a user perspective? I don't see why mathematically a more precise value what be less correct as I believe you suggested on msteams?

@pasq-cat
Copy link
Contributor Author

pasq-cat commented Jul 17, 2024

https://web.ics.purdue.edu/~lewicki/physics218/significant#:~:text=(1)%20The%20number%20of%20significant,when%20stating%20the%20experimental%20uncertainty.
https://en.wikipedia.org/wiki/Significant_figures#Writing_uncertainty_and_implied_uncertainty @pat-alt

it just doesn't make sense to ask the computer to create a probability distribution with a variance with a huge number of digits when you are already uncertain on the first one. if i tell you: the distance is 10 meters +-1.234134523543264363636347
what's the point of giving you the "7" when i am already uncertain at the magnitude of meters?

@pasq-cat pasq-cat changed the title rounding the variance to the first significative digits rounding the variance to the first significative digit Jul 18, 2024
@pasq-cat
Copy link
Contributor Author

@pat-alt i will just create an example of what i think should be done in this branch.

@pat-alt
Copy link
Member

pat-alt commented Jul 24, 2024

Good idea!

@pasq-cat
Copy link
Contributor Author

@pat-alt ok it requires a major overhaul and the juice isn't worth the squeeze. i guess we can close this issue.

@pasq-cat pasq-cat changed the title rounding the variance to the first significative digit rounding the predicted mean up to the order of the most significative digit of the variance Jul 24, 2024
@pat-alt
Copy link
Member

pat-alt commented Jul 25, 2024

Sure? Seems like rounding shouldn't require too much of an overhaul? I'm happy to keep this open and just park it for now (could be good one to pick up if during my absence you run out of things to do or hit roadblocks somewhere else). But I'm also OK with closing it if you want to abandon it

@pasq-cat
Copy link
Contributor Author

pasq-cat commented Jul 25, 2024

Sure? Seems like rounding shouldn't require too much of an overhaul? I'm happy to keep this open and just park it for now (could be good one to pick up if during my absence you run out of things to do or hit roadblocks somewhere else). But I'm also OK with closing it if you want to abandon it

rounding makes the sum of the vectors of probabilities slightly different from 1 , which creates problem when we try to return categorical distributions. additionaly , the pytorch comparison tests fails because they do not implement any rounding.

@pat-alt
Copy link
Member

pat-alt commented Aug 21, 2024

Got it! Maybe we can just print the rounded values? Might be an overkill though, so also happy to close this

@pasq-cat
Copy link
Contributor Author

pasq-cat commented Aug 21, 2024

Got it! Maybe we can just print the rounded values? Might be an overkill though, so also happy to close this

if someone uses it on a huge dataset the print statements will become annoying.
i think we can close.

@pasq-cat pasq-cat closed this as not planned Won't fix, can't repro, duplicate, stale Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants