SlideShare a Scribd company logo
Mathematics for Data Science
UCDS
13-09-2024 Prof. A Choudhury 1
Arguments
Given are two arguments.
1) The local bank was robbed. The robber was
getting away in a FIAT car. Sam is known to have a
record of theft and he owns a FIAT .Therefore, Sam
is the person who robbed the local bank.
2) The local bank was robbed. The person who
robbed the local bank left the only unauthorized
finger print on the safe. Sam’s finger print matches
the unauthorized one left on the safe. Therefore,
Sam is the person who robbed the local bank.
13-09-2024 Prof. A Choudhury 2
Analysis of arguments
Structure of an argument:
In any argument, there are two parts. The first part consists of evidence or
premises. The second part is the conclusion.
Valid and invalid arguments:
If the premises being true force the conclusion to be true then we say that
the argument is valid.
Otherwise the argument is considered invalid.
Analysis: First Argument:
Premises:
a) The local bank was robbed.
b) The robber was getting away in a FIAT car.
c) Sam is known to have a record of theft and he owns a FIAT .
Conclusion:
Sam is the person who robbed the local bank.
13-09-2024 Prof. A Choudhury 3
Second argument
Analysis: Second Argument:
Premises:
a) The local bank was robbed.
b) The person who robbed the local bank left the only
unauthorized finger print on the safe.
c) Sam’s finger print matches the unauthorized one left
on the safe.
Conclusion:
Sam is the person who robbed the local bank.
Which of the two arguments is a valid argument?
How to reason?
13-09-2024 Prof. A Choudhury 4
Analysis of arguments
1) Symbolize (consistently) all the premises and the conclusion.
This means that we identify the basic statements or input variables
and then express the premises and conclusions in terms of the basic
statements.
2) Create a truth-table for the argument having a column for each
input variable or basic statement appearing in the argument. Further a
column each for the premises and a final column for the conclusion.
3) If there is a row in the truth-table where every entry for the
premises is true but the correspondingentry for the conclusion is
false then such a row is called a bad row.
4)If the truth-table for the argument has a bad row then it is an invalid
argumentotherwise it is a valid argument.
13-09-2024 Prof. A Choudhury 5
Analysis of arguments
Example 1
Example 1: Consider the following argument:
If I read book A then I will be able to discuss book A in class. I discussed book A in class.
Therefore I read book A.
Basic Statements:
p: I read book A.
q: I discuss book A in class.
Premises:
P1: p → q (If I read book A then I will be able to discuss book A in class.)
P2: q (I discussed book A in class.)
Conclusion: C: p (I read book A.)
13-09-2024 Prof. A Choudhury 6
Analysis and inference
Analysis:
In the 2nd last row of the table we note that the entries for P1 and P2 are T but the
entry for C is F. It is a bad row.
Inference:
Hence, this is an invalid
argument.
Example 2
I have to see either Movie A or Movie B. I cannot see Movie B.
Therefore I have to see Movie A.
Is this a valid argument?
13-09-2024 Prof. A Choudhury 7
Patterns
From the analysis we can note certain patterns.
• If any argument can be symbolized in the same pattern as
in Example 1,namely,
P1 : p→ q
P2: q
_________________
C : p
then the argument will have the same truth-table as given in
Table 1 and hence will have a bad row.
Hence, we can conclude that any argument which can be
symbolized in the above pattern is an invalid argument.
13-09-2024 Prof. A Choudhury 8
Patterns
13-09-2024 Prof. A Choudhury 9
• Similarly we find that any argument which can be
symbolized in the same pattern as Example 2, namely,
P1 : pꓦ q
P2 : ⁓q
__________
C : p
then the argument will have the same truth-table as given in
Table 2 and so will not have a bad row.
Hence we can conclude that any argument which can be
symbolized in the above pattern is an valid argument.
Valid arguments/valid deduction rule
1)Direct reasoning(a.k.a affirmative mode or modus ponen)
The pattern given below is a valid argument. If an argument in
symbolic form has this pattern then the argument will be valid by
Direct Reasoning.
P1 : p → q
P2 : p
______________
C : q
Example: All cats can climb trees. Kitty is a cat. Therefore Kitty can
climb a tree.
• Note that, `All cats can climb trees' is the same as the statement
• `If it is a cat then it can climb trees'.
• In the above example, let p be the statement `If it is a cat' and q
be the statement `It can climb trees'.
13-09-2024 Prof. A Choudhury 10
2) Contrapositive Reasoning(a.k.a Denial mode or modus
tollen)
Any argument that can be symbolized to have the pattern
given below is a valid argument and this valid pattern of
reasoning is called Contrapositive Reasoning.
P1 : p → q
P2 : ⁓ q
_________
C : ⁓ p
Example: All tigers are carnivores. Tom is not a carnivore.
Therefore Tom is not a tiger.
13-09-2024 Prof. A Choudhury 11
Valid arguments/valid deduction rule
Valid arguments/valid deduction rule
3) Disjunctive Syllogism
Any argument that can be symbolized to have the pattern
given below, is a valid argument and this valid pattern of
reasoning is called Disjunctive Syllogism.
P1 : p ꓦq
P2 : ⁓ q
______________
C : p
Example: Sybil will take her dog for a walk or Sybil will
feed her cat. Sybil could not feed her cat. Therefore, Sybil
will take her dog for a walk.
13-09-2024 Prof. A Choudhury 12
Valid arguments/valid deduction rule
4) Transitive reasoning
The valid pattern of reasoning given below is called Transitive
Reasoning.
If an argument can be symbolized to have the same pattern as
the one below then we say that it is a valid argument using
Transitive Reasoning.
P1 : p → q
P2 : q → r
_____________
C : p → r
Example: All monkeys are mammals. All mammals look after
their young. Therefore, all monkeys look after their young.
13-09-2024 Prof. A Choudhury 13
Invalid arguments Or Fallacy
1)Fallacy of the converse:
P1 : p → q
P2 : q
_________
C : p
Example: If I read book A then I will be able to discuss book A in class. I
discussed book A in class. Therefore I read book A.
2)Fallacy of the inverse:
P1 : p → q
P2 : ⁓ p
________________
C : ⁓ q
• Example: All policemen are brave. Joe is not a policeman. Therefore Joe is
not brave.
13-09-2024 Prof. A Choudhury 14
3) False chain:
P1 : p → q
P2 : r → q
________________
C : p → r
Example:If today is a Government holiday then the University is closed. If
today is a Sunday then the University is closed. Therefore if today is a
Government holiday then today is a Sunday.
4) Disjunctive fallacy:
P1 : p ꓦ q
P2 : p
_____________________
C : ⁓ q
Example: You read detective fiction or you read comics. You read detective
fiction. Hence you do not read comics.
13-09-2024 Prof. A Choudhury 15
Invalid arguments Or Fallacy
Argument
• We have explored four valid patterns and four invalid patterns .
However, it should be emphasized that many arguments, when
symbolized may not fit any of these eight patterns. In such cases,
the arguments will have to be analyzed for bad rows either using a
truth-table or directly.
Example: I got a scholarship and I got an A grade in Logic and
Reasoning. I am good at logic or I get an A grade in Logic and
Reasoning. Therefore I am good at logic or I do not get a scholarship.
The above argument can be symbolized as follows:
P1 : p ∧ q
P2 : r ∨ q
____________________
C : q ∨∼ p
13-09-2024 Prof. A Choudhury 16
Beyond propositional logic
Consider “x is prime”. These are not propositions since their truth
value depends on the input value of x.
To deal with these situations we use ‘Predicate Logic”.
Predicatelogic extends propositional logic.
Predicate: A predicate is a declarative sentences whose T/F value
depends on one or more variables.
Example: P(x) = “ x is even”
Q(x, y)= ‘x is greater than y”
Predicates are not statements, because they containfree variables.
Quantifier: A quantifier modifies a predicate by describing whether
some or all elements of the domain(universeof discourse) of the
predicate satisfy the predicate.
∀ “for all” (universal quantifier)
∃ “there exists”,“for some” existential quantifier)
13-09-2024 Prof. A Choudhury 17
Predicate Logic
Universal quantifier: It states that the statements within its scope are true for
every value of the specific variable. It is denoted by ∀.
(∀ 𝑥 ∈ 𝐴), F(x) means ‘For every value of x in the set A , F(x) is true.’
Concretely, given the predicate F(x) : x.0=0 for real numbers,
(∀ x ∈ 𝑹), F(x) means “ For all real numbers x.0=0”.
Universe of discourse is the domain.
Existential quantifier: It states that the statements within its scope are true
for some value of the specific variable. It is denoted by ∃.
Given the predicate R(x) : x-2=0 for an integer.
(∃x)R(x) means “There is some integer x for which x-2=0”.
Universe of discourse is some integer.(domain)
13-09-2024 Prof. A Choudhury 18
Nested(Compound) quantifiers
Rule 1: If we use the same quantifier , then the ordering doesn’t
matter.
• ‘For all x ∈ R and for all y ∈ R, x + y = 4.’, is the same as
‘For all y ∈ R and for all x ∈ R, x + y = 4.’, which is the same as
‘For all x, y ∈ R, x + y = 4.’ (Note: You should be able to tell that this is
a false statement.)
• ‘There exists x ∈ R and there exist y ∈ R such that x + y = 4.’, is the
same as
‘There exists y ∈ R and there exists x ∈ R such that x + y = 4.’, which is
the same as
‘There exist x, y ∈ R such that x + y = 4.’ (Note: You should be able to
tell that is a true statement.)
13-09-2024 Prof. A Choudhury 19
Rule 2:If we are using mixed quantifiers , the order matters.
Let 𝐺(𝑥 , 𝑦) represent the predicate “𝑥 > 𝑦”.
a) ∀𝑦 ∈ 𝐴 ∃𝑥 ∈ 𝐵 , 𝐺(𝑥, 𝑦)(quantified predicate)
“For all numbers y ∈ 𝐴 , there exists some number x ∈ 𝐵 such
that 𝑥 > 𝑦 is true”.
This is true statement.
b) ∃𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 , 𝐺(𝑥, 𝑦)
“There exists some number 𝑥 ∈ 𝐴 such that for all numbers
y ∈ 𝐵, x>y”.
This is false statement. Why?
13-09-2024 Prof. A Choudhury 20
Nested(Compound) quantifiers
Negation rules
Negation Rules: When we negate a quantified statement, we negate all the
quantifiers first, from left to right (keeping the same order), then we negative
the statement.
1. ∼ ∀𝑥 𝑃 𝑥 ≡ ∃𝑥 [~𝑃 𝑥 ]
2. ~ ∃𝑥 𝑃 𝑥 ≡ ∀𝑥 [~𝑃 𝑥 ]
3. ~ ∀𝑥 ∃𝑦 𝑃 𝑥, 𝑦 ≡ ∃𝑦 ∀𝑥 [~𝑃 𝑥, 𝑦 ]
4. ~[ ∃𝑥 ∀𝑦 𝑃 𝑥, 𝑦 ] ≡ (∀𝑥)(∃𝑦)[~𝑃 𝑥, 𝑦 ]
13-09-2024 Prof. A Choudhury 21
Examples
1. 𝐿𝑒𝑡 𝑃 𝑥 : 𝑥2
= 2.
𝐼𝑓 𝑡ℎ𝑒 𝑑𝑜𝑚𝑎𝑖𝑛 𝑜𝑓 𝑥 𝑖𝑠 𝒁 𝑜𝑟 𝑵 𝑡ℎ𝑒𝑛 𝑃 𝑥 𝑖𝑠 𝑛𝑜𝑡 𝑡𝑟𝑢𝑒 𝑓𝑜𝑟 𝑎𝑛𝑦 𝑣𝑎𝑙𝑢𝑒 𝑜𝑓 𝑥.
Therefore, the statement ∃𝑥 ∈ 𝒁 𝑃 𝑥 𝑖𝑠 𝑓𝑎𝑙𝑠𝑒 , ∀𝑥 ∈ 𝑵 𝑃 𝑥 𝑖𝑠 𝑓𝑎𝑙𝑠𝑒.
𝐵𝑢𝑡 𝑖𝑓 𝑡ℎ𝑒 𝑑𝑜𝑚𝑎𝑖𝑛 𝑜𝑓 𝑥 𝑖𝑠 𝑹, 𝑡ℎ𝑒𝑛 ∃𝑥 ∈ 𝑅, 𝑃 𝑥 is true.
2. 𝐿𝑒𝑡 𝑃 𝑥, 𝑦 𝑏𝑒 𝑡ℎ𝑒 𝑝𝑟𝑜𝑝𝑜𝑠𝑖𝑡𝑖𝑜𝑛𝑎𝑙 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛: 𝑥 < 𝑦.
𝑈𝑠𝑒 𝑃 𝑥, 𝑦 𝑎𝑛𝑑 𝑞𝑢𝑎𝑛𝑡𝑖𝑓𝑖𝑒𝑟𝑠 𝑡𝑜 𝑒𝑥𝑝𝑟𝑒𝑠𝑠 𝑡ℎ𝑒 𝑠𝑡𝑎𝑡𝑒𝑚𝑒𝑛𝑡: “𝑡ℎ𝑒𝑟𝑒 𝑖𝑠 𝑛𝑜 𝑠𝑚𝑎𝑙𝑙𝑒𝑠𝑡
𝑟𝑒𝑎𝑙 𝑛𝑢𝑚𝑏𝑒𝑟.
” 𝑊ℎ𝑎𝑡 𝑖𝑠 𝑡ℎ𝑒 𝑑𝑜𝑚𝑎𝑖𝑛 𝑓𝑜𝑟 𝑒𝑎𝑐ℎ 𝑞𝑢𝑎𝑛𝑡𝑖𝑓𝑖𝑒𝑟 𝑦𝑜𝑢 𝑢𝑠𝑒?
13-09-2024 Prof. A Choudhury 22
Negation rules for predicate logic
13-09-2024 Prof. A Choudhury 23
Domain of
people
P(x) “x is a liar”
1 (∀𝑥)𝑃(𝑥) All people are liars.
~[(∀𝑥)𝑃(𝑥)] Negation
(∃𝑥)[~𝑃(𝑥)] There exists a person who is not a liar
2 (∃𝑥)𝑃(𝑥) There exists a person who is a liar
~[(∃𝑥)𝑃(𝑥)] Negation
(∀𝑥)[~𝑃(𝑥)] There are no liars
Mathematical logic
Mathematical statements:
• Definition
• Postulates or axioms
• Theorem- corollary, proposition, lemma
Definition : It is a statement that stipulates the meaning of a new term,
symbol or an object.
Example:
Definition of parallel lines: Two lines in a plane are parallel if they do not
have a common point.
• Mathematical definitions are extremely precise.
• They are logically “ if and only if” statements.
• In predicate logic, if D(x)= x is (defined term)
P(x)= [defining property of the term]
then a definition is of the form (∀𝑥)(𝐷(𝑥) 𝑃(𝑥)) .
13-09-2024 Prof. A Choudhury 24
Mathematical statements
Axioms or postulates: Propositionsthat are accepted to be true are called axioms or
postulates.
Example: “There is a straight line segment between a pair of points”.
• Axioms are basic , fundamental true statements.
• Theorems are based on the assumption of some certain sets of underlying axioms.
Euclid established the truth of many additional propositions by providing ‘ proofs’.
Theorem:A theorem is a statement that follows logically from statements we have
already established or taken as given.
Proof:A proof is a sequence of logical deductions from axioms and previously proved
statements that concludes with the proposition in question.
A lemma is a preliminary proposition useful for proving later propositions.
A corollary is a proposition that follows in just a few logical steps from a theorem.
• A statement that we intend to prove is called a claim.
• A statement that we can’t yet prove but that we suspect is true is called a
conjecture.
13-09-2024 Prof. A Choudhury 25
Axiomatic approach
• Euclid’s axioms and proof approach
• Foundation of mathematics
• ZFC axioms together with a few logicaldeduction rules,
appear to be sufficient to derive essentially all of
mathematics.
Example:
The axioms of Euclidean Plane geometry.
Counterexample:A particular value that shows a statement to
be false is called a counterexample to the statement.
Example: “ Every prime number is an odd number”.
Counterexample: 9 is not a prime.
13-09-2024 Prof. A Choudhury 26
The Axioms of Euclidean Plane geometry.
1. A straight line may be drawn between any two points.
2. Any terminated straight line may be extended
indefinitely.
3. A circle may be drawn with any given point as center
and any given radius.
4. All right angles are equal.
5. If two straight lines in a plane are met by another line,
and if the sum of the internal angles on one side is less
than two right angles, then the straight lines will meet if
extended sufficiently on the side on which the sum of the
angles is less than two right angles.
13-09-2024 Prof. A Choudhury 27
Fractals
13-09-2024 Prof. A Choudhury 28
Well known theorems and conjectures
1. Euler’s Conjecture
2. Four colour theorem
3. Goldbach’s conjecture
4. Fermat’s last theorem
5. Claim: The equality 313(x3+y3)=z 3 , x, y, z∈ Z +
has no solution.
13-09-2024 Prof. A Choudhury 29
Proving an “implication”
“ If p then q.”
Example1:
If 0≤x≤ 2, then –x3 +4x+1 >0.
Example 2:
If r is irrational then √r is irrational.
Method #1:Direct proof
Method #2:Prove the contrapositive
13-09-2024 Prof. A Choudhury 30
Proving ”if and only if”
“If p then q and if q then p” .
Example1:
Two triangles have the same side lengths if and only
if two side lengths and the angle between those
sides are the same.
Example 2:
For every integer n, 6|n if and only if 3|n and 2|n.
Method #1:Prove Each Statement Implies the Other
Method#2: Construct a Chain of iff arguments
13-09-2024 Prof. A Choudhury 31
Other methods of proofs
• Proofs by cases
• Proof by contradiction
Example:
1.Prove that √3 is an irrational number.
2. If x is a real number such that
𝑥2−1
𝑥+2
>0, then
either x>1 or -2<x<-1.
13-09-2024 Prof. A Choudhury 32
Annexure A- logical equivalences
1. ~𝑝 ∨ 𝑞 ≡ 𝑝 → 𝑞 (𝑖𝑚𝑝𝑙𝑖𝑐𝑎𝑡𝑖𝑜𝑛)
2. ~ ~𝑝 ≡ 𝑝( 𝑑𝑜𝑢𝑏𝑙𝑒 𝑛𝑒𝑔𝑎𝑡𝑖𝑜𝑛)
3. ~ 𝑝 → 𝑞 ≡ 𝑝 ∧ ∼ 𝑞 𝑛𝑒𝑔𝑎𝑡𝑖𝑜𝑛 𝑜𝑓 𝑖𝑚𝑝𝑙𝑖𝑐𝑎𝑡𝑖𝑜𝑛
4. ∼ 𝑝 ∧ 𝑞 ≡∼ 𝑝 ∨∼ 𝑞 ; ∼ 𝑝 ∨ 𝑞 ≡∼ 𝑝 ∧∼ 𝑞 𝐷𝑒𝑀𝑜𝑟𝑔𝑎𝑛′
𝑠 𝑙𝑎𝑤𝑠
5. 𝑝 ∨ 𝑝 ≡ 𝑝; 𝑝 ∧ 𝑝 ≡ 𝑝 𝐿𝑎𝑤 𝑜𝑓 𝑖𝑑𝑒𝑚𝑝𝑜𝑡𝑒𝑛𝑐𝑒
6. 𝑝 ∨ 𝑝 ∧ 𝑞 ≡ 𝑝; 𝑝 ∧ 𝑝 ∨ 𝑞 ≡ 𝑝 𝐿𝑎𝑤 𝑜𝑓 𝑎𝑏𝑠𝑜𝑟𝑝𝑡𝑖𝑜𝑛
7. 𝑝 ∨ 𝑞 ≡ 𝑞 ∨ 𝑝; 𝑝 ∧ 𝑞 ≡ 𝑞 ∧ 𝑝 𝐶𝑜𝑚𝑚𝑢𝑡𝑎𝑡𝑖𝑣𝑒 𝑙𝑎𝑤
8. 𝑝 ∨ 𝑞 ∨ 𝑟 ≡ 𝑝 ∨ 𝑞 ∨ 𝑟; 𝑝 ∧ 𝑞 ∧ 𝑟 ≡ 𝑝 ∧ 𝑞 ∧ 𝑟 𝐴𝑠𝑠𝑜𝑐𝑖𝑎𝑡𝑖𝑣𝑒 𝑙𝑎𝑤
9. 𝑝 ∨ 𝑞 ∧ 𝑟 ≡ 𝑝 ∨ 𝑞 ∧ 𝑝 ∨ 𝑟 ;
𝑝 ∧ 𝑞 ∨ 𝑟 ≡ 𝑝 ∧ 𝑞 ∧ 𝑝 ∧ 𝑟 𝐷𝑖𝑠𝑡𝑟𝑖𝑏𝑢𝑡𝑖𝑣𝑒 𝑙𝑎𝑤
13-09-2024 Prof. A Choudhury 33
13-09-2024 Prof. A Choudhury 34

More Related Content

PPTX
chapter 1 (part 2)
PPTX
Arguments in discreate structures and stuff
PPTX
MAth presentation Daraga community college
PPT
logic_lec4.ppt
PPTX
Ex 1.6 Rules of Inference s2025.pptxjdjddidjdjdjdjdjd
PPTX
Logic_of_Informatics_-_Rules_of_Inference.pptx
PPTX
Week 3 Logic and Proof Logic and Proof Logic and Proof
PPTX
Chapter1p3.pptx
chapter 1 (part 2)
Arguments in discreate structures and stuff
MAth presentation Daraga community college
logic_lec4.ppt
Ex 1.6 Rules of Inference s2025.pptxjdjddidjdjdjdjdjd
Logic_of_Informatics_-_Rules_of_Inference.pptx
Week 3 Logic and Proof Logic and Proof Logic and Proof
Chapter1p3.pptx

Similar to Mathematics for data Science Part 2- Analysis of arguments .pdf (20)

PDF
Ch1_part3.pdfเานดวย่ากจวาเครากนยวกวสดสสนยดสรตสะารนสเ
PDF
Chapter 01 - p3.pdf
PPTX
4.-MMW-Formal-Logic (1).pptx jdowkwndoao
PPTX
Arguments and methods of proof
PDF
this is the presentation on Discrete Structures
PPTX
#4 formal methods – predicate logic
PPTX
Introduction to mathematical analysis
PPT
Mathematical reasoning
PPTX
Propositional logic
PPTX
Logic, contrapositive, converse, Discrete Mathematics, conjunction, negation
PDF
Course notes1
PPTX
Disc.Math-ppt.pptx it is very informative presentation for bachelor students ...
PDF
Logic, fallacies, arguments and categorical statements.
PPT
Mathematical Logic - Part 1
DOCX
Argument Forms
PPTX
m.a.t.h.e.m.a.t.i.c.s.d.i.s.c.r.e.t.e.pptx
PDF
DM-Course-2.pdf
PDF
Understanding arguments, reasoning and hypotheses
PPTX
General concepts of digital electronics and
PPT
S:\Prentice Hall Resouces\Math\Power Point\Math Topics 2\Revised Power Points...
Ch1_part3.pdfเานดวย่ากจวาเครากนยวกวสดสสนยดสรตสะารนสเ
Chapter 01 - p3.pdf
4.-MMW-Formal-Logic (1).pptx jdowkwndoao
Arguments and methods of proof
this is the presentation on Discrete Structures
#4 formal methods – predicate logic
Introduction to mathematical analysis
Mathematical reasoning
Propositional logic
Logic, contrapositive, converse, Discrete Mathematics, conjunction, negation
Course notes1
Disc.Math-ppt.pptx it is very informative presentation for bachelor students ...
Logic, fallacies, arguments and categorical statements.
Mathematical Logic - Part 1
Argument Forms
m.a.t.h.e.m.a.t.i.c.s.d.i.s.c.r.e.t.e.pptx
DM-Course-2.pdf
Understanding arguments, reasoning and hypotheses
General concepts of digital electronics and
S:\Prentice Hall Resouces\Math\Power Point\Math Topics 2\Revised Power Points...
Ad

Recently uploaded (20)

PDF
Clinical guidelines as a resource for EBP(1).pdf
PPTX
IB Computer Science - Internal Assessment.pptx
PDF
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
PPTX
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
PPTX
Introduction-to-Cloud-ComputingFinal.pptx
PPTX
Qualitative Qantitative and Mixed Methods.pptx
PPTX
Business Acumen Training GuidePresentation.pptx
PPTX
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PPTX
climate analysis of Dhaka ,Banglades.pptx
PPTX
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
PDF
Fluorescence-microscope_Botany_detailed content
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PPTX
STUDY DESIGN details- Lt Col Maksud (21).pptx
PPTX
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PDF
Lecture1 pattern recognition............
PDF
Mega Projects Data Mega Projects Data
PPTX
1_Introduction to advance data techniques.pptx
PDF
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
Clinical guidelines as a resource for EBP(1).pdf
IB Computer Science - Internal Assessment.pptx
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
Introduction-to-Cloud-ComputingFinal.pptx
Qualitative Qantitative and Mixed Methods.pptx
Business Acumen Training GuidePresentation.pptx
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
climate analysis of Dhaka ,Banglades.pptx
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
Fluorescence-microscope_Botany_detailed content
Acceptance and paychological effects of mandatory extra coach I classes.pptx
STUDY DESIGN details- Lt Col Maksud (21).pptx
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
IBA_Chapter_11_Slides_Final_Accessible.pptx
Lecture1 pattern recognition............
Mega Projects Data Mega Projects Data
1_Introduction to advance data techniques.pptx
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
Ad

Mathematics for data Science Part 2- Analysis of arguments .pdf

  • 1. Mathematics for Data Science UCDS 13-09-2024 Prof. A Choudhury 1
  • 2. Arguments Given are two arguments. 1) The local bank was robbed. The robber was getting away in a FIAT car. Sam is known to have a record of theft and he owns a FIAT .Therefore, Sam is the person who robbed the local bank. 2) The local bank was robbed. The person who robbed the local bank left the only unauthorized finger print on the safe. Sam’s finger print matches the unauthorized one left on the safe. Therefore, Sam is the person who robbed the local bank. 13-09-2024 Prof. A Choudhury 2
  • 3. Analysis of arguments Structure of an argument: In any argument, there are two parts. The first part consists of evidence or premises. The second part is the conclusion. Valid and invalid arguments: If the premises being true force the conclusion to be true then we say that the argument is valid. Otherwise the argument is considered invalid. Analysis: First Argument: Premises: a) The local bank was robbed. b) The robber was getting away in a FIAT car. c) Sam is known to have a record of theft and he owns a FIAT . Conclusion: Sam is the person who robbed the local bank. 13-09-2024 Prof. A Choudhury 3
  • 4. Second argument Analysis: Second Argument: Premises: a) The local bank was robbed. b) The person who robbed the local bank left the only unauthorized finger print on the safe. c) Sam’s finger print matches the unauthorized one left on the safe. Conclusion: Sam is the person who robbed the local bank. Which of the two arguments is a valid argument? How to reason? 13-09-2024 Prof. A Choudhury 4 Analysis of arguments
  • 5. 1) Symbolize (consistently) all the premises and the conclusion. This means that we identify the basic statements or input variables and then express the premises and conclusions in terms of the basic statements. 2) Create a truth-table for the argument having a column for each input variable or basic statement appearing in the argument. Further a column each for the premises and a final column for the conclusion. 3) If there is a row in the truth-table where every entry for the premises is true but the correspondingentry for the conclusion is false then such a row is called a bad row. 4)If the truth-table for the argument has a bad row then it is an invalid argumentotherwise it is a valid argument. 13-09-2024 Prof. A Choudhury 5 Analysis of arguments
  • 6. Example 1 Example 1: Consider the following argument: If I read book A then I will be able to discuss book A in class. I discussed book A in class. Therefore I read book A. Basic Statements: p: I read book A. q: I discuss book A in class. Premises: P1: p → q (If I read book A then I will be able to discuss book A in class.) P2: q (I discussed book A in class.) Conclusion: C: p (I read book A.) 13-09-2024 Prof. A Choudhury 6
  • 7. Analysis and inference Analysis: In the 2nd last row of the table we note that the entries for P1 and P2 are T but the entry for C is F. It is a bad row. Inference: Hence, this is an invalid argument. Example 2 I have to see either Movie A or Movie B. I cannot see Movie B. Therefore I have to see Movie A. Is this a valid argument? 13-09-2024 Prof. A Choudhury 7
  • 8. Patterns From the analysis we can note certain patterns. • If any argument can be symbolized in the same pattern as in Example 1,namely, P1 : p→ q P2: q _________________ C : p then the argument will have the same truth-table as given in Table 1 and hence will have a bad row. Hence, we can conclude that any argument which can be symbolized in the above pattern is an invalid argument. 13-09-2024 Prof. A Choudhury 8
  • 9. Patterns 13-09-2024 Prof. A Choudhury 9 • Similarly we find that any argument which can be symbolized in the same pattern as Example 2, namely, P1 : pꓦ q P2 : ⁓q __________ C : p then the argument will have the same truth-table as given in Table 2 and so will not have a bad row. Hence we can conclude that any argument which can be symbolized in the above pattern is an valid argument.
  • 10. Valid arguments/valid deduction rule 1)Direct reasoning(a.k.a affirmative mode or modus ponen) The pattern given below is a valid argument. If an argument in symbolic form has this pattern then the argument will be valid by Direct Reasoning. P1 : p → q P2 : p ______________ C : q Example: All cats can climb trees. Kitty is a cat. Therefore Kitty can climb a tree. • Note that, `All cats can climb trees' is the same as the statement • `If it is a cat then it can climb trees'. • In the above example, let p be the statement `If it is a cat' and q be the statement `It can climb trees'. 13-09-2024 Prof. A Choudhury 10
  • 11. 2) Contrapositive Reasoning(a.k.a Denial mode or modus tollen) Any argument that can be symbolized to have the pattern given below is a valid argument and this valid pattern of reasoning is called Contrapositive Reasoning. P1 : p → q P2 : ⁓ q _________ C : ⁓ p Example: All tigers are carnivores. Tom is not a carnivore. Therefore Tom is not a tiger. 13-09-2024 Prof. A Choudhury 11 Valid arguments/valid deduction rule
  • 12. Valid arguments/valid deduction rule 3) Disjunctive Syllogism Any argument that can be symbolized to have the pattern given below, is a valid argument and this valid pattern of reasoning is called Disjunctive Syllogism. P1 : p ꓦq P2 : ⁓ q ______________ C : p Example: Sybil will take her dog for a walk or Sybil will feed her cat. Sybil could not feed her cat. Therefore, Sybil will take her dog for a walk. 13-09-2024 Prof. A Choudhury 12
  • 13. Valid arguments/valid deduction rule 4) Transitive reasoning The valid pattern of reasoning given below is called Transitive Reasoning. If an argument can be symbolized to have the same pattern as the one below then we say that it is a valid argument using Transitive Reasoning. P1 : p → q P2 : q → r _____________ C : p → r Example: All monkeys are mammals. All mammals look after their young. Therefore, all monkeys look after their young. 13-09-2024 Prof. A Choudhury 13
  • 14. Invalid arguments Or Fallacy 1)Fallacy of the converse: P1 : p → q P2 : q _________ C : p Example: If I read book A then I will be able to discuss book A in class. I discussed book A in class. Therefore I read book A. 2)Fallacy of the inverse: P1 : p → q P2 : ⁓ p ________________ C : ⁓ q • Example: All policemen are brave. Joe is not a policeman. Therefore Joe is not brave. 13-09-2024 Prof. A Choudhury 14
  • 15. 3) False chain: P1 : p → q P2 : r → q ________________ C : p → r Example:If today is a Government holiday then the University is closed. If today is a Sunday then the University is closed. Therefore if today is a Government holiday then today is a Sunday. 4) Disjunctive fallacy: P1 : p ꓦ q P2 : p _____________________ C : ⁓ q Example: You read detective fiction or you read comics. You read detective fiction. Hence you do not read comics. 13-09-2024 Prof. A Choudhury 15 Invalid arguments Or Fallacy
  • 16. Argument • We have explored four valid patterns and four invalid patterns . However, it should be emphasized that many arguments, when symbolized may not fit any of these eight patterns. In such cases, the arguments will have to be analyzed for bad rows either using a truth-table or directly. Example: I got a scholarship and I got an A grade in Logic and Reasoning. I am good at logic or I get an A grade in Logic and Reasoning. Therefore I am good at logic or I do not get a scholarship. The above argument can be symbolized as follows: P1 : p ∧ q P2 : r ∨ q ____________________ C : q ∨∼ p 13-09-2024 Prof. A Choudhury 16
  • 17. Beyond propositional logic Consider “x is prime”. These are not propositions since their truth value depends on the input value of x. To deal with these situations we use ‘Predicate Logic”. Predicatelogic extends propositional logic. Predicate: A predicate is a declarative sentences whose T/F value depends on one or more variables. Example: P(x) = “ x is even” Q(x, y)= ‘x is greater than y” Predicates are not statements, because they containfree variables. Quantifier: A quantifier modifies a predicate by describing whether some or all elements of the domain(universeof discourse) of the predicate satisfy the predicate. ∀ “for all” (universal quantifier) ∃ “there exists”,“for some” existential quantifier) 13-09-2024 Prof. A Choudhury 17
  • 18. Predicate Logic Universal quantifier: It states that the statements within its scope are true for every value of the specific variable. It is denoted by ∀. (∀ 𝑥 ∈ 𝐴), F(x) means ‘For every value of x in the set A , F(x) is true.’ Concretely, given the predicate F(x) : x.0=0 for real numbers, (∀ x ∈ 𝑹), F(x) means “ For all real numbers x.0=0”. Universe of discourse is the domain. Existential quantifier: It states that the statements within its scope are true for some value of the specific variable. It is denoted by ∃. Given the predicate R(x) : x-2=0 for an integer. (∃x)R(x) means “There is some integer x for which x-2=0”. Universe of discourse is some integer.(domain) 13-09-2024 Prof. A Choudhury 18
  • 19. Nested(Compound) quantifiers Rule 1: If we use the same quantifier , then the ordering doesn’t matter. • ‘For all x ∈ R and for all y ∈ R, x + y = 4.’, is the same as ‘For all y ∈ R and for all x ∈ R, x + y = 4.’, which is the same as ‘For all x, y ∈ R, x + y = 4.’ (Note: You should be able to tell that this is a false statement.) • ‘There exists x ∈ R and there exist y ∈ R such that x + y = 4.’, is the same as ‘There exists y ∈ R and there exists x ∈ R such that x + y = 4.’, which is the same as ‘There exist x, y ∈ R such that x + y = 4.’ (Note: You should be able to tell that is a true statement.) 13-09-2024 Prof. A Choudhury 19
  • 20. Rule 2:If we are using mixed quantifiers , the order matters. Let 𝐺(𝑥 , 𝑦) represent the predicate “𝑥 > 𝑦”. a) ∀𝑦 ∈ 𝐴 ∃𝑥 ∈ 𝐵 , 𝐺(𝑥, 𝑦)(quantified predicate) “For all numbers y ∈ 𝐴 , there exists some number x ∈ 𝐵 such that 𝑥 > 𝑦 is true”. This is true statement. b) ∃𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 , 𝐺(𝑥, 𝑦) “There exists some number 𝑥 ∈ 𝐴 such that for all numbers y ∈ 𝐵, x>y”. This is false statement. Why? 13-09-2024 Prof. A Choudhury 20 Nested(Compound) quantifiers
  • 21. Negation rules Negation Rules: When we negate a quantified statement, we negate all the quantifiers first, from left to right (keeping the same order), then we negative the statement. 1. ∼ ∀𝑥 𝑃 𝑥 ≡ ∃𝑥 [~𝑃 𝑥 ] 2. ~ ∃𝑥 𝑃 𝑥 ≡ ∀𝑥 [~𝑃 𝑥 ] 3. ~ ∀𝑥 ∃𝑦 𝑃 𝑥, 𝑦 ≡ ∃𝑦 ∀𝑥 [~𝑃 𝑥, 𝑦 ] 4. ~[ ∃𝑥 ∀𝑦 𝑃 𝑥, 𝑦 ] ≡ (∀𝑥)(∃𝑦)[~𝑃 𝑥, 𝑦 ] 13-09-2024 Prof. A Choudhury 21
  • 22. Examples 1. 𝐿𝑒𝑡 𝑃 𝑥 : 𝑥2 = 2. 𝐼𝑓 𝑡ℎ𝑒 𝑑𝑜𝑚𝑎𝑖𝑛 𝑜𝑓 𝑥 𝑖𝑠 𝒁 𝑜𝑟 𝑵 𝑡ℎ𝑒𝑛 𝑃 𝑥 𝑖𝑠 𝑛𝑜𝑡 𝑡𝑟𝑢𝑒 𝑓𝑜𝑟 𝑎𝑛𝑦 𝑣𝑎𝑙𝑢𝑒 𝑜𝑓 𝑥. Therefore, the statement ∃𝑥 ∈ 𝒁 𝑃 𝑥 𝑖𝑠 𝑓𝑎𝑙𝑠𝑒 , ∀𝑥 ∈ 𝑵 𝑃 𝑥 𝑖𝑠 𝑓𝑎𝑙𝑠𝑒. 𝐵𝑢𝑡 𝑖𝑓 𝑡ℎ𝑒 𝑑𝑜𝑚𝑎𝑖𝑛 𝑜𝑓 𝑥 𝑖𝑠 𝑹, 𝑡ℎ𝑒𝑛 ∃𝑥 ∈ 𝑅, 𝑃 𝑥 is true. 2. 𝐿𝑒𝑡 𝑃 𝑥, 𝑦 𝑏𝑒 𝑡ℎ𝑒 𝑝𝑟𝑜𝑝𝑜𝑠𝑖𝑡𝑖𝑜𝑛𝑎𝑙 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛: 𝑥 < 𝑦. 𝑈𝑠𝑒 𝑃 𝑥, 𝑦 𝑎𝑛𝑑 𝑞𝑢𝑎𝑛𝑡𝑖𝑓𝑖𝑒𝑟𝑠 𝑡𝑜 𝑒𝑥𝑝𝑟𝑒𝑠𝑠 𝑡ℎ𝑒 𝑠𝑡𝑎𝑡𝑒𝑚𝑒𝑛𝑡: “𝑡ℎ𝑒𝑟𝑒 𝑖𝑠 𝑛𝑜 𝑠𝑚𝑎𝑙𝑙𝑒𝑠𝑡 𝑟𝑒𝑎𝑙 𝑛𝑢𝑚𝑏𝑒𝑟. ” 𝑊ℎ𝑎𝑡 𝑖𝑠 𝑡ℎ𝑒 𝑑𝑜𝑚𝑎𝑖𝑛 𝑓𝑜𝑟 𝑒𝑎𝑐ℎ 𝑞𝑢𝑎𝑛𝑡𝑖𝑓𝑖𝑒𝑟 𝑦𝑜𝑢 𝑢𝑠𝑒? 13-09-2024 Prof. A Choudhury 22
  • 23. Negation rules for predicate logic 13-09-2024 Prof. A Choudhury 23 Domain of people P(x) “x is a liar” 1 (∀𝑥)𝑃(𝑥) All people are liars. ~[(∀𝑥)𝑃(𝑥)] Negation (∃𝑥)[~𝑃(𝑥)] There exists a person who is not a liar 2 (∃𝑥)𝑃(𝑥) There exists a person who is a liar ~[(∃𝑥)𝑃(𝑥)] Negation (∀𝑥)[~𝑃(𝑥)] There are no liars
  • 24. Mathematical logic Mathematical statements: • Definition • Postulates or axioms • Theorem- corollary, proposition, lemma Definition : It is a statement that stipulates the meaning of a new term, symbol or an object. Example: Definition of parallel lines: Two lines in a plane are parallel if they do not have a common point. • Mathematical definitions are extremely precise. • They are logically “ if and only if” statements. • In predicate logic, if D(x)= x is (defined term) P(x)= [defining property of the term] then a definition is of the form (∀𝑥)(𝐷(𝑥) 𝑃(𝑥)) . 13-09-2024 Prof. A Choudhury 24
  • 25. Mathematical statements Axioms or postulates: Propositionsthat are accepted to be true are called axioms or postulates. Example: “There is a straight line segment between a pair of points”. • Axioms are basic , fundamental true statements. • Theorems are based on the assumption of some certain sets of underlying axioms. Euclid established the truth of many additional propositions by providing ‘ proofs’. Theorem:A theorem is a statement that follows logically from statements we have already established or taken as given. Proof:A proof is a sequence of logical deductions from axioms and previously proved statements that concludes with the proposition in question. A lemma is a preliminary proposition useful for proving later propositions. A corollary is a proposition that follows in just a few logical steps from a theorem. • A statement that we intend to prove is called a claim. • A statement that we can’t yet prove but that we suspect is true is called a conjecture. 13-09-2024 Prof. A Choudhury 25
  • 26. Axiomatic approach • Euclid’s axioms and proof approach • Foundation of mathematics • ZFC axioms together with a few logicaldeduction rules, appear to be sufficient to derive essentially all of mathematics. Example: The axioms of Euclidean Plane geometry. Counterexample:A particular value that shows a statement to be false is called a counterexample to the statement. Example: “ Every prime number is an odd number”. Counterexample: 9 is not a prime. 13-09-2024 Prof. A Choudhury 26
  • 27. The Axioms of Euclidean Plane geometry. 1. A straight line may be drawn between any two points. 2. Any terminated straight line may be extended indefinitely. 3. A circle may be drawn with any given point as center and any given radius. 4. All right angles are equal. 5. If two straight lines in a plane are met by another line, and if the sum of the internal angles on one side is less than two right angles, then the straight lines will meet if extended sufficiently on the side on which the sum of the angles is less than two right angles. 13-09-2024 Prof. A Choudhury 27
  • 29. Well known theorems and conjectures 1. Euler’s Conjecture 2. Four colour theorem 3. Goldbach’s conjecture 4. Fermat’s last theorem 5. Claim: The equality 313(x3+y3)=z 3 , x, y, z∈ Z + has no solution. 13-09-2024 Prof. A Choudhury 29
  • 30. Proving an “implication” “ If p then q.” Example1: If 0≤x≤ 2, then –x3 +4x+1 >0. Example 2: If r is irrational then √r is irrational. Method #1:Direct proof Method #2:Prove the contrapositive 13-09-2024 Prof. A Choudhury 30
  • 31. Proving ”if and only if” “If p then q and if q then p” . Example1: Two triangles have the same side lengths if and only if two side lengths and the angle between those sides are the same. Example 2: For every integer n, 6|n if and only if 3|n and 2|n. Method #1:Prove Each Statement Implies the Other Method#2: Construct a Chain of iff arguments 13-09-2024 Prof. A Choudhury 31
  • 32. Other methods of proofs • Proofs by cases • Proof by contradiction Example: 1.Prove that √3 is an irrational number. 2. If x is a real number such that 𝑥2−1 𝑥+2 >0, then either x>1 or -2<x<-1. 13-09-2024 Prof. A Choudhury 32
  • 33. Annexure A- logical equivalences 1. ~𝑝 ∨ 𝑞 ≡ 𝑝 → 𝑞 (𝑖𝑚𝑝𝑙𝑖𝑐𝑎𝑡𝑖𝑜𝑛) 2. ~ ~𝑝 ≡ 𝑝( 𝑑𝑜𝑢𝑏𝑙𝑒 𝑛𝑒𝑔𝑎𝑡𝑖𝑜𝑛) 3. ~ 𝑝 → 𝑞 ≡ 𝑝 ∧ ∼ 𝑞 𝑛𝑒𝑔𝑎𝑡𝑖𝑜𝑛 𝑜𝑓 𝑖𝑚𝑝𝑙𝑖𝑐𝑎𝑡𝑖𝑜𝑛 4. ∼ 𝑝 ∧ 𝑞 ≡∼ 𝑝 ∨∼ 𝑞 ; ∼ 𝑝 ∨ 𝑞 ≡∼ 𝑝 ∧∼ 𝑞 𝐷𝑒𝑀𝑜𝑟𝑔𝑎𝑛′ 𝑠 𝑙𝑎𝑤𝑠 5. 𝑝 ∨ 𝑝 ≡ 𝑝; 𝑝 ∧ 𝑝 ≡ 𝑝 𝐿𝑎𝑤 𝑜𝑓 𝑖𝑑𝑒𝑚𝑝𝑜𝑡𝑒𝑛𝑐𝑒 6. 𝑝 ∨ 𝑝 ∧ 𝑞 ≡ 𝑝; 𝑝 ∧ 𝑝 ∨ 𝑞 ≡ 𝑝 𝐿𝑎𝑤 𝑜𝑓 𝑎𝑏𝑠𝑜𝑟𝑝𝑡𝑖𝑜𝑛 7. 𝑝 ∨ 𝑞 ≡ 𝑞 ∨ 𝑝; 𝑝 ∧ 𝑞 ≡ 𝑞 ∧ 𝑝 𝐶𝑜𝑚𝑚𝑢𝑡𝑎𝑡𝑖𝑣𝑒 𝑙𝑎𝑤 8. 𝑝 ∨ 𝑞 ∨ 𝑟 ≡ 𝑝 ∨ 𝑞 ∨ 𝑟; 𝑝 ∧ 𝑞 ∧ 𝑟 ≡ 𝑝 ∧ 𝑞 ∧ 𝑟 𝐴𝑠𝑠𝑜𝑐𝑖𝑎𝑡𝑖𝑣𝑒 𝑙𝑎𝑤 9. 𝑝 ∨ 𝑞 ∧ 𝑟 ≡ 𝑝 ∨ 𝑞 ∧ 𝑝 ∨ 𝑟 ; 𝑝 ∧ 𝑞 ∨ 𝑟 ≡ 𝑝 ∧ 𝑞 ∧ 𝑝 ∧ 𝑟 𝐷𝑖𝑠𝑡𝑟𝑖𝑏𝑢𝑡𝑖𝑣𝑒 𝑙𝑎𝑤 13-09-2024 Prof. A Choudhury 33
  • 34. 13-09-2024 Prof. A Choudhury 34