Anything that perceives its environment through sensors and acts on it through actuators
2
New cards
Percept
What the agent senses at a single moment
3
New cards
Percept sequence
The complete history of everything the agent has perceived so far
4
New cards
Agent function
A mapping from every possible percept sequence to an action
5
New cards
Rational agent
An agent that, for each percept sequence, picks the action expected to maximize its performance measure, given its percepts so far and its built-in knowledge
6
New cards
Performance measure
The criterion that scores how successful the agent's behavior is; it should be based on the desired state of the environment, not on how we think the agent should act
7
New cards
Rational vs omniscient
Rational maximizes expected performance with available information; omniscient knows the actual outcome ahead of time; rational agents are not required to be omniscient
8
New cards
PEAS
Performance measure, Environment, Actuators, Sensors; used to specify a task environment
9
New cards
Fully observable
The agent's sensors give it the complete relevant state of the environment at each point in time
10
New cards
Partially observable
The agent's sensors give only part of the state, or noisy information about it
11
New cards
Deterministic
The next state is completely determined by the current state and the action
12
New cards
Stochastic
The next state is uncertain, described by probabilities
13
New cards
Episodic
Experience is split into independent episodes; the current action does not affect future episodes
14
New cards
Sequential
The current decision can affect all future decisions
15
New cards
Static
The environment does not change while the agent is deciding
16
New cards
Dynamic
The environment can change while the agent is deciding
17
New cards
Discrete
A finite number of distinct states, percepts and actions
18
New cards
Continuous
States, time, percepts or actions take values from a continuous range
19
New cards
Single agent
Only one agent acts in the environment
20
New cards
Multiagent
Multiple agents act, either competing or cooperating
21
New cards
Knowledge base
A set of sentences in a formal language that represent what the agent knows
22
New cards
Model
A possible world, meaning an assignment of true or false to every symbol
23
New cards
Entailment
KB entails a sentence if the sentence is true in every model where the KB is true
24
New cards
Truth table
A table listing every combination of truth values for the symbols, used to check entailment or validity
25
New cards
Implication P → Q
False only when P is true and Q is false; true otherwise
26
New cards
Modus ponens
From P → Q and P, conclude Q
27
New cards
Modus tollens
From P → Q and not Q, conclude not P
28
New cards
Sound inference
Only derives sentences that are actually entailed
29
New cards
Complete inference
Can derive every sentence that is entailed
30
New cards
Expert system
A rule based AI system that encodes domain expert knowledge as if/then rules plus an inference engine
31
New cards
Forward chaining
Data driven inference: start from known facts, fire rules whose premises are all known, add their conclusions, repeat until nothing new can be added
32
New cards
Backward chaining
Goal driven inference: start from the query and work backward through rules to see if its premises can be proven
33
New cards
34
New cards
Random variable
A variable whose value is an outcome of an uncertain event
35
New cards
Probability distribution
An assignment of probabilities to every value of a random variable, summing to 1
36
New cards
Joint probability
The probability that two or more events happen together, P(A, B)
37
New cards
Conditional probability
The probability of A given that B is known to be true, P(A
38
New cards
Marginal probability
The probability of one variable alone, found by summing the joint over the other variables
39
New cards
Marginalization
Summing out variables: P(A) = sum over b of P(A, b)
40
New cards
Product rule
P(A, B) = P(A
41
New cards
Chain rule
P(A, B, C) = P(A) P(B
42
New cards
Law of total probability
P(A) = sum over b of P(A
43
New cards
Bayes' rule
P(A
44
New cards
Prior
The probability of a hypothesis before seeing evidence, P(H)
45
New cards
Likelihood
The probability of the evidence given the hypothesis, P(E
46
New cards
Posterior
The updated probability of a hypothesis after seeing evidence, P(H
47
New cards
Normalization
Dividing unnormalized values by their sum so the probabilities add to 1; written with alpha
48
New cards
Independence
A and B are independent if P(A, B) = P(A) P(B), equivalently P(A
49
New cards
Conditional independence
A and B are independent given C if P(A, B
50
New cards
Naive Bayes
A classifier that assumes all features are conditionally independent given the class: P(class
51
New cards
Base rate fallacy
Ignoring a low prior, so a positive test is wrongly assumed to mean the hypothesis is very likely
52
New cards
53
New cards
Bayes network
A directed acyclic graph where nodes are random variables and edges show direct influence; each node has a CPT given its parents
54
New cards
DAG
Directed acyclic graph: edges have direction and there are no cycles
55
New cards
Parent node
A node with an edge pointing into another node; the child's probability is conditioned on it
56
New cards
CPT
Conditional probability table: gives P(node
57
New cards
Bayes net joint distribution
The full joint equals the product of each node's probability given its parents
58
New cards
Inference by enumeration
Computing a query by summing the full joint over all hidden variables, then normalizing
59
New cards
Common cause
One variable causes two others; the effects are dependent but become independent once the cause is known
60
New cards
Common effect
Two causes share an effect; the causes are independent but become dependent once the effect is known
61
New cards
Explaining away
When a common effect is observed, learning one cause is true lowers the probability of the other cause
62
New cards
Full joint size
n Boolean variables need 2^n minus 1 numbers to specify the full joint distribution
63
New cards
Bayes net size
Each Boolean node needs 2^k numbers, where k is its number of parents; usually far fewer than the full joint
64
New cards
65
New cards
MDP
Markov decision process: a sequential decision problem with states, actions, a transition model, a reward function, and a discount factor, in a fully observable stochastic environment
66
New cards
State
A description of the situation the agent is in
67
New cards
Terminal state
A state where the process ends; it has a fixed utility
68
New cards
Transition probability
P(s'
69
New cards
Reward function
R(s): the immediate reward for being in state s
70
New cards
Policy
π(s): a mapping from every state to the action the agent will take there
71
New cards
Optimal policy
π*: the policy that maximizes expected utility from every state
72
New cards
Utility of a state
U(s): the expected total discounted reward from starting in s and acting optimally
73
New cards
Discount factor
γ between 0 and 1 that weights future rewards less than immediate ones; γ near 0 makes the agent short sighted, γ near 1 makes it far sighted
74
New cards
Markov property
The next state depends only on the current state and action, not on the history of earlier states
75
New cards
Bellman equation
U(s) = R(s) + γ max over a of sum over s' of P(s'
76
New cards
Value iteration
Repeatedly applies the Bellman update to all state utilities until they converge, then extracts the policy
77
New cards
Policy evaluation
Computing the utility of each state under a fixed policy; no max, so it is a system of linear equations
78
New cards
Policy improvement
Updating the policy in each state to the action with the highest expected utility under the current utilities
79
New cards
Policy iteration
Alternates policy evaluation and policy improvement; stops when the policy no longer changes
80
New cards
Value iteration stopping
Stops when utilities change less than a small threshold between iterations
81
New cards
Policy iteration stopping
Stops when policy improvement produces no change in the policy
82
New cards
Living reward
The reward for non terminal states; very negative pushes the agent to end fast, positive makes it avoid ending
83
New cards
84
New cards
Reinforcement learning
Learning a policy from rewards received through trial and error, without being given the transition model or reward function
85
New cards
Q value
Q(s, a): the expected utility of taking action a in state s and acting optimally afterward
86
New cards
Q learning
Model free RL that updates Q(s, a) ← Q(s, a) + α [r + γ max over a' of Q(s', a') minus Q(s, a)]
87
New cards
Learning rate
α: how far each update moves the old estimate toward the new sample
88
New cards
TD target
r + γ max over a' of Q(s', a'): the sampled estimate of the value of Q(s, a)
89
New cards
TD error
The TD target minus the current Q(s, a)
90
New cards
Model free
Learns values or policies directly from experience without knowing or learning P(s'
91
New cards
Model based
Uses or learns the transition model and reward function, as in value or policy iteration
92
New cards
Exploration
Trying actions that may not look best to gather information about them
93
New cards
Exploitation
Choosing the action currently believed to be best
94
New cards
Epsilon greedy
With probability ε pick a random action, otherwise pick the action with the highest Q value
95
New cards
Why explore
Without exploration the agent can get stuck on a suboptimal action because it never learns the true values of others
96
New cards
97
New cards
HMM
Hidden Markov model: a temporal model with hidden states that evolve over time and produce observable evidence
98
New cards
Hidden state
X_t: the true state at time t that cannot be observed directly