Fuzzy Logic and Risk Evaluation Petr Dostál 1 1 Brno University of Technology, Faculty of Business and Management, Institute of Informatics, Kolejní 2906/4, 612 00 Brno, Czech Republic Abstract. Artificial intelligence has had successful applications in economics, and finance. There are different methods used as supports for decisionmaking processes. Nowadays the new theories of soft computing are used for these purposes. The case of use is presented on the evaluation of risk by means of fuzzy logic. 1 Introduction The artificial intelligence plays very important roles especially in economics, and finance because it helps to reduce risk that can lead to higher profits and to success in the competitive fight. The applications in economics, and finance have specific features in comparison with others. The processes are focused on private corporate attempts at money making or decreasing expenses. The application of the fuzzy logic model is realized on the case of evaluation of rate of risk of payment of active debt. The program MATLAB with Fuzzy Logic Toolbox is used. 2 Risk Evaluation The application of the fuzzy logic model is realized on the case of evaluation of rate of risk of payment of active debt. The application is solved with eleven input variables, three rule blocks and one output variable with three attributes. The inputs and their attributes are: Sex (man, woman), Age (young, middle, old), Marital status (married, single, other), Children (none, one, more), Income (low, medium, high), Account (none, medium, high), Debt (none, medium, high), Employment (short, medium, long term), Contact with client (short, medium, long term), Orders (first, few, more), Delayed payment (none, few, more). It presents eleven inputs where from two to three attributes are selected according to the demand of realization of project. The output from the rule box Personal data evaluates the personality of the client (excellent, good, bad), the rule box Financial data evaluates the financial situation of client (excellent, good, bad), the rule box Quality of a client evaluates the client from the point of view of the relation consumer - supplier (excellent, good, bad). The output variables is the Risk of payment of active debt with three attributes (low, medium, high).
2 Fig. 1 Fuzzy logic model It is necessary to set up the membership function for all inputs and outputs. It was used the functions in the shape of Λ, Π, Z, S. The rule box must be set up with rules and their weight among inputs and outputs. The weight of rules can be changed during the process of optimization. Fig. 2 Box B 1
3 Fig. 3 Box B 2 Fig. 4 Box B 3 Fig. 5 Box B C
4 The build-up model can be used for the evaluation of the rate of risk of payment of active debt. On the basis of input values we obtain the information whether the risk of payment of active debt is low, medium or high. The course of membership function and the weight of rules DoS can be set up by means of neural network in case when the data are at disposal. The fuzzy logic model was built-up (fig.1) with box B 1 (fig.2), B 2 (fig.3), B 3 (fig.4) and B C (fig.5). clear all B1v = readfis('b1.fis'); UdajB1 = input('input values in the form [Sex; Age; Status; Children]: '); VyhB1 = evalfis(udajb1, B1v); B2v = readfis('b2.fis'); UdajB2 = input('input values in the form [Income; Account, Debt]: '); VyhB2 = evalfis(udajb2, B2v); B3v = readfis('b3.fis'); UdajB3 = input('input values in the form [Employment; Contact, Orders, Payment]: ');VyhB3 = evalfis(udajb3, B3v); BFv = readfis('bc.fis'); UdajBF(1) = VyhB1; UdajBF(2) = VyhB2; UdajBF(3) = VyhB3; VyhBF = evalfis(udajbf, BFv); if VyhBF<0.3 'Low risk' elseif VyhBF<0.6 'Medium Risk' else 'High risk' end fuzzy(bfv) mfedit(bfv) ruleedit(bfv) surfview(bfv) ruleview(bfv) Prog. 1 M-file B C.m The results of the calculation are presented by inputs Marital status, Children, Income, Account, Debt, Employment, Contact, Orders, Delayed payment with various values. The results are Low, Medium and High risk. See Res.1. It was tested tens of cases that lead to the conclusion, that the model is usable in practice.
5 Input values in the form [I1a; I1b; I1c; I1d]: [0.95;0.80;0.75;0.94] Input values in the form [Sex; Age; Status; Children]: [0;0;0;0] Input values in the form [Income; Account, Debt]: [0;0;0] Input values in the form [Employment; Contact, Orders, Payment]: [0;0;0;0] ans =Low risk Input values in the form [Sex; Age; Status; Children]: [0.95;0.80;0.75;0.94] Input values in the form [Income; Account, Debt]: [0.85;0.75;0.95] Input values in the form [Employment; Contact, Orders, Payment]: [0.85;0.80;0.90;0.80] ans =High risk Input values in the form [Sex; Age; Status; Children]: [0.5;0.5;0.5;0.5] Input values in the form [Income; Account, Debt]: [0.5;0.5;0.5] Input values in the form [Employment; Contact, Orders, Payment]: [0.5;0.5;0.5;0.5] ans = Medium risk Res. 1 Results of calculation 3 Conclusions The example mentioned above is an application of the use of fuzzy logic for decision making of investors and managers. The risk evaluation plays an important role nowadays, but such applications, both successful and unsuccessful, are not published very often because of secrecy in the highly competitive environments among firms and institutions. References 1. ALLIEV, A., ALLIEV, R. Soft Computing and Its Applications, World Scientific Publishing, UK 2002, 444 pp., ISBN 981-02-4700-1.
6 2. ALTROCK, C. Fuzzy Logic & Neurofuzzy Applications in Business & Finance, Prentice Hall, USA, 1996, 375 pp., ISBN 0-13-591512-0. 3. DOSTÁL, P. Advanced Decision Making in Business and Public Services, CERM, Brno, 2011, 168pp., ISBN 978-80-7204-747-5. 4. DOSTÁL, P. Advanced Economic Analyses, VUT FP - Brno 2008, 80 pp., ISBN 978-80-214-3564-3. 5. Chen, S., Wang, P., Wen, T. Computational Intelligence in Economic and Finance, Springer, 2004, 480 pp., ISBN 978-3-540-44098-4. 6. Chen, S., Wang, P., Wen, T. Computational Intelligence in Economic and Finance Volume II, Springer, 2007, 228 pp., ISBN 978-3-540-72820-7. 7. Kazabov, K. Neuro-Fuzzy Techniques for Intelligent Information Systems, Physica-Verlag, 1998, 427 pp., ISBN 3-7908-1187-4. 8. Klir, G.J., Yuan, B. Fuzzy Sets and Fuzzy Logic, Theory and Applications, Prentice Hall, New Jersey, USA, 1995, 279 pp., ISBN 0-13- 101171-5. 9. Ribeiro, R., Yager, R. Soft Computing in Financial Engineering, A Springer Verlag Company, 1999, 590 pp., ISBN 3-7908-1173-4. 10. The MathWorks. (2010) MATLAB User s Guide, The MathWorks.