Our journey ahead has three stops:
1. an introduction to mathematical logic,
2. a touch of elementary set theory,
3. and finally, understanding probabilistic thinking.
First things first: mathematical logic.
1. an introduction to mathematical logic,
2. a touch of elementary set theory,
3. and finally, understanding probabilistic thinking.
First things first: mathematical logic.
In logic, we work with propositions.
A proposition is a statement that is either true or false, like
• "it's raining outside",
• "the sidewalk is wet".
These are often abbreviated as variables, such as A = "it's raining outside".
A proposition is a statement that is either true or false, like
• "it's raining outside",
• "the sidewalk is wet".
These are often abbreviated as variables, such as A = "it's raining outside".
We can formulate complex propositions from smaller building blocks with logical connectives.
Consider the proposition "if it is raining outside, then the sidewalk is wet". This is the combination of two propositions, connected by the implication connective.
Consider the proposition "if it is raining outside, then the sidewalk is wet". This is the combination of two propositions, connected by the implication connective.
There are four essential connectives:
• NOT (¬), also known as negation,
• AND (∧),
• OR (∨),
• THEN (→), also known as implication.
• NOT (¬), also known as negation,
• AND (∧),
• OR (∨),
• THEN (→), also known as implication.
Science is just the collection of complex propositions like "if X is a closed system, THEN the entropy of X cannot decrease". (As the 2nd law of thermodynamics states.)
The entire body of scientific knowledge is made of A → B propositions.
The entire body of scientific knowledge is made of A → B propositions.
(If you don't understand modus ponens, take a look at the truth table of the → connective, a few tweets above.
The case when A → B is true and A is true is described by the very first row, which can only happen if B is true as well.)
The case when A → B is true and A is true is described by the very first row, which can only happen if B is true as well.)
Now that we understand how to formulate scientific truths as "premise → conclusion" statements and see how this translates to sets, we are finally ready to talk about probability.
What is the biggest flaw of mathematical logic?
What is the biggest flaw of mathematical logic?
We rarely have all the information to decide if a proposition is true or false.
Consider the following: "it'll rain tomorrow". During the rainy season, all we can say is that rain is more likely, but tomorrow can be sunny as well.
Consider the following: "it'll rain tomorrow". During the rainy season, all we can say is that rain is more likely, but tomorrow can be sunny as well.
Probability theory generalizes classical logic by measuring truth on a scale between 0 and 1, where 0 is false and 1 is true.
If the probability of rain tomorrow is 0.9, it means that rain is significantly more likely, but not absolutely certain.
If the probability of rain tomorrow is 0.9, it means that rain is significantly more likely, but not absolutely certain.
Instead of propositions, probability operates on events. In turn, events are represented by sets.
For example, if I roll a dice, the event "the result is less than five" is represented by the set A = {1, 2, 3, 4}.
In fact, P(A) = 4/6. (P denotes the probability of an event.)
For example, if I roll a dice, the event "the result is less than five" is represented by the set A = {1, 2, 3, 4}.
In fact, P(A) = 4/6. (P denotes the probability of an event.)
(If you want to know more about conditional probabilities, here is a brief explainer.)
To give you a concrete example, let's go back to the one mentioned earlier: the rain and the wet sidewalk. For simplicity, denote the events by
A = "the sidewalk is wet",
B = "it's raining outside".
A = "the sidewalk is wet",
B = "it's raining outside".
The sidewalk can be wet for many reasons, say the neighbor just watered the lawn. Yet, the primary cause of a wet sidewalk is rain, so P(B | A) is close to 1.
If somebody comes in and tells you that the sidewalk is wet, it is safe to infer rain.
If somebody comes in and tells you that the sidewalk is wet, it is safe to infer rain.
To wrap up, here is how Maxwell — the famous physicist — thinks about probability.
"The actual science of logic is conversant at present only with things either certain, impossible, or entirely doubtful, none of which (fortunately) we have to reason on."
"The actual science of logic is conversant at present only with things either certain, impossible, or entirely doubtful, none of which (fortunately) we have to reason on."
"Therefore the true logic for this world is the calculus of Probabilities, which takes account of the magnitude of the probability which is, or ought to be, in a reasonable man's mind."
(James Clerk Maxwell)
By now, you can fully understand what Maxwell meant.
(James Clerk Maxwell)
By now, you can fully understand what Maxwell meant.
If you have enjoyed this thread, share it with your friends and follow me!
I regularly post deep-dive explanations about seemingly complex concepts from mathematics and machine learning.
I regularly post deep-dive explanations about seemingly complex concepts from mathematics and machine learning.
Having a deep understanding of math will make you a better engineer. I want to help you with this, so I am writing a comprehensive book about the subject.
If you are interested in the Mathematics of Machine Learning, check out the early access!
tivadardanka.com
If you are interested in the Mathematics of Machine Learning, check out the early access!
tivadardanka.com
Loading suggestions...