IDEAS home Printed from https://ideas.repec.org/p/iim/iimawp/14565.html
   My bibliography  Save this paper

Shiny Alternative for Finance in the Classroom

Author

Listed:
  • Varma, Jayanth R.
  • Virmani, Vineet

Abstract

Despite the popularity of open-source languages like R and Python in modern empirical research and the data-science industry, spreadsheet programs like Microsoft Excel remain the data analysis software of choice in much of the business-school curriculum, including at IIMA. Even if instructors are comfortable with modern programming languages, they have to pitch their courses at the level of computer literacy prevalent among students. Excel then appears to be a natural choice given its popularity, but this choice constrains the depth of analysis that is possible and requires a certain amount of dumbing-down of the subject by the instructor. Recent software advances however make the ubiquitous web browser a worthy challenger to the spreadsheet. This article introduces one such browser-based tool called Shiny for bringing finance applications to the classroom and smart phones. Fueled by the availability of high-quality R packages in finance and statistics, Shiny brings together the power of HTML with the R programming language. It naturally creates an environment for the instructor to focus on the role of parameters and assumptions in analysis without the clutter of data, and allows the instructor to go beyond the toy problems that are necessitated by the nature of spreadsheets. The learning curve is short for an interested instructor with even a rudimentary exposure to programming in any language. The article ends with the discussion of a fully-worked out example of Shiny for teaching the mean variance efficient frontier in a basic investments course.

Suggested Citation

  • Varma, Jayanth R. & Virmani, Vineet, 2017. "Shiny Alternative for Finance in the Classroom," IIMA Working Papers WP 2017-03-05, Indian Institute of Management Ahmedabad, Research and Publication Department.
  • Handle: RePEc:iim:iimawp:14565
    as

    Download full text from publisher

    File URL: https://web.iima.ac.in/assets/snippets/workingpaperpdf/2582881092017-03-05.pdf
    File Function: English Version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Almiron, Marcelo G. & Lopes, Bruno & Oliveira, Alyson L. C. & Medeiros, Antonio C. & Frery, Alejandro C., 2010. "On the Numerical Accuracy of Spreadsheets," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 34(i04).
    2. Xie, Yihui, 2013. "animation: An R Package for Creating Animations and Demonstrating Statistical Methods," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 53(i01).
    3. Humberto Barreto, 2015. "Why Excel?," The Journal of Economic Education, Taylor & Francis Journals, vol. 46(3), pages 300-309, July.
    4. Nash, J.C., 2006. "Spreadsheets in Statistical PracticeAnother Look," The American Statistician, American Statistical Association, vol. 60, pages 287-289, August.
    5. Harry Markowitz, 1952. "Portfolio Selection," Journal of Finance, American Finance Association, vol. 7(1), pages 77-91, March.
    6. Eric Nævdal, 2003. "Solving Continuous-Time Optimal-Control Problems with a Spreadsheet," The Journal of Economic Education, Taylor & Francis Journals, vol. 34(2), pages 99-122, January.
    7. McCullough, B.D. & Heiser, David A., 2008. "On the accuracy of statistical procedures in Microsoft Excel 2007," Computational Statistics & Data Analysis, Elsevier, vol. 52(10), pages 4570-4578, June.
    8. R. Cont, 2001. "Empirical properties of asset returns: stylized facts and statistical issues," Quantitative Finance, Taylor & Francis Journals, vol. 1(2), pages 223-236.
    9. Merton, Robert C., 1972. "An Analytic Derivation of the Efficient Portfolio Frontier," Journal of Financial and Quantitative Analysis, Cambridge University Press, vol. 7(4), pages 1851-1872, September.
    10. Yalta, A. Talha, 2008. "The accuracy of statistical distributions in Microsoft® Excel 2007," Computational Statistics & Data Analysis, Elsevier, vol. 52(10), pages 4579-4586, June.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. H.-J. Sun & Kaoru Fukuda & B. D. McCullough, 2017. "Inaccurate regression coefficients in Microsoft Excel 2003: an investigation of Volpi’s “zero bug”," Computational Statistics, Springer, vol. 32(4), pages 1411-1421, December.
    2. Nash, John C., 2008. "Teaching statistics with Excel 2007 and other spreadsheets," Computational Statistics & Data Analysis, Elsevier, vol. 52(10), pages 4602-4606, June.
    3. Muhinyuza, Stanislas & Bodnar, Taras & Lindholm, Mathias, 2020. "A test on the location of the tangency portfolio on the set of feasible portfolios," Applied Mathematics and Computation, Elsevier, vol. 386(C).
    4. Giovanni Bonaccolto & Massimiliano Caporin & Sandra Paterlini, 2018. "Asset allocation strategies based on penalized quantile regression," Computational Management Science, Springer, vol. 15(1), pages 1-32, January.
    5. Zied Ftiti & Aviral Tiwari & Amél Belanès & Khaled Guesmi, 2015. "Tests of Financial Market Contagion: Evolutionary Cospectral Analysis Versus Wavelet Analysis," Computational Economics, Springer;Society for Computational Economics, vol. 46(4), pages 575-611, December.
    6. Alexander, Gordon J. & Baptista, Alexandre M., 2006. "Portfolio selection with a drawdown constraint," Journal of Banking & Finance, Elsevier, vol. 30(11), pages 3171-3189, November.
    7. Wang, Zengwu & Xia, Jianming & Zhang, Lihong, 2007. "Optimal investment for an insurer: The martingale approach," Insurance: Mathematics and Economics, Elsevier, vol. 40(2), pages 322-334, March.
    8. Nteukam T., Oberlain & Planchet, Frédéric & Thérond, Pierre-E., 2011. "Optimal strategies for hedging portfolios of unit-linked life insurance contracts with minimum death guarantee," Insurance: Mathematics and Economics, Elsevier, vol. 48(2), pages 161-175, March.
    9. Fu, Chenpeng & Lari-Lavassani, Ali & Li, Xun, 2010. "Dynamic mean-variance portfolio selection with borrowing constraint," European Journal of Operational Research, Elsevier, vol. 200(1), pages 312-319, January.
    10. Tienyu Hwang & Simon Gao & Heather Owen, 2014. "Markowitz efficiency and size effect: evidence from the UK stock market," Review of Quantitative Finance and Accounting, Springer, vol. 43(4), pages 721-750, November.
    11. Manfred Gilli & Enrico Schumann, 2012. "Heuristic optimisation in financial modelling," Annals of Operations Research, Springer, vol. 193(1), pages 129-158, March.
    12. Bodnar Taras & Schmid Wolfgang, 2011. "On the exact distribution of the estimated expected utility portfolio weights: Theory and applications," Statistics & Risk Modeling, De Gruyter, vol. 28(4), pages 319-342, December.
    13. Anand, Abhinav & Li, Tiantian & Kurosaki, Tetsuo & Kim, Young Shin, 2016. "Foster–Hart optimal portfolios," Journal of Banking & Finance, Elsevier, vol. 68(C), pages 117-130.
    14. Onali, Enrico & Goddard, John, 2011. "Are European equity markets efficient? New evidence from fractal analysis," International Review of Financial Analysis, Elsevier, vol. 20(2), pages 59-67, April.
    15. Gaydon, D.S. & Meinke, H. & Rodriguez, D. & McGrath, D.J., 2012. "Comparing water options for irrigation farmers using Modern Portfolio Theory," Agricultural Water Management, Elsevier, vol. 115(C), pages 1-9.
    16. Alejandro Corvalán, 2005. "Well Diversified Efficient Portfolios," Working Papers Central Bank of Chile 336, Central Bank of Chile.
    17. Istvan Varga-Haszonits & Fabio Caccioli & Imre Kondor, 2016. "Replica approach to mean-variance portfolio optimization," Papers 1606.08679, arXiv.org.
    18. Rambaud, Salvador Cruz & Pérez, José García & Sánchez Granero, Miguel Ángel & Trinidad Segovia, Juan Evangelista, 2009. "Markowitz's model with Euclidean vector spaces," European Journal of Operational Research, Elsevier, vol. 196(3), pages 1245-1248, August.
    19. Thomas J. Brennan & Andrew W. Lo, 2010. "Impossible Frontiers," Management Science, INFORMS, vol. 56(6), pages 905-923, June.
    20. David S. Jones & V. Vance Roley, 1981. "Bliss Points in Mean-Variance Portfolio Models," NBER Technical Working Papers 0019, National Bureau of Economic Research, Inc.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:iim:iimawp:14565. See general information about how to correct material in RePEc.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: . General contact details of provider: https://edirc.repec.org/data/eciimin.html .

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: (email available below). General contact details of provider: https://edirc.repec.org/data/eciimin.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service hosted by the Research Division of the Federal Reserve Bank of St. Louis . RePEc uses bibliographic data supplied by the respective publishers.