Accounting Games : Using Matrix Algebra in Creating the Accounting Models

The aim of this paper is to show the mathematical basis for a precise treatment of double-entry bookkeeping, which was first developed in the nineteenth century by Sir William Rowan Hamilton. This is done by using basic notions of matrix algebra founded on the idea of ordered pairs. We also reveal how complex numbers and rationals (fractions) developed in mainstream accounting science and became a leading platform for the ongoing processes within Industry 4.0. The paper concludes with examples of how accounting operations can be represented by matrix equations with the result of generating a final report. The author presents a mathematical model of accounting which is independent of specific existential forms, but which is capable of undertaking the form of any of them and thus which has the potential of being understood and accepted by specialists globally.


Introduction
The research published by Ellerman [1] highlighted the significance of mathematics in double-entry bookkeeping and noted the absence of relevant literature devoted to "the theoretical basis of a mathematical technique applied in business for over five centuries" [1].This started a research postulate that mathematics plays a significant role in the development of accounting theory and practice.Ellerman's study also described the suggestion by S. W. Hamilton [2] that a mathematical basis approach be used for a precise treatment of double-entry bookkeeping.Later, the research of Sangster and Scataglinibelghitar [3] addresses the evidence for the mathematical origins of accounting.An earlier review of the literature on matrix accounting was provided by Leech [4].The publications Leech described demonstrated how accounting matrices transformed typical approaches to accounting practice.Most named publications described the convenience of using mathematics in accounting practice.
Later, Stoner and Vysotskaya [5] described the practice of teaching accounting via a form of matrix mathematics at Southern Federal University, Russia.This method provided useful insights for accounting educators on an alternative way of explaining and understanding the basics of accounting.
Appreciation of the mathematical origins and in particular the use of transaction matrices in accounting, along with technological development, has facilitated the shift towards the new economical era-Industry 4.0.New approaches to doing business require the intensive development of accounting methods for use by enterprises.In the background of these processes, the value of accounting as a tool for business communication has been enhanced.In addition, the mathematical approach to accounting suggests using typical codification that helps with information security issues.
This article starts with a comprehensive literature review of matrix accounting research, which is followed by sections describing approaches to matrix modeling and a game-based example.The paper concludes with an evaluation of the usefulness of the suggested approach.

Literature Review
The following are considered among the highlights of publications on the mathematical approach to double-entry bookkeeping: Luca Pacioli's description of double-entry bookkeeping [6]; Sir William Hamilton's presentation of the ordered-pairs treatment of complex numbers; and Arthur Cayley's pamphlet on the mathematical origins of accounting [7].The matrix algebra approach to accounting starts with the matrix framework for accounting introduced by Augustus De Morgan in 1846.This approach was later developed, along with the development of the PC, in relevant software which allowed accounting practice to become faster and more reliable.
In his papers [20][21][22], Kolvakh especially examines the group of accounting matrix models, calling them "situational-matrix accounting".This approach appears to be able to combine the situational (or event-driven) nature of accounting with the means of matrix algebra, and consequently serves as a prototype of a mathematical model of accounting.
Research conducted by Vysotskaya [23,27] eliminates the need for modern developments in IT and technology in accounting practice, which should be transformed accordingly, and suggests using this approach in planning practice, e.g., in tax planning.
Finally, Stoner and Vysotskaya [5] examined the relevance of the mathematical approach to accounting to teaching practice, suggesting that alternative mathematical methods of presenting transactions and reports would be useful in providing students with an understanding of accounting basics.Later research by Vysotskaya, Kolvakh and Stoner [28] treated the mathematical accounting game used in teaching a basic accounting course in Russia.This game is useful for teaching students how to understand the basics of recording business transactions through an explanation using mathematics-based algorithmic methods.This kind of competence is important and was outlined by Smirnova, Sokolov and Emmanuel [29], Sangster [3], Vysotskaya, Kolvakh and Stoner [28].
There is certain recognition of accounting teaching based on game theory, since the American Institute of Chartered Professional Accountants supports teachers in their activities in engaging, entertaining and educating high school students by launching different successful classroom teaching methods.
The increasing influence of information technology (IT) on accounting started a debate on the importance of the use of modeling in accounting.In their report [30], the leadership program of the Institute of Chartered Accountants in England and Wales' Financial Reporting Faculty argued on the assumption that one way of relating the theory of the firm and accounting measurement is via firms' business models.Along with stating the potential importance of the business model in non-financial reporting, the report sheds light on the potential importance of business models in both financial and non-financial reporting and defines this as a topic of emerging interest.

Matrix Accounting Modeling Using Blocks of Matrices
The methods of accounting modeling (from recording transactions to financial reporting) basically repeat the steps implemented in practice by using certain numerical examples.However, the variety of accounting techniques complicates the conceptualization of the accounting system.The main assumption here relates to the evidence that one of the effective tools for creating accounting models can be mathematical modeling, in particular the one which uses the basic notions and operations of matrix algebra.
By using matrix algebra, we found it possible to: 1.
Record transactions and present the Ledger on their basis in the form of equivalent matrices.

2.
Transform the initial data into Trial Balances corresponding to their equivalents in the system of matrix algebra transactions.

3.
Relate the opening and closing account balances by means of the basic accounting equation in matrix form.

4.
Determine the formulae to receive the trial Balance.

5.
Determine a matrix model as a system of equivalents of the data presented by corresponding Trial Balances.
The foundations of the system considered below are the well-known categories of accounting such as correspondence of accounts and accounting entry.In this paper they are not defined in conventional terms, but are represented as mathematical concepts and operations of matrix algebra (Vysotskaya and Aleshin, 2013).We provide these definitions below.Definition 1.The correspondence matrix is a square matrix E(X,Y) with the dimensions m x m, where the point of intersection of the debit of account X and the credit of account Y is equal to 1, with other matrix elements equal to zero.Thus, the matrix-correspondence is indicated as E(X,Y), and its non-zero elements are always equal to 1 (E(X,Y) = 1).Definition 2. The entry matrix represents its connection with the sum of transaction by a correspondence matrix, as follows: The represented definitions of the correspondence matrix and entry matrix are here axioms which provide the foundations of further conceptual theory of matrix accounting.Here we use them as a basis for mathematical constructions with the elements of matrix algebra.Further, we obtain formulae to receive the Ledger Matrix (LM), as follows: where i is the number of the entry in the journal, S i is the sum of transactions corresponding to entry i, and E(X i ,Y i ) is a correspondence matrix referring to the entry i.
The formula of the Matrix of Debit Turnovers (MDT) is obtained from the Ledger Matrix (LM), as follows: Here S i XY is the total sum of the transaction referred to the given correspondence of accounts X,Y.In this case, where n represents the total number of the entries in the Ledger (the total of n XY of similar X,Y).The correspondence of accounts is equal to the total number of entries n in the Ledger.
The formula for the Matrix of Credit Turnovers (MCT) is a transposed matrix MDT, as follows: Here X,Y = c 1 , c 2 , . . ., c m are accounting symbols used to represent the matrix model of an accounting system, where S i XY is the total sum of the transaction referred to the accounts X,Y.In this case, where n is the total number of entries in the Ledger.
Here, an example for the Trial Balance in the form of "assets-liabilities-capital" grouping (ALC blocks) is represented as a Matrix of Trial Balance (MTB) and is structured as a block of matrices that consists of nine types of the blocks of matrices, as follows: AA-the matrix of "assets-assets" transactions; AL-the matrix of "assets-liabilities" transactions; LA-the matrix of "liabilities-assets" transactions; LL-the matrix of "liabilities-liabilities" transactions; CA-the matrix of "capital-assets" transactions; CC-the matrix of "capital-capital" transactions.
The basic equation of the Trial Balance (MTB) using the ALC-grouping is represented as follows.(Here the "0" subscript sign means the beginning of the period t − 1 = 0, the "1" sign means the end of the period t = 1.): By multiplying MTB on the corresponding block vector e, the equation of the General Ledger appears: Further, we provide the Trial Balance equation, as follows: From Equation ( 7) we can take the Trial Balance matrix with a certain structural change, as follows: Thus, with modification, Equation ( 9) is derived, which is connected with the closing liabilities, assets and capital accounts: The obtained modification (10), derived from the Equation ( 9) represents the the capital flow, assets and liabilities accounts at the end of the period: These blocks are built on the nine possible types of transactions.By providing Equations ( 8)-( 10), we represent the formulae for the quantitative evaluation of the dynamics of the Trial Balance.
The structure of the transposed matrix is formed in accordance with the rules of block matrices transposition: The transposed matrix (MCT) contains the data from the transactions with inverted correspondences of the accounts used.

Accounting Game by Means of Matrix Modeling
This part of the paper provides a case statement and its solution for the accounting game played during accounting classes at Southern Federal University, Russia and was described in 2016 by Vysotskaya, Kolvakh and Stoner in their accounting education research paper.This game is based on the matrix accounting modeling system described earlier in the current paper.
The game starts by assuming that there are three players: I, II, and III.We also assume that they play a game.The reward will be in the form of money (players can also lose money as a result of play).This game is played between pairs, and can be played in different combinations, e.g., between players I and II, I and III, II and III, etc.
The players start their game by owing money to each other.In order to register the occurring liabilities, one person serves as an accountant and makes notes of transactions in chronological order.
Thus, occurring liabilities are registered with the description in the following suggested form (which resembles a diary): 1.
January, 5-player I wins $20 from the player II.

2.
Player III wins $8 from player II on the same date.
With the help of Table 1, we provide evidence that it is more convenient to register these events by means of a chronological register-The Ledger (Table 1).This Ledger represents a chronological accounting register, since it contains information about transactions structured in a chronological order.However, we cannot uniquely identify the date of each event, since several events can take place on the same day.Therefore, the identification of the events is supported by the consecutive number or record number.
The labels used in the Ledger' notional accounts to indicate the players and their roles, e.g., I-to receive, II-to pay, is called the accounts correspondence in accounting.The transaction by itself will have the following interpretation (Table 2).

Liabilities Sum (c.u.) To Receive
To Pay I II 20

The Solution
After doing the calculations of the liabilities totals ("to receive-to pay") according to the equation presented above, S(X,Y) = Sx,y, where X means "to receive" and Y means "to pay", the liabilities value is found on the left.
In our case, we assume that the sum of the liabilities of the players I and II will be represented as follows: "I-to receive, II-to pay".This is equal to the following equation, with the sum of the transaction (S): S(I,II) = S1(I,II + S7 (I,II) = $20 + $18 = $38 Accordingly, S(III,I) = S2(III,I) + S8(III,I) = $8 + $8= $14; S(II,I) = S3(II,I) = $6.This can be continued according to the registered transactions in the Ledger.
After such manipulations, we can record the results as a Ledger, which will represent the total liabilities for the players I, II and III (Table 3).We deem such a Ledger a systematic accounting register book because it considers systematization of the data obtained throughout the playing period.
The Ledger can contain different numbers of entries.In this game, the quantity of the entries in the Ledger is limited to the number of possible pairs of players, namely, to six: I and II, I and III, II and I, II and III, III and I, and III and II.
In the Ledger we have enough data to solve the case for the players I, II, and III through the closing statements, which can be represented in two ways: 1. Gross settlement.This method is often used in bank settlements between clients.In this case, the transactions between the players I and II will appear as: player I receives $38 from player II, player II receives $6 from player I.The total amount needed in order to close accounts and mutual settlements between all players will be equal to the total amount in the Ledger ($100).Here "+" means "to receive", "−", "to pay".These calculations can be rewritten in a systematized form based on the data from the Ledger and represented in the form of a chess balance.Such a chess balance we call a matrix of debit turnovers (MDT).Thus, the chess balance resembles the liability matrix (to receive) and can be represented as follows (Table 4): By transposing this matrix (to receive), we can obtain a matrix of liabilities (to pay) and matrix of credit turnovers (MCT) (Table 5).We can then subtract the above matrix (MCT) from a "liabilities to receive" matrix, or Matrix of Debit Turnovers (MDT) in order to obtain a Trial Balance Matrix (MTB) as follows: As the result of Equation ( 13), the MTB can be represented in matrix form as follows (Table 6): Generally, the basic accounting equation in matrix form is as follows: Here MTB 0 is a matrix of balances for the beginning of the period, and MDT is a matrix of debit turnovers.MCT is a transposition of MDT (MDT ), or a matrix of credit turnovers.MTB 1 is a Trial Balance matrix for the end of the period.
Our game assumes that there were no liabilities of the players at the beginning of this game.Thus, all the elements of the beginning matrix (MTB 0 ) are equal to zero.Finally, the basic accounting equation based on our case is as follows: As the result of Equation ( 13), the MTB can be represented in matrix form as follows (Table 6): Generally, the basic accounting equation in matrix form is as follows: Here is a matrix of balances for the beginning of the period, and MDT is a matrix of debit turnovers.MCT is a transposition of MDT ( ), or a matrix of credit turnovers.is a Trial Balance matrix for the end of the period.
Our game assumes that there were no liabilities of the players at the beginning of this game.Thus, all the elements of the beginning matrix ( ) are equal to zero.Finally, the basic accounting equation based on our case is as follows: (15)

Conclusions
The equations presented above are the equivalents of the trial balance obtained by using T-accounts.This means that it is possible to use an alternative approach, which differs from T-accounts, and vice versa.
However, the difference of the approaches lies in the manner of the solution of the case.Moreover, the T-accounts method is used primarily for teaching purposes, since a variety of accounting forms are used in practice.
Nevertheless, the matrix model of accounting technology can be considered as an example of solving the case of mutual calculations.
On this basis, we have developed and introduced in 2000 a course based on new principals that is constantly being revised and developed with the participation of the other course staff.
Finally, this paper presents a framework for a further series of articles on how mathematics affects accounting theory and practice in the era of developing blockchain and distributed ledger development.Considering the possibilities of the situational-matrix modeling method used in accounting and Industry 4.0, the increasing impact of digitalization on business processes raised in this paper povides the foundations for building a comprehensive platform for monitoring transactions, along with identifying abnormal or non-efficient ones.

Table 1 .
The journal of operations (Ledger) of players I, II, III (January).

Table 2 .
The transaction interpretation.

Table 3 .
The Ledger of the total liabilities for players I, II, III (January).

Table 4 .
The Matrix of Debit Turnovers MDT in a matrix form.

Table 5 .
The Matrix of Credit Turnovers MCT in a matrix form.

Table 6 .
The Matrix of a Trial Balance MTB in matrix form.

Table 6 .
The Matrix of a Trial Balance MTB in matrix form.