- #1
EulerInt
- 7
- 0
Hi everyone,
I'm more of a programmer than a mathematician/physicist. However, my query on google and such, led me here and I think someone might be able to help me. I'm trying to create a program that guesses the next colour the user will select, based on previous selections. I've come across Markov Chains, and this seems like the tool I need. However, after reading a lot on the theory, I'm having difficulty in implementing it. Basically, I have five colours. (Red, Green, Blue, Yellow, Black). The user selects a colour, then another one and so on. After N amount of colours chosen, the user selects "predict". I want the program to then guess what the next colour would most likely be based on the previous selections. How do I calculate the values of the transition matrix each time the user selects a colour? And how do I allow the program 'learn' that the user likes a particular order? Sorry if this isn't enough information, but I'll be happy to elaborate on any points I've missed.
Thanks for any help
I'm more of a programmer than a mathematician/physicist. However, my query on google and such, led me here and I think someone might be able to help me. I'm trying to create a program that guesses the next colour the user will select, based on previous selections. I've come across Markov Chains, and this seems like the tool I need. However, after reading a lot on the theory, I'm having difficulty in implementing it. Basically, I have five colours. (Red, Green, Blue, Yellow, Black). The user selects a colour, then another one and so on. After N amount of colours chosen, the user selects "predict". I want the program to then guess what the next colour would most likely be based on the previous selections. How do I calculate the values of the transition matrix each time the user selects a colour? And how do I allow the program 'learn' that the user likes a particular order? Sorry if this isn't enough information, but I'll be happy to elaborate on any points I've missed.
Thanks for any help