A Method for Illustrating Shogi Postmortems Using Results of Statistical Analysis of Kifu Data

. Kifu, which is a Japanese term for a game record for a shogi games, is considered as a special type of multi-dimensional time series data, because it consists of items indicating who moved a piece and where it was moved on a grid diagram. Because of its complexity, however, it is not easy for amateur or non-players of shogi to grasp or understand overall shogi games from it. In this study we suggest averages, variances, skewness of row numbers where pawns are put, numbers of times gold and silver generals and nights are moved, which are easily calculated and understandable without comprehensive knowledge of shogi game, as features of position of shogi games. And the usability of those features is shown by a result of discriminant analysis for winner of game based on those features. Further, a software for illustrating shogi postmortems using discriminant scores obtained from discriminant analysis of Kifu data are shown.


Introduction
Kifu, which is a Japanese term for a game record for a shogi games, is considered as a special type of multi-dimensional time series data, because it consists of items indicating who moved a piece and where it was moved on a grid diagram.In Kifu each move of piece is noted like "the first move, (3,6), pawn".Because of its complexity, however, it is not easy for amateur or non-players of shogi to grasp or understand overall shogi games from it.In this study we suggest to consider averages, variances and skewness of row numbers where pawns (FUs) are put, and times gold and silver generals (KIs and GIs) and nights (KEs) are moved as features of position of shogi games.Shogi game has been mainly studied in the field of artificial intelligence (AI) as related to the chess game study.In this field, "evaluation functions" [1] are frequently used when AIs evaluate which player or which of human player or computer is superior and determine the next move at a certain position.However, evaluation functions require us comprehensive knowledge of shogi game when we make AIs calculate from "features", "material" or "mobility" for examples.On the other hand, average, variance and skewness of row numbers where pawns (FUs) are put are simple statisti-cal indicators, which can be easily calculated.So in this study, we propose that average, variance and skewness of row numbers where pawns (FUs) are put, times gold and silver generals (KIs and GIs) and nights (KEs), which are all easily calculated and understandable without comprehensive knowledge of shogi game, as features of shogi games (Section 2).And we show the usability of proposed features by a result of discriminant analysis of winner/looser based on kifu data (Section 3).
So far, the aim of shogi game study concerning AI is to make computer software win against first-rate professional shogi players [2].However, the strengthening promotion committee "Akara", which was a computer software developed by a project team organized by IPSJ (the information society of Japan) or "Ponanza" produced great results [3], which means that the shogi game study concerning AI has achieved most of its aims [4].Hence, studies of methods concerned with entertainment, methods for conducting a post-mortem for an example, may become more important [5] recently.So in this study, we suggest a method for illustrating shogi postmortems using discriminant scores obtained from discriminant analysis of Kifu data, and show its usability by introducing a software incorporated with the suggested method (Section 3).
In the above, though averages ( ) are indicators calculated for i , that is, every move, whole game are analyzed rather than every move in this study.Hence, let's consider every 10 moves as "phase".In addition, numbers of moves from the first move to the end/resigned move are different among games.So let's consider ( ) calculated for 40 moves from the first move to the end/resigned move as features of whole game, that is, moves from the first to the 10 th as the first phase, moves from the 11 th to the 20 th as the second phase, moves from the 21 th to the 30 th as the third phase and moves from the 31 th to the 40 th as the fourth phase and ( ) 10 ( ) for 1, 2,3, 4 l  , as features for whole games.In addition to the above, consider numbers of times gold and silver generals (KIs and GIs) and nights (KEs) are moved calculated by , " s i l v e r " ) as features of position of shogi games, where ( ) indicates the i -th character and "string") indicates the number of characters in string "string" .

Result of Discriminant Analysis of Winner/Looser Based on Kifu Data
Now let us consider a discriminant function: ) where ( ) , l m a  are discriminant coefficients c is a constant and m z are discriminant scores.In the discriminant analysis using the function (4), the white player (the first move) is discriminated as a winner when 0 m z  and the black player (the defensive move) is discriminated as a winner when 0 m z  .Table 1 indicates the accuracy of discriminant function (4) estimated based the kihu data for 50 shogi games ( 50 M  ) form the 14 th Young Lion Tournament is shown, Because the number of parameters to be estimated is 4 6 2 28    , which is around 3/5 of the number of games, discriminant coefficients are estimated with the forward selection method by 2 F  .As indicated on the table, the estimated discriminant function is significant to some extent because the percentage of correct classifications is 84 %, and it is found that the estimated discriminant function is significant to some extent.times black moves silver in the 4th phase : (2) 4,m g , skewess of pawn (FU) for black in the 3rd phase : (2) 3,m p  , times white moves nights (KEs) in the 2nd phase : (1) 2,m n , variance of pawns (FUs) for black in the 2nd phase : (2) 2,m p  , variance of pawns (FUs) for white in the 2nd phase : (1) 2,m p  , times white moves nights (KEs) in the 4th phase : (1) 4,m n .The followings are found from the above results:  the probability that white players (the first move) win games increases if numbers of times black players (the defensive move) move silver generals (KIs) from the 31 th to the 40 th moves, skewness of row numbers where pawns (FUs) are put for black players (the defensive move) from the 21 th to the 30 th moves, variances of row numbers where pawns (FUs) are put for black players (the defensive move) from the 11 th to the 20 th moves and variances of row numbers where pawns (FUs) are put for white players (the first move) from the 11 th to the 20 th moves increase,  the probability that black players (the defensive move) win games increase if numbers of times white players (the first move) move nights (KEs) from the 11 th to the 20 th moves and numbers of times white players (the first move) move nights (KEs) from the 31 th to the 40 th moves increase.In this section, we suggest a method for conducting shogi postmortems using discriminant scores obtained from discriminant analysis of Kifu data, and show the usability of the proposed method by introducing a software incorporated with the suggested method.Discriminant scores are calculated for every game and not ones indicating which player is superior at a certain position.However, in our data used for discriminant analysis, explanatory valuables are given by phase ( ).So, we calculate discriminant scores separately by phase 1, 2,3, 4 and consider , l m z as scores indicating which player is superior, that is, white player . Further, we divide , l m z into ones concerning movement of pawns (FUs): and one concerning movement of gold, silver generals (KIs, GIs) and nights (KEs) : .In the figure, the final match between Satoshi Murayama vs. Manabu Senzaki at the 14 th Young Lion Tournament on the 22nd in October, 1991 is illustrated.Fig. 1 illustrates that the black player (the defensive move) was superior to the white player before his 20 th move, and Fig 2 is illustrating that the white player became superior after the 60 th move because of his way of moving pawns, from which the significance of the suggested method for illustrating shogi postmortems may be shown.

Concluding Remarks
In this article, average, variance and skewness of row numbers where pawns (FUs) are put, in addition to times gold and silver generals (KIs and GIs) and nights (KEs) were proposed as features of shogi games and their significance as features was shown by the result of discriminant analysis of actual Kifu data base on the proposed features.In addition, a software developed for illustrating shogi postmortems was introduced and usability of proposed features was shown.Sawa and Ito [6] showed what kinds of features determined people's impression for play style base on their result of statistical analysis of Kifu data.In their study they use the numbers of times players move gold and silver generals (KIs and GIs) and nights (KEs).In this their study has something to do with our study.However, our way of studying is different from theirs in the meaning that we consider the numbers of times players move gold and silver generals (KIs and GIs) and nights (KEs) as a time series by dividing games into phases consisting of 10 moves.
The aim of this study illustrate important point or move determining winners of shogi games, average, variance and skewness of row numbers where pawns (FUs) are put and times gold and silver generals (KIs and GIs) and nights (KEs) are moved may be too simple to determine winner of games [7].So our next aim is to seek other features to determine winners of games and incorporate such features into our software for illustrating shogi postmortems.

Fig 1
Fig 1 indicate the images of developed software for illustrating shogi postmortems using , l m z , ( ) , p l m z and ( ) , gsn l m z .In the figure, the final match between Satoshi Muraya-

Fig 1 .
Fig 1. Illustration of the final match between Satoshi Murayama vs. Manabu Senzaki at the 14 th Young Lion Tournament on the 22nd in October, 1991 at the 80 th move

Table 1 .
Accuracy of discriminant analysis with the forward selection method by

Table 2 .
Estimates of the discriminant coefficients estimated with with the forward selection method by 2 F 