I need help with a probability problem and how to simulate it in a program.
A large number of people are individually asked a series of difficult questions. Statistics show that 40% of people who answered a question correctly also answered the next question correctly. 35% of those who answered a question correctly also answered the question that followed the next question correctly.
What is the probability of someone answering a question correctly, if:
a) they answered both previous questions correctly
b) they answered the previous question correctly, but the one before incorrectly.
c) they answered the previous question incorrectly and the one before correctly.