{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Computing integral with quasi-Monte Carlo methods\n", "\n", "**Randall Romero Aguilar, PhD**\n", "\n", "This demo is based on the original Matlab demo accompanying the Computational Economics and Finance 2001 textbook by Mario Miranda and Paul Fackler.\n", "\n", "Original (Matlab) CompEcon file: **demqua01bis.m**\n", "\n", "Running this file requires the Python version of CompEcon. This can be installed with pip by running\n", "\n", " !pip install compecon --upgrade\n", "\n", "Last updated: 2021-Oct-01\n", "
\n | Random | \nNeiderreiter | \nWeyl | \n
---|---|---|---|
Nodes | \n\n | \n | \n |
$10^3$ | \n-1.804202 | \n-2.879952 | \n-3.518213 | \n
$10^4$ | \n-2.603463 | \n-3.148008 | \n-3.929531 | \n
$10^5$ | \n-2.837374 | \n-3.982252 | \n-4.377373 | \n
$10^6$ | \n-3.617125 | \n-5.449389 | \n-5.740493 | \n