Machine Learning interview questions-what is difference between generative and discriminative model

Machine Learning interview questions

What’s the difference between a generative and discriminative

X Y
2 3
1 2
2 3
1 3

P(X,Y) P(Y|X) Conditionl
Genrative Discriminative

Y = 2 Y = 3 Y = 2 Y = 3
X = 1 1/4 1/4 X = 1 1/2 1/2
X = 2 0 2/4=1/2 X = 2 0 2/2=1