SlideShare a Scribd company logo
1 of 26
Download to read offline
MC AND (R)QMC SIMULATIONS
WITH LATTICE BUILDER AND SSJ
Maxime Godin, Ayman Jemel, Pierre L’Ecuyer, Pierre Mar-
ion, David Munger
Florian Puchhammer
May 08, 2018
Université de Montréal, Canada
Table of contents
Lattice Builder
Web interface: Show and tell
The command line tool
Stochastic simulation in Java (SSJ)
Mean estimation with RQMC
Future Plans
1/19
LATTICE BUILDER
What is Lattice Builder?
Goal: obtain highly unifrom point set Joint work with in [0, 1)d for
integration/simulation/...
A C++ library designed to generate (polynomial) lattice
point sets.
Provides GUI via web interface.
Implements a command line tool.
Offers following advantages:
High level of generalization.
Easy to extend.
Can be combined with other software.
2/19
Types of lattices I
Ordinary lattice (Rank-1-lattice):
Construction with generating vector a ∈ Ns
.
Pn =
i
n
a mod 1 : i ∈ {0, 1, . . . , n − 1} .
Polynomial lattice
...are digital nets in base 2 (n = 2m
).
Choose base polynomial p(x) ∈ F2[x], deg p = m.
Construct generating vector (1, q2, . . . , qs).
Expand
qj(x)
p(x)
=
l≥wj
u
(j)
l x−l
Define the generating matrix Cj, 1 ≤ j ≤ s, via
Cj = u
(j)
i+r
i,r
, 1 ≤ i ≤ m, 0 ≤ r < m.
3/19
Types of lattices II
Embedded lattice
Exist for both, polynomial and ordinary lattices.
One generating vector for n = 2k1
, 2k2
, 2k3
, . . .
4/19
LATTICE BUILDER
Web interface: Show and tell
Overview
Manual installation:
https://github.com/PierreMarion23/latbuilder/tree/master/web-ui
Online tool:
https://mybinder.org/v2/gh/PierreMarion23/latbuilder/polynomial?
urlpath=/apps/latbuilder/web-ui/Interface.ipynb
Ingredients:
Figure of merit
Weights
Construction methods
5/19
Figure of merit (FOM) I
Goal: Want good lattice point set for our specific problem.
use FOM to assess quality of lattice point set.
General form:
[D(Pn)]q
=
∅=u⊆{1,...,s}
γq
u [Du(Pn)]q
Special form: Coordinate uniform (q = 2). Allows for fast
evaluation.
[Du(Pn)]q
=
1
n
n−1
i=0 j∈u
ω(p
(j)
i ).
Types:
6/19
Figure of merit (FOM) II
1. Spectral criterion (only for ordinary lattices)
2. Pα criterion (α even)
3. Rα criterion (α > 0)
4. Own criterion? Tutorial!
7/19
Weights
Goal: Give some projections/coordinates more attention.
Types:
1. Product weights γu = j∈u γj.
2. Order dependent weights γu = Γ|u|.
3. POD weights γu = Γ|u| j∈u γj.
4. Projection dependent weights (specify for each projection
individually).
5. Any combination of the above.
6. Own weights? Tutorial!
Each weight can be assigned explicitely or via an expression.
8/19
Construction Methods
Evaluate: Get merit-value for specific generating vector.
Extend: Increase the number of points.
All Space: Exhaustive search.
Korobov: Search among all vectors of the form
a = (1, a, a2
, . . . , as
) mod n.
CBC: Determine generating vector coordinate-wise.
Fast CBC: Accelerated version of CBC. Uses FFT and requires
coord. uniform FOM.
All Space, Korobov and CBC allow for random versions to shrink
search space.
Each method produces code (C, Python, Matlab) to compute
point set and provides plots.
9/19
LATTICE BUILDER
The command line tool
Overview
Web interface relies on command line tool.
Easy to implement own extensions here Tutorial.
Can be called from other programs without difficulty.
Ideal for simulation purposes.
For polynomial lattices:
Lattice Builder represents polynomials by sequence of
digits, e.g.
[1011] ←→ 1 + z2
+ z3
.
Can create file-output of generating matrices, formatted for
further use in Stochastic Simulation in Java (SSJ).
10/19
Commands
List of commands given in documentation.
Can also be obtained by calling Lattice Builder with the
option --help.
Web interface offers “cheating” button.
11/19
STOCHASTIC SIMULATION IN
JAVA (SSJ)
What is it, what can it do?
Java library designed for stochastic simulation.
Extensive range of tools for all kinds of problems:
Mean estimation
Array-RQMC
Density estimation
...
Focus on mean estimation with RQMC.
12/19
STOCHASTIC SIMULATION IN
JAVA (SSJ)
Mean estimation with RQMC
Mean estimation
Approximation of an integral by empirical mean:
Ef(X) =
[0,1)d
f(x) dx ≈
1
N
N−1
i=0
f(ui).
1. Take PN = {p0, p1, . . . , pN−1} ⊆ [0, 1)d highly uniform.
2. Randomize PN
˜PN = {u0, u2, . . . , uN−1}.
3. Compute empirical mean.
4. Repeat independently m times with same PN .
13/19
Examples – Genz’ Gaussian peak function
Consider the integrand
f(x) = exp

−
d
j=1
a2
j (xj − tj)2

 .
We use ordinary- and polynomial lattices to compute
[0,1)d
f(x) dx
with d = 3, a = (1, 1, 1), and t = (1/2, 1/2, 1/2).
14/19
Ingredients I
Integrand:
Implemented as interface MonteCarloModelDouble
Requires implementation of certain routines, the rest is
handeled automatically.
Covers broad range of models (functions, models from
finance, physics,...).
Point set PN :
Plain MC, lattices, digital nets,...
Possible to use Baker’s transformation.
On deeper level every point set is handled as
RandomStream.
15/19
Ingredients II
Randomization:
Random Shift, left matrix scramble, nested uniform
scramble,...
Integration:
Handled in RQMCExperimentSeries.
16/19
FUTURE PLANS
Future Plans
Lattice Builder
Sobol points, digital nets,...
Interlaced polynomial lattices
Different figures of merit (walsh, sobolev, t-value,...)
More construction methods.
Suggestions?
SSJ
Array RQMC
Density estimation
Higher order polynomial lattices
Suggestions?
17/19
Further reading and important links I
Lattice Builder home (ordinary lattices only):
http://simul.iro.umontreal.ca/latbuilder/
Lattice Builder reference paper:
http://www.iro.umontreal.ca/~lecuyer/myftp/papers/latbuilder.pdf
Lattice Builder (beta version with polynomial lattices) :
https://github.com/PierreMarion23/latbuilder/tree/polynomial
Lattice Builder web-interface (beta version) :
https://github.com/PierreMarion23/latbuilder/tree/polynomial/web-ui
Lattice Builder online web-interface (beta version) :
https://mybinder.org/v2/gh/PierreMarion23/latbuilder/polynomial?
urlpath=/apps/latbuilder/web-ui/Interface.ipynb
L’Ecuyer, Munger 2012, On Figures of Merit for
Randomly-Shifted Lattice Rules:
https:
//www.iro.umontreal.ca/~lecuyer/myftp/papers/mcqmc10-plenary.pdf
18/19
Further reading and important links II
SSJ home: http://simul.iro.umontreal.ca/ssj/indexe.html
SSJ on GitHub:
https://github.com/umontreal-simul/ssj
SSJ user guide:
http://umontreal-simul.github.io/ssj/docs/master/index.html
19/19

More Related Content

What's hot

NIPS読み会2013: One-shot learning by inverting a compositional causal process
NIPS読み会2013: One-shot learning by inverting  a compositional causal processNIPS読み会2013: One-shot learning by inverting  a compositional causal process
NIPS読み会2013: One-shot learning by inverting a compositional causal process
nozyh
 
Support vector regression and its application in trading
Support vector regression and its application in tradingSupport vector regression and its application in trading
Support vector regression and its application in trading
Aashay Harlalka
 

What's hot (20)

机器学习Adaboost
机器学习Adaboost机器学习Adaboost
机器学习Adaboost
 
Convolutional Neural Networks (DLAI D5L1 2017 UPC Deep Learning for Artificia...
Convolutional Neural Networks (DLAI D5L1 2017 UPC Deep Learning for Artificia...Convolutional Neural Networks (DLAI D5L1 2017 UPC Deep Learning for Artificia...
Convolutional Neural Networks (DLAI D5L1 2017 UPC Deep Learning for Artificia...
 
Centernet
CenternetCenternet
Centernet
 
Support vector machines (svm)
Support vector machines (svm)Support vector machines (svm)
Support vector machines (svm)
 
Machine learning applications in aerospace domain
Machine learning applications in aerospace domainMachine learning applications in aerospace domain
Machine learning applications in aerospace domain
 
Optimization (DLAI D4L1 2017 UPC Deep Learning for Artificial Intelligence)
Optimization (DLAI D4L1 2017 UPC Deep Learning for Artificial Intelligence)Optimization (DLAI D4L1 2017 UPC Deep Learning for Artificial Intelligence)
Optimization (DLAI D4L1 2017 UPC Deep Learning for Artificial Intelligence)
 
NIPS読み会2013: One-shot learning by inverting a compositional causal process
NIPS読み会2013: One-shot learning by inverting  a compositional causal processNIPS読み会2013: One-shot learning by inverting  a compositional causal process
NIPS読み会2013: One-shot learning by inverting a compositional causal process
 
Multilayer Perceptron (DLAI D1L2 2017 UPC Deep Learning for Artificial Intell...
Multilayer Perceptron (DLAI D1L2 2017 UPC Deep Learning for Artificial Intell...Multilayer Perceptron (DLAI D1L2 2017 UPC Deep Learning for Artificial Intell...
Multilayer Perceptron (DLAI D1L2 2017 UPC Deep Learning for Artificial Intell...
 
ICPR 2016
ICPR 2016ICPR 2016
ICPR 2016
 
Support vector regression and its application in trading
Support vector regression and its application in tradingSupport vector regression and its application in trading
Support vector regression and its application in trading
 
Auto-encoding variational bayes
Auto-encoding variational bayesAuto-encoding variational bayes
Auto-encoding variational bayes
 
Optimization for Neural Network Training - Veronica Vilaplana - UPC Barcelona...
Optimization for Neural Network Training - Veronica Vilaplana - UPC Barcelona...Optimization for Neural Network Training - Veronica Vilaplana - UPC Barcelona...
Optimization for Neural Network Training - Veronica Vilaplana - UPC Barcelona...
 
Matching networks for one shot learning
Matching networks for one shot learningMatching networks for one shot learning
Matching networks for one shot learning
 
The Perceptron (D1L2 Deep Learning for Speech and Language)
The Perceptron (D1L2 Deep Learning for Speech and Language)The Perceptron (D1L2 Deep Learning for Speech and Language)
The Perceptron (D1L2 Deep Learning for Speech and Language)
 
Perceptrons (D1L2 2017 UPC Deep Learning for Computer Vision)
Perceptrons (D1L2 2017 UPC Deep Learning for Computer Vision)Perceptrons (D1L2 2017 UPC Deep Learning for Computer Vision)
Perceptrons (D1L2 2017 UPC Deep Learning for Computer Vision)
 
Backpropagation - Elisa Sayrol - UPC Barcelona 2018
Backpropagation - Elisa Sayrol - UPC Barcelona 2018Backpropagation - Elisa Sayrol - UPC Barcelona 2018
Backpropagation - Elisa Sayrol - UPC Barcelona 2018
 
Digit recognizer by convolutional neural network
Digit recognizer by convolutional neural networkDigit recognizer by convolutional neural network
Digit recognizer by convolutional neural network
 
Support vector machines
Support vector machinesSupport vector machines
Support vector machines
 
Support Vector Machines ( SVM )
Support Vector Machines ( SVM ) Support Vector Machines ( SVM )
Support Vector Machines ( SVM )
 
Generative adversarial networks
Generative adversarial networksGenerative adversarial networks
Generative adversarial networks
 

Similar to QMC: Transition Workshop - Monte Carlo and (Randomized) Quasi-Monte Carlo Simulations with Lattice Builder and SSJ - Florian Pluchhammer, May 8, 2018

Software tookits for machine learning and graphical models
Software tookits for machine learning and graphical modelsSoftware tookits for machine learning and graphical models
Software tookits for machine learning and graphical models
butest
 
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdfCD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
RajJain516913
 
Uniform and non-uniform pseudo random numbers generators for high dimensional...
Uniform and non-uniform pseudo random numbers generators for high dimensional...Uniform and non-uniform pseudo random numbers generators for high dimensional...
Uniform and non-uniform pseudo random numbers generators for high dimensional...
LEBRUN Régis
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 

Similar to QMC: Transition Workshop - Monte Carlo and (Randomized) Quasi-Monte Carlo Simulations with Lattice Builder and SSJ - Florian Pluchhammer, May 8, 2018 (20)

Software tookits for machine learning and graphical models
Software tookits for machine learning and graphical modelsSoftware tookits for machine learning and graphical models
Software tookits for machine learning and graphical models
 
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdfCD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
 
2012 05-10 kaiser
2012 05-10 kaiser2012 05-10 kaiser
2012 05-10 kaiser
 
Graph Neural Network #2-1 (PinSage)
Graph Neural Network #2-1 (PinSage)Graph Neural Network #2-1 (PinSage)
Graph Neural Network #2-1 (PinSage)
 
Set Transfomer: A Framework for Attention-based Permutaion-Invariant Neural N...
Set Transfomer: A Framework for Attention-based Permutaion-Invariant Neural N...Set Transfomer: A Framework for Attention-based Permutaion-Invariant Neural N...
Set Transfomer: A Framework for Attention-based Permutaion-Invariant Neural N...
 
The Concurrent Constraint Programming Research Programmes -- Redux (part2)
The Concurrent Constraint Programming Research Programmes -- Redux (part2)The Concurrent Constraint Programming Research Programmes -- Redux (part2)
The Concurrent Constraint Programming Research Programmes -- Redux (part2)
 
Cgm Lab Manual
Cgm Lab ManualCgm Lab Manual
Cgm Lab Manual
 
Cgm Lab Manual
Cgm Lab ManualCgm Lab Manual
Cgm Lab Manual
 
Uniform and non-uniform pseudo random numbers generators for high dimensional...
Uniform and non-uniform pseudo random numbers generators for high dimensional...Uniform and non-uniform pseudo random numbers generators for high dimensional...
Uniform and non-uniform pseudo random numbers generators for high dimensional...
 
3D Reconstruction from Multiple uncalibrated 2D Images of an Object
3D Reconstruction from Multiple uncalibrated 2D Images of an Object3D Reconstruction from Multiple uncalibrated 2D Images of an Object
3D Reconstruction from Multiple uncalibrated 2D Images of an Object
 
DAOR - Bridging the Gap between Community and Node Representations: Graph Emb...
DAOR - Bridging the Gap between Community and Node Representations: Graph Emb...DAOR - Bridging the Gap between Community and Node Representations: Graph Emb...
DAOR - Bridging the Gap between Community and Node Representations: Graph Emb...
 
Implementing a modern, RenderMan compliant, REYES renderer
Implementing a modern, RenderMan compliant, REYES rendererImplementing a modern, RenderMan compliant, REYES renderer
Implementing a modern, RenderMan compliant, REYES renderer
 
DSP_Lab_MAnual_-_Final_Edition.pdf
DSP_Lab_MAnual_-_Final_Edition.pdfDSP_Lab_MAnual_-_Final_Edition.pdf
DSP_Lab_MAnual_-_Final_Edition.pdf
 
DSP_Lab_MAnual_-_Final_Edition[1].docx
DSP_Lab_MAnual_-_Final_Edition[1].docxDSP_Lab_MAnual_-_Final_Edition[1].docx
DSP_Lab_MAnual_-_Final_Edition[1].docx
 
Sampling-Based Planning Algorithms for Multi-Objective Missions
Sampling-Based Planning Algorithms for Multi-Objective MissionsSampling-Based Planning Algorithms for Multi-Objective Missions
Sampling-Based Planning Algorithms for Multi-Objective Missions
 
Ecet 370 week 1 lab
Ecet 370 week 1 labEcet 370 week 1 lab
Ecet 370 week 1 lab
 
Subquad multi ff
Subquad multi ffSubquad multi ff
Subquad multi ff
 
Factorization Machines and Applications in Recommender Systems
Factorization Machines and Applications in Recommender SystemsFactorization Machines and Applications in Recommender Systems
Factorization Machines and Applications in Recommender Systems
 
Multi graph encoder
Multi graph encoderMulti graph encoder
Multi graph encoder
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 

More from The Statistical and Applied Mathematical Sciences Institute

Causal Inference Opening Workshop - Smooth Extensions to BART for Heterogeneo...
Causal Inference Opening Workshop - Smooth Extensions to BART for Heterogeneo...Causal Inference Opening Workshop - Smooth Extensions to BART for Heterogeneo...
Causal Inference Opening Workshop - Smooth Extensions to BART for Heterogeneo...
The Statistical and Applied Mathematical Sciences Institute
 
Causal Inference Opening Workshop - Difference-in-differences: more than meet...
Causal Inference Opening Workshop - Difference-in-differences: more than meet...Causal Inference Opening Workshop - Difference-in-differences: more than meet...
Causal Inference Opening Workshop - Difference-in-differences: more than meet...
The Statistical and Applied Mathematical Sciences Institute
 
Causal Inference Opening Workshop - New Statistical Learning Methods for Esti...
Causal Inference Opening Workshop - New Statistical Learning Methods for Esti...Causal Inference Opening Workshop - New Statistical Learning Methods for Esti...
Causal Inference Opening Workshop - New Statistical Learning Methods for Esti...
The Statistical and Applied Mathematical Sciences Institute
 
Causal Inference Opening Workshop - Bipartite Causal Inference with Interfere...
Causal Inference Opening Workshop - Bipartite Causal Inference with Interfere...Causal Inference Opening Workshop - Bipartite Causal Inference with Interfere...
Causal Inference Opening Workshop - Bipartite Causal Inference with Interfere...
The Statistical and Applied Mathematical Sciences Institute
 
Causal Inference Opening Workshop - Bracketing Bounds for Differences-in-Diff...
Causal Inference Opening Workshop - Bracketing Bounds for Differences-in-Diff...Causal Inference Opening Workshop - Bracketing Bounds for Differences-in-Diff...
Causal Inference Opening Workshop - Bracketing Bounds for Differences-in-Diff...
The Statistical and Applied Mathematical Sciences Institute
 
Causal Inference Opening Workshop - Targeted Learning for Causal Inference Ba...
Causal Inference Opening Workshop - Targeted Learning for Causal Inference Ba...Causal Inference Opening Workshop - Targeted Learning for Causal Inference Ba...
Causal Inference Opening Workshop - Targeted Learning for Causal Inference Ba...
The Statistical and Applied Mathematical Sciences Institute
 

More from The Statistical and Applied Mathematical Sciences Institute (20)

Causal Inference Opening Workshop - Latent Variable Models, Causal Inference,...
Causal Inference Opening Workshop - Latent Variable Models, Causal Inference,...Causal Inference Opening Workshop - Latent Variable Models, Causal Inference,...
Causal Inference Opening Workshop - Latent Variable Models, Causal Inference,...
 
2019 Fall Series: Special Guest Lecture - 0-1 Phase Transitions in High Dimen...
2019 Fall Series: Special Guest Lecture - 0-1 Phase Transitions in High Dimen...2019 Fall Series: Special Guest Lecture - 0-1 Phase Transitions in High Dimen...
2019 Fall Series: Special Guest Lecture - 0-1 Phase Transitions in High Dimen...
 
Causal Inference Opening Workshop - Causal Discovery in Neuroimaging Data - F...
Causal Inference Opening Workshop - Causal Discovery in Neuroimaging Data - F...Causal Inference Opening Workshop - Causal Discovery in Neuroimaging Data - F...
Causal Inference Opening Workshop - Causal Discovery in Neuroimaging Data - F...
 
Causal Inference Opening Workshop - Smooth Extensions to BART for Heterogeneo...
Causal Inference Opening Workshop - Smooth Extensions to BART for Heterogeneo...Causal Inference Opening Workshop - Smooth Extensions to BART for Heterogeneo...
Causal Inference Opening Workshop - Smooth Extensions to BART for Heterogeneo...
 
Causal Inference Opening Workshop - A Bracketing Relationship between Differe...
Causal Inference Opening Workshop - A Bracketing Relationship between Differe...Causal Inference Opening Workshop - A Bracketing Relationship between Differe...
Causal Inference Opening Workshop - A Bracketing Relationship between Differe...
 
Causal Inference Opening Workshop - Testing Weak Nulls in Matched Observation...
Causal Inference Opening Workshop - Testing Weak Nulls in Matched Observation...Causal Inference Opening Workshop - Testing Weak Nulls in Matched Observation...
Causal Inference Opening Workshop - Testing Weak Nulls in Matched Observation...
 
Causal Inference Opening Workshop - Difference-in-differences: more than meet...
Causal Inference Opening Workshop - Difference-in-differences: more than meet...Causal Inference Opening Workshop - Difference-in-differences: more than meet...
Causal Inference Opening Workshop - Difference-in-differences: more than meet...
 
Causal Inference Opening Workshop - New Statistical Learning Methods for Esti...
Causal Inference Opening Workshop - New Statistical Learning Methods for Esti...Causal Inference Opening Workshop - New Statistical Learning Methods for Esti...
Causal Inference Opening Workshop - New Statistical Learning Methods for Esti...
 
Causal Inference Opening Workshop - Bipartite Causal Inference with Interfere...
Causal Inference Opening Workshop - Bipartite Causal Inference with Interfere...Causal Inference Opening Workshop - Bipartite Causal Inference with Interfere...
Causal Inference Opening Workshop - Bipartite Causal Inference with Interfere...
 
Causal Inference Opening Workshop - Bridging the Gap Between Causal Literatur...
Causal Inference Opening Workshop - Bridging the Gap Between Causal Literatur...Causal Inference Opening Workshop - Bridging the Gap Between Causal Literatur...
Causal Inference Opening Workshop - Bridging the Gap Between Causal Literatur...
 
Causal Inference Opening Workshop - Some Applications of Reinforcement Learni...
Causal Inference Opening Workshop - Some Applications of Reinforcement Learni...Causal Inference Opening Workshop - Some Applications of Reinforcement Learni...
Causal Inference Opening Workshop - Some Applications of Reinforcement Learni...
 
Causal Inference Opening Workshop - Bracketing Bounds for Differences-in-Diff...
Causal Inference Opening Workshop - Bracketing Bounds for Differences-in-Diff...Causal Inference Opening Workshop - Bracketing Bounds for Differences-in-Diff...
Causal Inference Opening Workshop - Bracketing Bounds for Differences-in-Diff...
 
Causal Inference Opening Workshop - Assisting the Impact of State Polcies: Br...
Causal Inference Opening Workshop - Assisting the Impact of State Polcies: Br...Causal Inference Opening Workshop - Assisting the Impact of State Polcies: Br...
Causal Inference Opening Workshop - Assisting the Impact of State Polcies: Br...
 
Causal Inference Opening Workshop - Experimenting in Equilibrium - Stefan Wag...
Causal Inference Opening Workshop - Experimenting in Equilibrium - Stefan Wag...Causal Inference Opening Workshop - Experimenting in Equilibrium - Stefan Wag...
Causal Inference Opening Workshop - Experimenting in Equilibrium - Stefan Wag...
 
Causal Inference Opening Workshop - Targeted Learning for Causal Inference Ba...
Causal Inference Opening Workshop - Targeted Learning for Causal Inference Ba...Causal Inference Opening Workshop - Targeted Learning for Causal Inference Ba...
Causal Inference Opening Workshop - Targeted Learning for Causal Inference Ba...
 
Causal Inference Opening Workshop - Bayesian Nonparametric Models for Treatme...
Causal Inference Opening Workshop - Bayesian Nonparametric Models for Treatme...Causal Inference Opening Workshop - Bayesian Nonparametric Models for Treatme...
Causal Inference Opening Workshop - Bayesian Nonparametric Models for Treatme...
 
2019 Fall Series: Special Guest Lecture - Adversarial Risk Analysis of the Ge...
2019 Fall Series: Special Guest Lecture - Adversarial Risk Analysis of the Ge...2019 Fall Series: Special Guest Lecture - Adversarial Risk Analysis of the Ge...
2019 Fall Series: Special Guest Lecture - Adversarial Risk Analysis of the Ge...
 
2019 Fall Series: Professional Development, Writing Academic Papers…What Work...
2019 Fall Series: Professional Development, Writing Academic Papers…What Work...2019 Fall Series: Professional Development, Writing Academic Papers…What Work...
2019 Fall Series: Professional Development, Writing Academic Papers…What Work...
 
2019 GDRR: Blockchain Data Analytics - Machine Learning in/for Blockchain: Fu...
2019 GDRR: Blockchain Data Analytics - Machine Learning in/for Blockchain: Fu...2019 GDRR: Blockchain Data Analytics - Machine Learning in/for Blockchain: Fu...
2019 GDRR: Blockchain Data Analytics - Machine Learning in/for Blockchain: Fu...
 
2019 GDRR: Blockchain Data Analytics - QuTrack: Model Life Cycle Management f...
2019 GDRR: Blockchain Data Analytics - QuTrack: Model Life Cycle Management f...2019 GDRR: Blockchain Data Analytics - QuTrack: Model Life Cycle Management f...
2019 GDRR: Blockchain Data Analytics - QuTrack: Model Life Cycle Management f...
 

Recently uploaded

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 

Recently uploaded (20)

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 

QMC: Transition Workshop - Monte Carlo and (Randomized) Quasi-Monte Carlo Simulations with Lattice Builder and SSJ - Florian Pluchhammer, May 8, 2018

  • 1. MC AND (R)QMC SIMULATIONS WITH LATTICE BUILDER AND SSJ Maxime Godin, Ayman Jemel, Pierre L’Ecuyer, Pierre Mar- ion, David Munger Florian Puchhammer May 08, 2018 Université de Montréal, Canada
  • 2. Table of contents Lattice Builder Web interface: Show and tell The command line tool Stochastic simulation in Java (SSJ) Mean estimation with RQMC Future Plans 1/19
  • 4. What is Lattice Builder? Goal: obtain highly unifrom point set Joint work with in [0, 1)d for integration/simulation/... A C++ library designed to generate (polynomial) lattice point sets. Provides GUI via web interface. Implements a command line tool. Offers following advantages: High level of generalization. Easy to extend. Can be combined with other software. 2/19
  • 5. Types of lattices I Ordinary lattice (Rank-1-lattice): Construction with generating vector a ∈ Ns . Pn = i n a mod 1 : i ∈ {0, 1, . . . , n − 1} . Polynomial lattice ...are digital nets in base 2 (n = 2m ). Choose base polynomial p(x) ∈ F2[x], deg p = m. Construct generating vector (1, q2, . . . , qs). Expand qj(x) p(x) = l≥wj u (j) l x−l Define the generating matrix Cj, 1 ≤ j ≤ s, via Cj = u (j) i+r i,r , 1 ≤ i ≤ m, 0 ≤ r < m. 3/19
  • 6. Types of lattices II Embedded lattice Exist for both, polynomial and ordinary lattices. One generating vector for n = 2k1 , 2k2 , 2k3 , . . . 4/19
  • 9. Figure of merit (FOM) I Goal: Want good lattice point set for our specific problem. use FOM to assess quality of lattice point set. General form: [D(Pn)]q = ∅=u⊆{1,...,s} γq u [Du(Pn)]q Special form: Coordinate uniform (q = 2). Allows for fast evaluation. [Du(Pn)]q = 1 n n−1 i=0 j∈u ω(p (j) i ). Types: 6/19
  • 10. Figure of merit (FOM) II 1. Spectral criterion (only for ordinary lattices) 2. Pα criterion (α even) 3. Rα criterion (α > 0) 4. Own criterion? Tutorial! 7/19
  • 11. Weights Goal: Give some projections/coordinates more attention. Types: 1. Product weights γu = j∈u γj. 2. Order dependent weights γu = Γ|u|. 3. POD weights γu = Γ|u| j∈u γj. 4. Projection dependent weights (specify for each projection individually). 5. Any combination of the above. 6. Own weights? Tutorial! Each weight can be assigned explicitely or via an expression. 8/19
  • 12. Construction Methods Evaluate: Get merit-value for specific generating vector. Extend: Increase the number of points. All Space: Exhaustive search. Korobov: Search among all vectors of the form a = (1, a, a2 , . . . , as ) mod n. CBC: Determine generating vector coordinate-wise. Fast CBC: Accelerated version of CBC. Uses FFT and requires coord. uniform FOM. All Space, Korobov and CBC allow for random versions to shrink search space. Each method produces code (C, Python, Matlab) to compute point set and provides plots. 9/19
  • 14. Overview Web interface relies on command line tool. Easy to implement own extensions here Tutorial. Can be called from other programs without difficulty. Ideal for simulation purposes. For polynomial lattices: Lattice Builder represents polynomials by sequence of digits, e.g. [1011] ←→ 1 + z2 + z3 . Can create file-output of generating matrices, formatted for further use in Stochastic Simulation in Java (SSJ). 10/19
  • 15. Commands List of commands given in documentation. Can also be obtained by calling Lattice Builder with the option --help. Web interface offers “cheating” button. 11/19
  • 17. What is it, what can it do? Java library designed for stochastic simulation. Extensive range of tools for all kinds of problems: Mean estimation Array-RQMC Density estimation ... Focus on mean estimation with RQMC. 12/19
  • 18. STOCHASTIC SIMULATION IN JAVA (SSJ) Mean estimation with RQMC
  • 19. Mean estimation Approximation of an integral by empirical mean: Ef(X) = [0,1)d f(x) dx ≈ 1 N N−1 i=0 f(ui). 1. Take PN = {p0, p1, . . . , pN−1} ⊆ [0, 1)d highly uniform. 2. Randomize PN ˜PN = {u0, u2, . . . , uN−1}. 3. Compute empirical mean. 4. Repeat independently m times with same PN . 13/19
  • 20. Examples – Genz’ Gaussian peak function Consider the integrand f(x) = exp  − d j=1 a2 j (xj − tj)2   . We use ordinary- and polynomial lattices to compute [0,1)d f(x) dx with d = 3, a = (1, 1, 1), and t = (1/2, 1/2, 1/2). 14/19
  • 21. Ingredients I Integrand: Implemented as interface MonteCarloModelDouble Requires implementation of certain routines, the rest is handeled automatically. Covers broad range of models (functions, models from finance, physics,...). Point set PN : Plain MC, lattices, digital nets,... Possible to use Baker’s transformation. On deeper level every point set is handled as RandomStream. 15/19
  • 22. Ingredients II Randomization: Random Shift, left matrix scramble, nested uniform scramble,... Integration: Handled in RQMCExperimentSeries. 16/19
  • 24. Future Plans Lattice Builder Sobol points, digital nets,... Interlaced polynomial lattices Different figures of merit (walsh, sobolev, t-value,...) More construction methods. Suggestions? SSJ Array RQMC Density estimation Higher order polynomial lattices Suggestions? 17/19
  • 25. Further reading and important links I Lattice Builder home (ordinary lattices only): http://simul.iro.umontreal.ca/latbuilder/ Lattice Builder reference paper: http://www.iro.umontreal.ca/~lecuyer/myftp/papers/latbuilder.pdf Lattice Builder (beta version with polynomial lattices) : https://github.com/PierreMarion23/latbuilder/tree/polynomial Lattice Builder web-interface (beta version) : https://github.com/PierreMarion23/latbuilder/tree/polynomial/web-ui Lattice Builder online web-interface (beta version) : https://mybinder.org/v2/gh/PierreMarion23/latbuilder/polynomial? urlpath=/apps/latbuilder/web-ui/Interface.ipynb L’Ecuyer, Munger 2012, On Figures of Merit for Randomly-Shifted Lattice Rules: https: //www.iro.umontreal.ca/~lecuyer/myftp/papers/mcqmc10-plenary.pdf 18/19
  • 26. Further reading and important links II SSJ home: http://simul.iro.umontreal.ca/ssj/indexe.html SSJ on GitHub: https://github.com/umontreal-simul/ssj SSJ user guide: http://umontreal-simul.github.io/ssj/docs/master/index.html 19/19