# r markov chain markov property on binary variable, discrete time

i have a sequence of 1/0's indicating if patient is in remission or not,

assume the records of remission or not were taken at discrete times,

how can i check the markov property for each patient, then summarize the findings, that is the assumption that the probability of remission for any patient at any time depends only if the patient had remission the last time/not remission last time(same as thing as saying probability of remission for any patient at any time depends only if the patient had remission in the previous row, well if not first observation)

P(r at t=t+1|r=1 at t)=p(r at t+1|r=1 at t, r=0 at t=t-1, r=1 at t=t-2, r=1 at t=t-3)

easy to understand if you understand the markov property

this is an exercept of my df

patientId remission

ju67       1

ju67       0

ju67       0

ju88       1

ju88       1

ju23       1

ju23       0