Control game: how to calculate market values?

Typically, players in a soccer manager game have market values. Managers sell their players according to these market values. They think, "Oh, the player is worth 3,000.00, so I’ll try to sell it for 3,500,000."

All players have three main qualities:

  • strength value (1-99)
  • maximum strength they can reach (1-99)
  • motivation (1-5)
  • current age (16-40 years)

Based on these values, I calculate the current market values. But I would like to calculate market values ​​dynamically in accordance with the transfers of players over the last period of time. How could I do this?

I have the above qualities, and the player translates the last period of time available for calculation.

How could I calculate this? Do I need to group the last transferred players by qualities and just take the average transfer price?

I hope you can help me.

alt text

Note: players = products / products, managers = users

+2
source share
3 answers

My suggestion: Define a distance function that takes the statistics of two players and returns the distance value. Now that you have the distance between them (which corresponds to the similarity between them), you can use the K-means algorithm to search for clusters of similar players.

For each cluster, you can take several values ​​that can help you calculate the so-called "market price" (for example, the average or median value).

, :

float distance(Player player1, Player player2){
    float distance = 0.0;

    distance += abs(player1.strength - player2.strength) / strengthRange;
    distance += abs(player1.maxStrength - player2.maxStrength) / maxStrength;
    distance += abs(player1.motivation - player2.motivation) / motivationRange;
    distance += abs(player1.age - player2.age) / ageRange;

    return distance;
}

, , k-:

  • .

  • . (, , , ). , , .

  • . , .

  • 2 3 , , , 3.

, , .

+7

, , (1) . 2-5 , ( ) .

(1) - , + -10 , + -3 + -2 . .

0

101 :

  • ( )
  • , , .

( ) (, ), , ( ) (.. , )

, The Game Theory, .

, .

0

Source: https://habr.com/ru/post/1715836/


All Articles