Presentation is loading. Please wait.

Presentation is loading. Please wait.

Logic & Reasoning What is reasoning? Reasoning is arriving at new beliefs based on old beliefs. That is: Using premises (old beliefs) to reach conclusions.

Similar presentations


Presentation on theme: "Logic & Reasoning What is reasoning? Reasoning is arriving at new beliefs based on old beliefs. That is: Using premises (old beliefs) to reach conclusions."— Presentation transcript:

1 Logic & Reasoning What is reasoning? Reasoning is arriving at new beliefs based on old beliefs. That is: Using premises (old beliefs) to reach conclusions (new beliefs) Using beliefs about experiences to form beliefs about the world. How do we create new beliefs from old beliefs? Two main ways: Deductive Logic: Reasoning where the conclusion is guaranteed to be true, given the premises. Inductive Logic: Reasoning where the conclusion is likely to be true, given the premises.

2 Deductive Logic / Reasoning A valid deductive argument: B1: If you have had 5 beers in the last half hour, then you are drunk. B2: If you are drunk and you are driving, then you are breaking the law. B3: You have had 5 beers in the last half hour. B4: You are driving. B*: You are breaking the law. If you know B1-B4 to be true, then you can adopt new belief B* with certainty: it must be true!

3 Deductive Logic / Reasoning A valid deductive argument: B1: If I say the word “Balumbo”, then I will get a million dollars B2: I say the word “Balumbo” B*: I get a million dollars. Whether or not an argument is TRUE is completely separate from whether the argument is VALID.

4 Deductive Logic / Reasoning An invalid deductive argument: B1: If my car uses gasoline, then it pollutes the environment. B2: My car pollutes the environment. B*: My car uses gasoline. Whether or not an argument is TRUE is completely separate from whether the argument is VALID.

5 Deductive Logic / Reasoning General form of an implication: B1: If X, then Y. B2: X B*: Y. modus ponens B1: If X, then Y. B2: not Y B*: not X. modus tollens

6 Deductive Logic / Reasoning General form of an implication: B1: If X, then Y. B2: X B*: Y. modus ponens B1: If it’s a nice day, then it is sunny. B2: It’s not sunny B*: It’s not a nice day. modus tollens

7 Wason’s Card Selection Task AD47 RULE: If a card has a vowel on one side, then it has an even number on the other side

8 Wason’s Card Selection Task beercoke2218 RULE: If a person is drinking beer, then that person must be 21 or over.

9 Wason’s Card Selection Task beercoke2218 RULE: If a person is drinking beer, then that person must be 21 or over.

10 Wason’s Card Selection Task AD47 RULE: If a card has a vowel on one side, then it has an even number on the other side

11 Wason’s Card Selection Task AD47 RULE: If a card has a vowel on one side, then it has an even number on the other side

12 Wason’s Card Selection Task AD47 RULE: If a card has a vowel on one side, then it has an even number on the other side modus ponens: If vowel, then check for even... modus tollens: If not even, then check for not vowel...

13 Wason’s Card Selection Task AD47 RULE: If a card has a vowel on one side, then it has an even number on the other side Mistake: affirming the consequent

14 Wason’s Card Selection Task AD47 RULE: If a card has a vowel on one side, then it has an even number on the other side Mistake: denying the antecedent

15 Wason’s Card Selection Task beercoke2218 Mistake: affirming the consequent RULE: If a person is drinking beer, then that person must be 21 or over.

16 Deductive Logic / Reasoning Invalid deductive argument (affirming the consequent) B1: If the switch is turned on then the light will go on. B2: The light is on. B*: The switch was turned on B1: If X, then Y. B2: Y B*: X.

17 Deductive Logic / Reasoning A ________ syllogism: B1: All cat are mammals. B2: Some mammals are furry B*: Some cats are furry

18 Deductive Logic / Reasoning A invalid syllogism: B1: All cat are mammals. B2: Some mammals are furry B*: Some cats are furry mammals cats furry

19 Deductive Logic / Reasoning A invalid syllogism: B1: All cat are mammals. B2: Some mammals are furry B*: Some cats are furry mammals cats furry

20 Deductive Logic / Reasoning A ________ syllogism: B1: No addictive things are inexpensive. B2: Some cigarettes are inexpensive. B*: Some cigarettes are not addictive.

21 Deductive Logic / Reasoning A valid syllogism: B1: No addictive things are inexpensive. B2: Some cigarettes are inexpensive. B*: Some cigarettes are not addictive. addictive thingsinexpensive things cigarettes

22 Deductive Logic / Reasoning Invalid deductive argument B1: If the switch is turned on then the light will go on. B2: The light is on. B*: The switch was turned on Knowing B2 to be true increases the likelihood of B*.

23 Logic & Reasoning What is reasoning? Reasoning is arriving at new beliefs based on old beliefs. That is: Using premises (old beliefs) to reach conclusions (new beliefs) Using beliefs about experiences to form beliefs about the world. How do we create new beliefs from old beliefs? Two main ways: Deductive Logic: Reasoning where the conclusion is guaranteed to be true, given the premises. Inductive Logic: Reasoning where the conclusion is likely to be true, given the premises.

24 Inductive Logic / Reasoning A valid inductive argument: S1: Today, Psych 85 is exciting and fun! S2: Last class, Psych 85 was exciting and fun! S3: The class before, Psych 85 was exciting and fun! Therefore, next class, Psych 85 will be exciting and fun! This is enumerative induction: Every F seen so far has been a G, therefore all F’s are G’s, or at least the next F will be a G.

25 Enumerative Induction Vision: Non-Accidental Properties Each retinal pattern of type X I’ve seen so far has been caused by objects in the world of type Y, therefore, all retinal patterns of type X are caused by objects of type Y. Memory: Categorization Each thing with property X I’ve seen so far has been a Y, therefore, all things with property X are Y’s. Language: Learning of Grammatical Morphemes Each object-word I’ve seen so far can be made plural by adding -s, therefore, all object-words can be made plural by adding -s.

26 Enumerative Induction Classical Conditioning Each time Mr. Doggie has heard the bell ring, food has appeared, therefore, every time the bell rings, food will appear! The Hebb Rule raven unitblackness unit

27 Enumerative Induction Classical Conditioning Each time Mr. Doggie has heard the bell ring, food has appeared, therefore, every time the bell rings, food will appear! The Hebb Rule raven unitblackness unit

28 Enumerative Induction Maybe all induction is is association and pattern matching? It’s not that simple. There are limits to what can and can’t be associated… There are limits to what can be considered evidence. clicking bottle sweet water painnausea aversion no aversion

29 Enumerative Induction We are biased in what we consider “evidence” for beliefs. This is good. Consider the belief: All ravens are black. = All non-black things are non-ravens. If Raven then Black not Black not Raven Evidence that all ravens are black: Yellow cars Gray Chihuahuas Green toads...

30 Enumerative Induction Maybe all induction is is association and pattern matching, … with some biases about what can and can’t be learned. What about rules? What about non-enumerative induction? Other forms of induction: Forming the belief about the best possible explanation for a set of observations. Give the next number in the series: 1, 1, 2, 3, 5, 8, 13, ___

31 Enumerative Induction Maybe all induction is is association and pattern matching, … with some biases about what can and can’t be learned. What about rules? What about non-enumerative induction? Other forms of induction: Forming the belief about the best possible explanation for a set of observations. Give the next number in the series: 1, 1, 2, 3, 5, 8, 13, 0, 0, 0,... Problem of Induction: How do we ever know what the “best explanation” is for a given set of data?

32 Problem Solving Well-defined problems: A set of possible states that define a problem space A clearly defined initial state and goal state A set of operators that move you between states And any path constraints that tell you what kinds of solutions are acceptable

33 The states are the stops The operators are the trains The path constraint is you want to get there as quickly as possible Solving the problem involves a search.

34 The states are the stops The operators are the trains The path constraint is you want to get there as quickly as possible Solving the problem involves a search.

35 The states are the stops The operators are the trains The path constraint is you want to get there as quickly as possible Solving the problem involves a search.

36 Problem Solving Well-defined problems: A set of possible states that define a problem space A clearly defined initial state and goal state A set of operators that move you between states And any path constraints that tell you what kinds of solutions are acceptable Problems can be then solved by searching for different paths from the initial state to the goal state. …but we don’t have time for all that silliness!

37 Searching Problem Space Short-cuts in searching through problem space: Heuristic Search: Don’t search all pathways, just ones likely to be the shortest. Satisficing: Don’t look for the shortest, just look for one that is short enough. Means-Ends Analysis: Divide the problem up into sub-goals, that direct your search toward the goal.

38 Means-Ends Analysis 1) Compare the current state to the goal state (If they are the same, you’re done) 2) Find some operator that will make the difference between them smaller 3) If you can apply the operator, apply it! Otherwise, set up a sub-goal to make it so you can apply it 4) Go back to 1)

39 Tower of Hanoi Puzzle 1 2 3 4 A BC Stack[1]

40 Tower of Hanoi Puzzle 1 2 3 4 A BC Goal: Move stack[1] to peg C Production: disk[1] is not on peg C, and is not free  subgoal: move stack[2] to peg B Stack[1]

41 Tower of Hanoi Puzzle 1 2 3 4 A BC Goal: Move stack[2] to peg B Production: disk[2] is not on peg B, and is not free  subgoal: move stack[3] to peg C Stack[2]

42 Tower of Hanoi Puzzle 1 2 3 4 A BC Goal: Move stack[3] to peg C Production: disk[3] is not on peg C, and is not free  subgoal: move stack[4] to peg B Stack[3]

43 Tower of Hanoi Puzzle 1 2 3 4 A BC Goal: Move stack[4] to peg B Production: disk[4] is not on peg B, but is free!  so move disk[4] to peg B Stack[4]

44 Tower of Hanoi Puzzle 1 2 3 4 A BC Goal: Move stack[4] to peg B Production: disk[4] is not on peg B, but is free!  so move disk[4] to peg B

45 Searching Problem Space Short-cuts in searching through problem space: Heuristic Search: Don’t search all pathways, just ones likely to be the shortest. Satisficing: Don’t look for the shortest, just look for one that is short enough. Means-Ends Analysis: Divide the problem up into sub-goals, that direct your search toward the goal.

46 Improving The Search What gets better with expertise: Chunking: States are represented in terms of meaningful arrangements, rather than individual pieces. Composition: Several separate steps in a process can be consolidated into a single step. Schemas: Experience with similar situations in the past can be used to guide new searches.

47 Problem Representation

48 Ill-Defined Problems “Insight Problems”

49 Ill-Defined Problems “Insight Problems”

50 Ill-Defined Problems “Insight Problems”

51 Ill-Defined Problems “Insight Problems”

52 Ill-Defined Problems “Insight Problems”

53 Ill-Defined Problems “Insight Problems” One morning, exactly at sunrise, a Buddhist monk began to climb a tall mountain. The narrow path, no more than a foot or two across, spiraled around the mountain to a glittering temple at the summit. The monk ascended the path at varying rates of speed, stopping many times along the way to rest and to eat dried fruit he carried with him. He reached the temple shortly before sunset. After several days of fasting, he began his journey back along the same path, again beginning exactly at sunrise, walking at variable speeds and resting along the way. Show that there is a time when the monk was at exactly the same spot at exactly the same time of day on each journey.

54 Ill-Defined Problems “Insight Problems”

55 Ill-Defined Problems “Insight Problems”

56 Ill-Defined Problems “Insight Problems” involve a sudden change in the mental representation of the problem space, rather than a search of paths within one problem space. How do we discover a new representation? Creativity: How do we find a totally new way of looking at something? Scientific Creativity often seems to make sure of abstract similarities between otherwise unrelated domains.

57 Analogy

58 “Light is to lamps as heat is to furnaces.” Light: helps vision electromagnetic waves […] Heat: can be felt speed of molecular movement […] (Light, Lamps): A comes out of B B is designed to increase the amount of A in a room […] (Heat, Furnaces): A comes out of B B is designed to increase the amount of A in a room […]

59 Analogy “Light is to lamps as heat is to furnaces.” “Atoms are like the Solar System.” Nucleus: positive charge too small to be seen between 1 and 100 AMU […] Sun: hot yellow millions of tons […] Electrons: negative charge too small to be seen have wavelike properties […] Planets: cold solid, with atmosphere sometimes have moons […]

60 Analogy “Light is to lamps as heat is to furnaces.” “Atoms are like the Solar System.” (Nucleus, Electrons): B revolves around A A is bigger than B A is more massive than B […] (Sun, Planets): B revolves around A A is bigger than B A is more massive than B […] The mapping aligns nucleus with sun, electrons with planets (even though individually these items are not similar)

61 Discovering New Representations Many problems can be solved simply by chosing a representation space and searching through it (with heuristics and other shortcuts) When the correct problem space is not obvious, or the chosen problem space isn’t working, we somehow have to generate a new representation of the problem space. One factor that can help determine what new representation should be used is analogy: finding a mapping between the problem and another domain. Whereas searching a space is step-by-step, gradual, and conscious, changing from one representation to another is sudden, and probably the result of parallel constraint satisfaction.


Download ppt "Logic & Reasoning What is reasoning? Reasoning is arriving at new beliefs based on old beliefs. That is: Using premises (old beliefs) to reach conclusions."

Similar presentations


Ads by Google