P(day == Monday) = 0.4Answer:
P(day == Tuesday) = 0.4
P(day == Wednesday) = 0.2
Yes.
P(day == Monday) = 0.4Answer:
P(day == Tuesday) = 0.4
P(day == Wednesday) = 0.2
P(day == Thursday) = 0.1
No, because the sum of probabilities is 1.1, it should be 1.
P(x) = 0.1, if 10 <= x <= 20.Answer:
P(x) = 0 otherwise.
Yes.
P(x) = 0.01, if 10 <= x <= 20.Answer:
P(x) = 0 otherwise.
No, because the integral of P from -infinity to + infinity is 0.1, it should be 1.
P(alarm | fire) = AAnswer:
P(alarm | not fire) = B
P(fire) = C
P(fire | alarm) = P(alarm | fire) * P(fire) / P(alarm) = A * C / P(alarm).So, if we set D = P(alarm) = A * C + B * (1 - C), our final answer is:
P(alarm) = P(alarm, fire) + P(alarm, not fire)
= P(alarm | fire) * P(fire) + P(alarm | not fire) * P(not fire) =
= A * C + B * (1 - C)
P(fire | alarm) = A * C / D
P(fire) = 0.1
P(earthquake) = 0.2
P(flood) = 0.4
Answer:
No, if we do not know whether fire, earthquake, and flood, are independent events, then we would need some additional information (such as a joint distribution table) to compute P(fire and earthquake and flood).
Answer:
Yes.
P(fire and earthquake and flood) = P(fire) * P(earthquake) * P(flood) = 0.1 * 0.2 * 0.4 = 0.008.
Answer:
No, if we know that fire, earthquake, and flood are not independent events, then we would need some additional information (such as a joint distribution table) to compute P(fire and earthquake and flood).
Commute time 40-60 Fahrenheit 60-80 Fahrenheit above 80 Fahrenheit
< 20 min 0.1 0.05 0.1
20-40 min 0.2 0.1 0.1
> 40 min 0.05 0.1 0.2
Answer:
P(commute time < 20 min | temperature > 80) = P(commute time < 20 min AND temperature > 80) / P(temperature > 80)
P(commute time < 20 min AND temperature > 80) = 0.1
P(temperature > 80) = 0.1 + 0.1 + 0.2 = 0.4
P(commute time < 20 min | temperature > 80) = 0.1 / 0.4 = 0.25
Answer:
We expect that P(Earthquake | Alarm) is larger than P(Earthquake | Alarm and Burglary). Burglary and Earthquake are competing causes for the Alarm event. Given that Alarm is true, if we know that one possible cause (Burglary) is true, the other competing cause (Earthquake) becomes less likely.
Answer:
P(Earthquake | Alarm) is equal to P(Earthquake | Alarm and MaryCalls). Earthquake and MaryCalls are conditionally independent given the value for the Alarm event.
Answer:
We call "parent" the node with the 100 training examples, "child1" the child node that receives the examples where the age is over 35 years, and child2 the child node that receives the examples where the age is under 35. Node child1 receives 42 examples, and node child2 receives 58 examples. We denote by log2(x) the logarithm base 2 of x. Then:
Entropy gain = Entropy(parent) - 42/100 * Entropy(child1) - 58/100 * Entropy(child2).
Entropy(parent) = -0.4 * log2(0.4) - 0.6 * log2(0.6) = 0.971
Entropy(child1) = -(30/42) * log2(30/42) - (12/42) * log2(12/42) = 0.8631
Entropy(child2) = -(10/58) * log2(10/58) - (48/58) * log2(48/58) = 0.6632
Entropy gain = Entropy(parent) - 42/100 * Entropy(child1) - 58/100 * Entropy(child2)
= 0.971 - 0.42 * .8631 - 0.58 * 0.6632
=> Entropy gain = 0.2238
Answer:
If there are no duplicate training examples (i.e., if no two training examples have exactly the same values for all attributes), then the answer is yes. If there are two training examples with exactly the same values for all attributes but different class labels, then the answer is no.
Answer:
P(A | vanilla) = P(vanilla | A) * P(A) / P(vanilla) = 0.2 * 0.99 / P(vanilla)Consequently:
P(vanilla) = P(vanilla AND A) + P(vanilla AND B)
= P(vanilla | A) * P(A) + P(vanilla | B) * P(B)
= 0.2 * 0.99 + 0.6 * 0.01
= 0.2040
P(A | vanilla) = P(vanilla | A) * P(A) / P(vanilla) = 0.2 * 0.99 / 0.204 = 0.9706
Answer:
Fly(P1, JFK, SFO)
Fly(P2, SFO, JFK)
Fly(P1, JFK, JFK)
Fly(P2, SFO,SFO)
Answer:
We would replace the effect of the move action shown on that figure with the following effect:
(On(b, y) and Clear(x) and (not On(b, x)) and (not Clear(y))) or
(On(b, table) and Clear(x) and (not (On(b, x))))
Initial state:Is there a conditional plan that achieves this goal with guaranteed success? If yes, list the sequence of actions in that plan. If no, explain why not.
On(A, Table) and On(B, Table) and On(C, Table) and Block(A)
and Block(B) and Block(C) and Clear(A) and Clear(B) and Clear(C)
Goal:
On(A, B) and On(B, C)
Answer:
No, there is no conditional plan that guarantees success, because it is theoretically possible that an infinite number of moves be required to successfully move a block on top of another block.