← Back to course
2/6
Week 04 Β· Representation and Reasoning

Tuesday

Reasoning: getting new answers
// From feature tables to decision trees
⏱ about 20 min

Tuesday: Reasoning, Getting New Answers

Raven pins a note above the console: "Satellites leave a streak. Comets are wide and fuzzy."

"Facts we already know," she says. "Now watch what we can figure out from them."

Rocket picks up card D. "Streak yes. So by the first fact, it is a satellite streak!"

Nova blinks her lights. "You just did reasoning," she says. "You started with known facts and a record, and got something new."

Raven smiles. "Sky Sorter needs to do that thousands of times without getting tired."

Rocket grabs the next card from the pile.

What is reasoning?

Reasoning means working out new information from what is already known.

In AI, reasoning algorithms use representations to do this.

Sky Sorter knows a few facts, written as rules. It also knows the features of one card.

From those two things, it can work out a label nobody wrote on the card.

Known fact (rule)Known recordNew information
If streak is yes, the object is a satellite streak.Card D: streak yesCard D is a satellite streak.
If size is 8 or more, the object is a comet.Card F: size 9Card F is a comet.
If size is 8 or more, the object is a comet.Card A: size 2Card A is not a comet.
REASON IT OUT
  • Read the question.
  • Tap your answer.
Rule: if size is 8 or more, it is a comet. Card C has size 12. What follows?
Rule: if streak is yes, it is a satellite streak. Card B has streak no. What follows?
Which two things does reasoning start from?

Real AI does not think like you

Nova is a story character, so she can chat and wonder.

Real AI is a tool people build. AI systems keep representations and use reasoning algorithms.

But they do not think the way a human does.

Sky Sorter only follows its rules on its numbers. It does not understand stars, and it can be wrong.

StatementTrue or false?
Reasoning works out new information from what is already known.?
A reasoning algorithm needs a representation to work on.?
Real AI thinks the same way a person does.?
If a rule is wrong, reasoning can reach a wrong answer.?
WHY THIS EXERCISEReasoning is only as good as the facts and the records it starts from.
HOW SKY SORTER REASONS ABOUT ONE CARD
  • ?Read the card's record from the table.
  • ?Check the record against the first rule.
  • ?If the rule fits, write the new label.
  • ?If not, move to the next rule.
WHY THIS EXERCISEReasoning is a step-by-step process, which makes it an algorithm.
Rule: if streak is yes, it is a satellite streak. Card D has streak yes. Type the label Sky Sorter reasons out.
WHY THIS EXERCISEA known rule plus a known record gives a new label.
Rule: if size is 8 or more, it is a comet. Card F has size 9. Label?
Same rule. Card E has size 3. Is it a comet? Type yes or no.
Reasoning gives ____ information from what is known.

Nice reasoning! Tomorrow you build a full decision tree in the Explorer Lab.

← Monday