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://www.iima.ac.in/sites/default/files/rnpfiles/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. Allen, D.E. & McAleer, M.J. & Powell, R.J. & Singh, A.K., 2015. "Down-side Risk Metrics as Portfolio Diversification Strategies across the GFC," Econometric Institute Research Papers EI2015-32, Erasmus University Rotterdam, Erasmus School of Economics (ESE), Econometric Institute.
    11. 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.
    12. Qi, Yue & Liao, Kezhi & Liu, Tongyang & Zhang, Yu, 2022. "Originating multiple-objective portfolio selection by counter-COVID measures and analytically instigating robust optimization by mean-parameterized nondominated paths," Operations Research Perspectives, Elsevier, vol. 9(C).
    13. Manfred Gilli & Enrico Schumann, 2012. "Heuristic optimisation in financial modelling," Annals of Operations Research, Springer, vol. 193(1), pages 129-158, March.
    14. 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.
    15. Firoozye, Nikan & Tan, Vincent & Zohren, Stefan, 2023. "Canonical portfolios: Optimal asset and signal combination," Journal of Banking & Finance, Elsevier, vol. 154(C).
    16. 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.
    17. 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.
    18. 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.
    19. Alejandro Corvalán, 2005. "Well Diversified Efficient Portfolios," Working Papers Central Bank of Chile 336, Central Bank of Chile.
    20. Istvan Varga-Haszonits & Fabio Caccioli & Imre Kondor, 2016. "Replica approach to mean-variance portfolio optimization," Papers 1606.08679, arXiv.org.

    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.

    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: the person in charge (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. RePEc uses bibliographic data supplied by the respective publishers.