Markov model to find the probability of a Pepsi drinker buying a Coke?

  • Context: Comp Sci 
  • Thread starter Thread starter shivajikobardan
  • Start date Start date
  • Tags Tags
    Model Probability
Click For Summary

Discussion Overview

The discussion revolves around the application of a Markov model to determine the probability of a Pepsi drinker purchasing Coke after a series of purchases. Participants explore different methods for calculating transition probabilities based on a transition probability matrix (TPM) and address potential ambiguities in the interpretation of the problem statement.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant presents a transition probability matrix and calculates the probability of a current Pepsi user purchasing Coke after four purchases, arriving at a value of 0.5625.
  • Another participant suggests an alternative method involving iterative multiplication of the current distribution with the TPM, concluding with a probability of 0.525 for the same scenario.
  • Some participants note that both methods are fundamentally similar, but the discrepancy arises from differing interpretations of the initial conditions of the problem.
  • Concerns are raised about the notation used in the calculations, particularly regarding the use of superscripts and subscripts for indexing and exponentiation.
  • One participant emphasizes the importance of careful interpretation of the problem statement to align with the assumptions made in the calculations.

Areas of Agreement / Disagreement

Participants generally agree that both methods are valid but disagree on the interpretation of the initial conditions, leading to different results. The discussion remains unresolved regarding which interpretation is correct.

Contextual Notes

There is uncertainty regarding the assumptions made about the initial state of the user (whether they are starting from a Pepsi purchase or not) and how this affects the calculations. The notation used in the calculations has also been a point of contention.

Who May Find This Useful

Readers interested in Markov models, probability theory, and mathematical reasoning in the context of consumer behavior may find this discussion relevant.

shivajikobardan
Messages
637
Reaction score
54
Homework Statement
Find the probability of using coke for a current pepsi user in 4th purchase?Markov Model problem.
Relevant Equations
Transition Probability Matrix
Design the markov model and transition matrix for the given data. Answer the following questions based on the mode.
a) If a person purchase coke now the probability of purchase of coke next time is 80%.
b) If a person purchases pepsi now the probability of purchasing pepsi next time is 70%.

Then,
Find the probability of using coke for a current pepsi user in 4th purchases-:

My solution-:
HDr4aemdDutK2uLMben_diGd5Af3mY-bqgJ0Wen7o3eKGIJ9bA.png

This is the transition diagram.

This is the transition probability matrix-:

ZVpkHg4Y44SaMj888ccO-GRMvvQ0X-WotF14kKK8fa4T29CqNQ.png

So, what I did was basically to Took this TPM(Transition Probability Matrix) to the power 4. My basis for doing this was this source-: https://www.math.pku.edu.cn/teachers/xirb/Courses/biostatistics/Biostatistics2016/Lecture4.pdf

So what I got was-:

2tDXdjLDJBMOrIea2wHw7iELOLlseZTVZ1_k0qxmkEdao2YGrE.png

Now I am assuming that the rows means FROM and column side means TO. And the first element of row and column is "Coke". So, to find from Pepsi to Coke, I'd go to second row and first column, the value would be 0.5625

But the problem is that, I've conflicting source which claims the answer is sth else-:

It solves it like this-:

P=TPM

p=Current distribution=[0 1]

Now, for 2nd purchase

p²=p*P=[0.3 0.7]

For 3rd purchase-:
p³=p² * P
=[0.45 0.55]

For 4th purchase-:
A9dwtswIXQQEelk8n02t87poHNOywHSbQ4dMAhJoggsd3cGMcs.png


=[0.525 0.475]

Thus, it concludes that the required answer is 0.525.

Which one is correct in your opinion?
 
Physics news on Phys.org
The two methods are identical, although the notation is apalling: who in their right mind uses superscript for indexation in this context? Do they use subscript for exponentiation?

The difference arises entirely from the interpretation of the question:
shivajikobardan said:
Find the probability of using coke for a current pepsi user in 4th purchase?
Does this mean ## p_0 = (0, 1) ## or ## p_1 = (0, 1) ## ? You interpret that as the former, and I agree with you, however the alternative solution has assumed the latter so what they are calling ## p^4 (!) ## is your ## p_3 ##.
 
  • Like
Likes   Reactions: FactChecker
pbuk said:
The two methods are identical, although the notation is apalling: who in their right mind uses superscript for indexation in this context? Do they use subscript for exponentiation?

The difference arises entirely from the interpretation of the question:

Does this mean ## p_0 = (0, 1) ## or ## p_1 = (0, 1) ## ? You interpret that as the former, and I agree with you, however the alternative solution has assumed the latter so what they are calling ## p^4 (!) ## is your ## p_3 ##.
The second TPM made by me was $TPM^4$
I am assuming that the rows are FROM and columns are TO
i.e row1, column1 is FROM Coke TO Coke i.e a coke eating guy again purchase coke.
But you're right. I've not seen a single textbooks about these examples so I'm also not sure why it's like that. I just tried to understand that pdf and solved accordingly.
 
I interpreted the question as you did, but as @pbuk points out, the book answer assumes that "a current pepsi user" implies that the first purchase was a pepsi. Therefore, it is asking for the probability after another 3 purchases. I think the book may be correct.
The important point is that your approach is correct. It is just a matter of being very careful of the problem statement.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
1K
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
10K
  • · Replies 1 ·
Replies
1
Views
3K