-
Notifications
You must be signed in to change notification settings - Fork 91
Basics of finite probability theory #1626
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
base: master
Are you sure you want to change the base?
Conversation
|
Very cool project! I wonder if this namespace should be called |
By the way, you can add your reference to our |
Thanks. I hope it can be a new playground for all the new results on real numbers.
Sure. I thought that future results on non-finite probability theory could also go here, but having them separated would be coherent with the current division |
|
Let me know if you have a preferred color code for the label, since it is used for the dependency graph art :) |
I'm ok with the one from the new label |
| A | ||
| {{#concept "measure" Disambiguation="on a finite type" Agda=measure-Finite-Type}} | ||
| on a [finite type](univalent-combinatorics.finite-types.md) is a function into | ||
| the [positive real numbers](real-numbers.positive-real-numbers.md). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this not be nonnegative real numbers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'v seen contradicting references for this but there seems to be a slight preference for only considering positive distributions.
Moreover, in our context, I think it will be easier to work with: for a nonnegative real number we can't decide if it's zero or positive so we won't be able to identify elements with zero-measure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okiedokie. Please make sure to reflect this choice in the naming though, since in the real world an event can be impossible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure where you stand on the positive vs. nonnegative debate. I added the reference to Balai00 but didn't emphasize on the positive part. Maybe I should?
Also, I have the feeling that the notion of "impossible events" will appear later, considering random variables (functions from the finite probability space to ℝ) and, then, some subsets of ℝ will have empty pre-image, and "zero-measure". But I haven't really worked that part out, yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would definitely expect to have to use nonnegative numbers -- impossible events, the intersection of exclusive events...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would definitely expect to have to use nonnegative numbers -- impossible events, the intersection of exclusive events...
I think this will come later, when we define events in a finite probability space as subsets of the underlying type. Then the probability of an event will be the sum of the probabilities of its elements (decidability issues to be discussed) and the empty event will have zero probability. Nonetheless it really seems reasonable to have positive values for atomic distributions on finite types.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A nonempty event could also be impossible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A nonempty event could also be impossible.
yes.
I have the feeling I'm not explaining myself well.
I can try to change the definition to consider nonnegative distributions if you really want to. Do you have reference that construct finite probability spaces this way?
src/finite-probability-theory/finite-probability-spaces.lagda.md
Outdated
Show resolved
Hide resolved
...e-probability-theory/expected-value-random-real-variables-finite-probability-spaces.lagda.md
Outdated
Show resolved
Hide resolved
src/finite-probability-theory/random-real-variables-finite-probability-spaces.lagda.md
Outdated
Show resolved
Hide resolved
|
There's still a lot more to say but maybe it's good enough to start. |
...e-probability-theory/expected-value-random-real-variables-finite-probability-spaces.lagda.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Fredrik Bakke <[email protected]>
…ite-types.lagda.md Co-authored-by: Fredrik Bakke <[email protected]>
…-types.lagda.md Co-authored-by: Fredrik Bakke <[email protected]>
|
The large ring of real numbers has now been contributed to the library #1664 :) |
This PR introduces a new module
finite-probability-theorywith some basic definitions on finite probability theory, following https://people.cs.uchicago.edu/~laci/reu02/prob.pdf.finite-probability-theory.positive-distributions-on-finite-types:finite-probability-theory.probability-distributions-on-finite-types:finite-probability-theory.finite-probability-spaces:finite-probability-theory.random-real-variables-finite-probability-spaces:finite-probability-theory.expected-value-random-real-variables-finite-probability-spaces: