Skip to main content
QUICK REVIEW

[Paper Review] Assessing Excel VBA Suitability for Monte Carlo Simulation

Alexei Botchkarev|arXiv (Cornell University)|Mar 29, 2015
Spreadsheets and End-User ComputingComputer Science65 references6 citations
TL;DR

This study evaluates Microsoft Excel 2010 and 2013 with VBA for Monte Carlo simulation, finding it a viable platform when enhanced with an external high-quality pseudo-random number generator. While Excel's built-in statistical functions require careful validation, the combination of spreadsheets, VBA, and external RNG provides a robust framework for MC simulation projects.

ABSTRACT

Monte Carlo (MC) simulation includes a wide range of stochastic techniques used to quantitatively evaluate the behavior of complex systems or processes. Microsoft Excel spreadsheets with Visual Basic for Applications (VBA) software is, arguably, the most commonly employed general purpose tool for MC simulation. Despite the popularity of the Excel in many industries and educational institutions, it has been repeatedly criticized for its flaws and often described as questionable, if not completely unsuitable, for statistical problems. The purpose of this study is to assess suitability of the Excel (specifically its 2010 and 2013 versions) with VBA programming as a tool for MC simulation. The results of the study indicate that Microsoft Excel (versions 2010 and 2013) is a strong Monte Carlo simulation application offering a solid framework of core simulation components including spreadsheets for data input and output, VBA development environment and summary statistics functions. This framework should be complemented with an external high-quality pseudo-random number generator added as a VBA module. A large and diverse category of Excel incidental simulation components that includes statistical distributions, linear and non-linear regression and other statistical, engineering and business functions require execution of due diligence to determine their suitability for a specific MC project.

Motivation & Objective

  • To evaluate the suitability of Microsoft Excel 2010 and 2013 with VBA for Monte Carlo simulation tasks.
  • To identify strengths and limitations of Excel's native components in supporting stochastic simulation.
  • To determine whether Excel VBA can serve as a reliable platform for complex simulation projects.
  • To assess the reliability of Excel’s built-in statistical functions and distributions for simulation use.
  • To provide practical recommendations for enhancing Excel’s simulation capability through external tools.

Proposed method

  • Conducted empirical evaluation of Excel 2010 and 2013's VBA environment for simulation workloads.
  • Tested core simulation components including data input/output via spreadsheets, VBA programming, and summary statistics functions.
  • Evaluated the quality of Excel’s built-in random number generation and identified its limitations.
  • Integrated an external high-quality pseudo-random number generator (PRNG) as a VBA module to improve stochastic sampling.
  • Assessed the accuracy and reliability of statistical distributions, regression functions, and engineering/business functions in Excel.
  • Performed due diligence on incidental simulation components to determine their suitability for specific MC applications.

Experimental results

Research questions

  • RQ1To what extent is Microsoft Excel 2010 and 2013 with VBA suitable as a platform for Monte Carlo simulation?
  • RQ2How reliable are Excel’s built-in random number generators for stochastic simulation tasks?
  • RQ3Which of Excel’s statistical and mathematical functions are fit for purpose in Monte Carlo simulations?
  • RQ4What external enhancements are necessary to make Excel VBA a robust simulation environment?
  • RQ5How can users ensure the accuracy of simulation results when relying on Excel’s native functions?

Key findings

  • Microsoft Excel 2010 and 2013 with VBA provide a strong foundational framework for Monte Carlo simulation, including data handling, programming, and summary statistics.
  • The built-in random number generator in Excel is insufficient for high-precision simulation and should be replaced with an external, high-quality pseudo-random number generator.
  • Many of Excel’s statistical distributions and functions require careful validation before use in simulation projects due to potential inaccuracies.
  • Linear and non-linear regression functions in Excel exhibit reliability issues and must be evaluated on a case-by-case basis.
  • The combination of Excel’s spreadsheet interface, VBA environment, and an external PRNG module creates a viable and efficient simulation platform.
  • Due diligence is essential when using Excel’s incidental simulation components, as their reliability varies significantly across different use cases.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.