Skip to content

Commit 0dfa4b7

Browse files
committed
DOC: Misc fixes
1 parent 3545892 commit 0dfa4b7

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

quantecon/game_theory/game_generators/bimatrix_generators.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
2222
* Tournament Games (`tournament_game`): These games are constructed by
2323
Anbalagan et al. (2013) as games that do not have interim epsilon-Nash
24-
equilibria with constant cardinaliry supports for epsilon smaller than
24+
equilibria with constant cardinality supports for epsilon smaller than
2525
a certain threshold.
2626
27-
* Unit vector Games (`unit_vector_game`): These games are games where
27+
* Unit Vector Games (`unit_vector_game`): These games are games where
2828
the payoff matrix of one player consists of unit (column) vectors,
2929
used by Savani and von Stengel (2016) to construct instances that are
30-
hard, in temrs of computation complexity, both for the Lemke-Howson
30+
hard, in terms of computational complexity, both for the Lemke-Howson
3131
and support enumeration algorithms.
3232
3333
Large part of the code here is based on the C code available at
@@ -206,20 +206,20 @@ def ranking_game(n, steps=10, random_state=None):
206206
player with the higher score wins the first prize, whose value is 1,
207207
and the other player obtains the "second prize" of value 0; in the
208208
case of a tie, the first prize is split and each player receives a
209-
value 0.5. The payoff of a player is given by the value of the prize
210-
minus the cost of the effort.
209+
value of 0.5. The payoff of a player is given by the value of the
210+
prize minus the cost of the effort.
211211
212212
Parameters
213213
----------
214214
n : scalar(int)
215215
Number of actions, i.e, number of possible effort levels.
216216
steps : scalar(int), optional(default=10)
217-
Parameter determining the random step sizes for the scores and
218-
costs for each player: The step sizes for the scores are drawn
219-
from `1`, ..., `steps`, while those for the costs are multiples
220-
of `1/(n*steps)`, where the cost of effort level `0` is 0, and
221-
the maximum possible cost of effort level `n-1` is less than or
222-
equal to 1.
217+
Parameter determining the upper bound for the size of the random
218+
steps for the scores and costs for each player: The step sizes
219+
for the scores are drawn from `1`, ..., `steps`, while those for
220+
the costs are multiples of `1/(n*steps)`, where the cost of
221+
effort level `0` is 0, and the maximum possible cost of effort
222+
level `n-1` is less than or equal to 1.
223223
random_state : int or np.random.RandomState, optional
224224
Random seed (integer) or np.random.RandomState instance to set
225225
the initial state of the random number generator for
@@ -402,7 +402,7 @@ def tournament_game(n, k, random_state=None):
402402
player 0 is 1 if, in the tournament, the node chosen by player 0
403403
dominates all the nodes in the k-subset chosen by player 1. The
404404
payoff for player 1 is 1 if player 1's k-subset contains player 0's
405-
node.
405+
chosen node.
406406
407407
Parameters
408408
----------
@@ -423,8 +423,8 @@ def tournament_game(n, k, random_state=None):
423423
Notes
424424
-----
425425
The actions of player 1 are ordered according to the combinatorial
426-
number system [1]_, different from the order used in the original
427-
library in C.
426+
number system [1]_, which is different from the order used in the
427+
original library in C.
428428
429429
Examples
430430
--------

0 commit comments

Comments
 (0)