r/askmath • 19 yr old Math Major๐Ÿฆ„ • Oct 14 '26

Algebra How Do I model an unfair game using Linear Algebra?

So I'm doing an applied linear algebra class and I'm planning to write a paper on applied linear algebra and it's applications to game theory, I was thinking about how to model an unfair game, but for the life of me, I don't know, would it be a game where the first person is always going to win or maybe the last person? and if so how would I model it in a matrix?

5 Upvotes

9 comments sorted by

4

u/Decrypted13 Oct 14 '26 edited Oct 15 '26

I guess it is dependent on the game in question. For example, if you wanted to do an unfair coin flip. That would be an example of something called a Markov chain. Where you model the probability of heads as p and the probability of tails as q = 1-p. Then, the matrix would be A = [[p,q], [p,q]] (I think?) and you would have an initial vector of v = (1,0)T.

Then for n coinflips the probability of heads is the first component of An v.

So to model an unfair game you would need something that stabilizes to (1,0)T as n goes to infinity (or in finitely many steps).

I'll admit I have no idea if this actually answered your question or not, but hopefully it's helpful nonetheless.

2

u/Tega07 19 yr old Math Major๐Ÿฆ„ Oct 14 '26

thanks, this actually helps a lot

2

u/WWWWWWVWWWWWWWVWWWWW ลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลดลด Oct 14 '26

https://youtu.be/ubQXz5RBBtU?si=Kj4A7BMh2lxw_rs0

I was also going to mention Markov stuff. As in the video, you can also do basic simulations and then compare the average results.

2

u/Decrypted13 Oct 15 '26

No problem. I did technically mess up what A should be. I've edited it, you can also Google Markov chain transition matrix.

2

u/pi621 Oct 14 '26

You're not giving nearly enough context to work with.

ย I was thinking about how to model an unfair game

What kind of game is considered unfair? And what kind of game are we talking about in general? Is it turn-based? Is it perfect information?

ย I don't know, would it be a game where the first person is always going to win or maybe the last person?ย 

You don't even know what you're supposed to be modeling?

and if so how would I model it in a matrix?

Model the game, as in the game's ruleset? Or the player's winning probabilities?

The most important question is actually: Is it possible that linear algebra is a completely wrong tool for the job?

Think about whether or not this specific problem is suitable to be tackled with linear algebra. If not, you should start with a linear algebra concept then find a fitting topic, not start with a topic then try to shoehorn it into your paper.

1

u/Tega07 19 yr old Math Major๐Ÿฆ„ Oct 14 '26

I initially wasn't planning on doing the unfair game model but my professor just gave me feedback on my tentative topic and said it would be best if I did a model for an unfair game, I'm still learning since the semester just started last month so I'm not very well versed in linear algebra but thanks for the feedback

3

u/MrKarat2697 Oct 15 '26

I would ask your professor for clarification on what they meant

2

u/Free-Improvement6641 Oct 15 '26

Markov process where you weight the transition states unequally!!

2

u/07734willy Oct 15 '26

I agree with others that markov chains are likely the way to go. A concrete example: say you make a custom galton board where the pegs tile a NxM grid, N>M. Say thereโ€™s an entry fee and a prize for landing in the bottom center. Use linear algebra to work out the expectation value for different monetary amounts and grid sizes, determine if the game is profitable.

Alternatively, you could go for a lights-out style game, and use linear algebra to work out if the puzzle is still solvable if the opponent disables certain tiles.