-
Notifications
You must be signed in to change notification settings - Fork 8
Ben/what is probability #141
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: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -36,13 +36,13 @@ Not ready for review | |||||
| ## Introduction, what is probability? | ||||||
|
|
||||||
| Uncertainty is part of life. Although there is not much we can do to answer questions such as, | ||||||
| will I loose my job within the next year?, or what is my life expectency?, it is possible to | ||||||
| will I loose my job within the next year?, or what is my life expectancy?, it is possible to | ||||||
| answer questions such as, what is my chances to win the lottery? (exceedingly small). | ||||||
|
|
||||||
| Scientists from any discipline that we can think of, also need to deal with uncertainties, | ||||||
| to come up with specific answers when possible, or know the limits of what it is possible to know. | ||||||
|
|
||||||
| You will encounter numerous examples of this kind throughout this book. In fatc, this | ||||||
| You will encounter numerous examples of this kind throughout this book. In fact, this | ||||||
| is what this book is all about. | ||||||
|
|
||||||
| The uncertainty stems from different sources, some or all may be present in any given application. | ||||||
|
|
@@ -115,6 +115,104 @@ on developing causality models and is still an exciting, active field of researc | |||||
| The rest of this chapter is about the general considerations that are important for principled | ||||||
| reasoning in the presence of uncertainty. | ||||||
|
|
||||||
| ## Understand your problem | ||||||
|
|
||||||
| In practice you will asked to provide answers based on data. For example, you may be given data about customer | ||||||
| behaviour in a large bank and asked to develop a model that will provide the probability of default of the customers in | ||||||
| the bank. This is an important problem for all financial institutions - if it does not have a good credit risk model, | ||||||
| it will either loose money by being too conservative in the way it lends money, or loose money bay taking on too much | ||||||
| of a risk. You can opt for applying a sophisticated model such as a deep neural network but you are almost guaranteed | ||||||
|
||||||
| of a risk. You can opt for applying a sophisticated model such as a deep neural network but you are almost guaranteed | |
| of a risk. You can opt for applying an extremely complex "machine-learning" model with many parameters but you are almost guaranteed |
Outdated
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.
Better as?
| to come to grief. First study the problem and come to terms of all the many issues at stake. We speak of experience! | |
| to come to grief. First study the problem and come to terms of all the many issues at stake. We speak from experience! |
Outdated
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.
| on this side of the road and one crosses over to the other side, how is it that you tell non remain? Annie replies, | |
| on this side of the road and one crosses over to the other side, why are you saying that none remain? Annie replies, |
Outdated
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.
| with lots of data and then ask you to extract meaningful information from it. Our advice it, work with the company to | |
| with lots of data and then asks you to extract meaningful information from it. Our advice is, work with the company to |
Outdated
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.
| 2. Is the data complete? Real-world data often has empty fields that are filled with `NaN`'s. How do you deal with this? | |
| 2. Is the data complete? Real-world data often has empty fields with missing data. How do you deal with this? |
Outdated
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.
| Do you discard these fields or do you impute values for them? | |
| Do you discard these fields or do you try and estimate values for them? |
Outdated
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.
Reference?
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.
| and non-criminals. For their criminals they relied on police mug shots. You have to seriously ask yourself whether | |
| and non-criminals. For their criminals they relied on police mug shots - but of course they had to use other types of photograph for the non-criminals. But even without that difference, you have to seriously ask yourself whether |
Outdated
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.
| 5. Is you data biased? Because of historical reasons and social inequalities your data may be biased against minorities, | |
| 5. Is your data biased? For historical reasons and because of social inequalities your data may be biased against minorities, |
Outdated
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.
| it given samples of photographs of criminals and non-criminals, i.e. each photograph comes with the label, `criminal` | |
| is given samples of photographs of criminals and non-criminals, i.e. each photograph comes with the label, `criminal` |
Outdated
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.
| purpose. It is important to know how your model is going to be used. If you are to develop a system that need to | |
| purpose. It is important to know how your model is going to be used. If you are to develop a system that needs to |
Outdated
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.
| 1. Use versioning control, we recommend using git. If you regularly push to the git repo this will protect you from | |
| 1. Use version control; we recommend using git. If you regularly push to the git repo this will protect you from |
Outdated
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.
| 2. Ask someone elso to critically review your code. Even better if you work in an environment where there is a formal | |
| 2. Ask someone else to critically review your code. Even better if you work in an environment where there is a formal |
Outdated
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.
| 4. Always tests for your code. This means that you run your code on small examples for which you know the answer. Every | |
| 4. Always add tests for your code. This means that you run your code on small examples for which you know the answer. Every |
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.