SkillAgentSearch skills...

Montecarlorisk

Calculating Value at Risk with Spark

Install / Use

/learn @sryza/Montecarlorisk
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Spark Risk Monte Carlo

A simple Spark application that calculates Value at Risk using the Monte Carlo method.

To make a jar:

mvn package

To run from a gateway node in a CDH5.1+ cluster:

spark-submit --class com.cloudera.datascience.montecarlorisk.MonteCarloRisk --master local \
  target/montecarlo-risk-0.0.1-SNAPSHOT.jar \
  <instruments file> <num trials> <parallellism> <factor means file> <factor covariances file>

This will run the application in a single local process. If the cluster is running a Spark standalone cluster manager, you can replace "--master local" with "--master spark://<master host>:<master port>".

If the cluster is running YARN, you can replace "--master local" with "--master yarn".

Related Skills

View on GitHub
GitHub Stars56
CategoryDevelopment
Updated2y ago
Forks29

Languages

Scala

Security Score

80/100

Audited on Jul 15, 2023

No findings