SlideShare a Scribd company logo
1 of 3
Download to read offline
mc_simulation
from mc_simulation import AverageModel
from mc_simulation import VolatilityModel
from mc_simulation import MonteCarloSimulation
Class: AverageModel
Description
Parameters link:string Path to the document where data to be
analysed are stored.
file_type:string, optional
(def. = ‘csv’)
Possible values: ‘xls’ or ‘csv’.
column_name:string, optional
(def. = ‘Close’)
Name of the column to be analysed.
p_value:float, optional
(def. = 0.95)
The rejection region the user wants to
adopt for running the t-test on the
parameters of the average models.
(must be <1 and >0)
Methods fit() Computes the Augmented Dikey-Fuller
test. If this step is successful, it evaluates
9 different ARMA models, selecting the
best one basing its decision on the
Akaike Information Criterion (AIC). It also
takes into account the t-test result on
each parameter in order to choose the
best-fitting model.
Fields MeanModelsDict A dictionary containing, for each of the
ARMA models computed, respectively:
- the Akaike information criterion
value
- the value of each parameter
- the result of the t-test on each
parameter
- the covariance matrix of the
parameters.
bestModel A string indicating the best-fitting model
MeanParamsDict A dictionary containing the parameters’
values of the best model.
t_test_values A dictionary containing the results of
the t-test of every parameter of the
best model.
adf_result The result of the Augmented Dickey-
Fuller Test.
Class: VolatilityModel
Parameters average_model:AverageModel The average model computed on the
same time series.
errors_distribution:string, optional
(def. = ‘Normal’)
The distribution of the errors. Possible
values are: ‘t’ for the t-Student, , ‘ged’
for the generalized normal distribution,
or ‘skewt’ for the Skewed
distribution.
p_value:float, optional
(def. = 0.95)
The rejection region the user wants to
adopt for running the t-test on the
parameters of the volatility models.
(must be <1 and >0)
Methods fit() It evaluates 6 different GARCH models,
selecting the best one basing its decision
on the Akaike Information Criterion
(AIC). It also takes into account the t-test
result on each parameter in order to
choose the best-fitting model.
Fields VarianceModelsDict A dictionary containing, for each of the
GARCH models computed, respectively:
- the Akaike information criterion
value
- the value of each parameter
- the result of the t-test on each
parameter.
bestVolatilityModel A string indicating the best-fitting
model.
VolatilityParamsDict A dictionary containing the parameters’
values of the best model.
t_test_values A dictionary containing the results of
the t-test of every parameter of the
best model.
Class: MonteCarloSimulation
Parameters volatility_model:VolatilityModel The volatility model computed on the
same time series.
time_horizon:int, optional
(def. = 100)
The forecast horizon, i.e. the number of
observations to simulate after the last
real one.
number_simulations:int, optional
(def. = 50)
The number of scenarios to be created.
Methods get_simulation() This method provides a given number of
simulations for a given time horizon as
defined in input at the creation of the
instance.
get_extreme_scenarios()
parameters:
- criterion: string. Possible values:
‘returns_average’ (def.), ‘last_obs’
This method returns the best and worst
scenarios of the simulation created with
the previous method. The best and
worst are so defined accordingly to two
possible criteria:
- the average of the returns
- the last observation
get_conf_interval()
parameters:
- conf_interval: float. Admitted values’
interval: [1.0 ; 0.5[
- criterion: string. Possible values:
‘returns_average’ (def.), ‘last_obs’
This method returns the scenario at the
x percentile (where x must be specified),
and at the 1-x percentile. The value must
be between 1 and 0.5. The best and
worst are so defined accordingly to two
possible criteria:
- the average of the returns
- the last observation.
get_average() This method shows the average of all
scenarios previously generated,
providing also the last observation’s
value.

More Related Content

What's hot

Hydrocarbon Phase Behaviour
Hydrocarbon Phase BehaviourHydrocarbon Phase Behaviour
Hydrocarbon Phase BehaviourM.T.H Group
 
7. Key-Value Databases: In Depth
7. Key-Value Databases: In Depth7. Key-Value Databases: In Depth
7. Key-Value Databases: In DepthFabio Fumarola
 
Solar thermal enhanced oil recovery; feasibility study for the Gulf of Guinea
Solar thermal enhanced oil recovery; feasibility study for the Gulf of GuineaSolar thermal enhanced oil recovery; feasibility study for the Gulf of Guinea
Solar thermal enhanced oil recovery; feasibility study for the Gulf of GuineaEng. Kenne Beauclair
 
What is Talend | Talend Tutorial for Beginners | Talend Online Training | Edu...
What is Talend | Talend Tutorial for Beginners | Talend Online Training | Edu...What is Talend | Talend Tutorial for Beginners | Talend Online Training | Edu...
What is Talend | Talend Tutorial for Beginners | Talend Online Training | Edu...Edureka!
 
Q913 rfp w2 lec 6
Q913 rfp w2 lec 6Q913 rfp w2 lec 6
Q913 rfp w2 lec 6AFATous
 
Electrohydraulic governing system
Electrohydraulic governing systemElectrohydraulic governing system
Electrohydraulic governing systemAshvani Shukla
 
Relative permeability presentation
Relative permeability presentationRelative permeability presentation
Relative permeability presentationM petro
 
Gas Turbine Fire Suppression Introduction
Gas Turbine Fire Suppression IntroductionGas Turbine Fire Suppression Introduction
Gas Turbine Fire Suppression Introductionkevta
 
Dynamic Simulation of an LPG Storage Facility in Aspen HYSYS, along with a pu...
Dynamic Simulation of an LPG Storage Facility in Aspen HYSYS, along with a pu...Dynamic Simulation of an LPG Storage Facility in Aspen HYSYS, along with a pu...
Dynamic Simulation of an LPG Storage Facility in Aspen HYSYS, along with a pu...Waqas Manzoor
 
Heat Exchanger Tube Rupture Scenario Evaluation using Aspen HYSYS Dynamics
Heat Exchanger Tube Rupture Scenario Evaluation using Aspen HYSYS DynamicsHeat Exchanger Tube Rupture Scenario Evaluation using Aspen HYSYS Dynamics
Heat Exchanger Tube Rupture Scenario Evaluation using Aspen HYSYS DynamicsProcess Ecology Inc
 
Overview of a geophysicist workflow.
Overview of a geophysicist workflow.Overview of a geophysicist workflow.
Overview of a geophysicist workflow.Prince Felix
 
Workshop Microservices - Microservices com Spring Cloud e Netflix OSS
Workshop Microservices - Microservices com Spring Cloud e Netflix OSSWorkshop Microservices - Microservices com Spring Cloud e Netflix OSS
Workshop Microservices - Microservices com Spring Cloud e Netflix OSSRodrigo Cândido da Silva
 
Saudi Aramco Carbon Management - May 2013
Saudi Aramco Carbon Management - May 2013Saudi Aramco Carbon Management - May 2013
Saudi Aramco Carbon Management - May 2013Global CCS Institute
 

What's hot (20)

Boiler Feedwater Pumps
Boiler Feedwater PumpsBoiler Feedwater Pumps
Boiler Feedwater Pumps
 
CMC.pptx
CMC.pptxCMC.pptx
CMC.pptx
 
Hydrocarbon Phase Behaviour
Hydrocarbon Phase BehaviourHydrocarbon Phase Behaviour
Hydrocarbon Phase Behaviour
 
7. Key-Value Databases: In Depth
7. Key-Value Databases: In Depth7. Key-Value Databases: In Depth
7. Key-Value Databases: In Depth
 
Solar thermal enhanced oil recovery; feasibility study for the Gulf of Guinea
Solar thermal enhanced oil recovery; feasibility study for the Gulf of GuineaSolar thermal enhanced oil recovery; feasibility study for the Gulf of Guinea
Solar thermal enhanced oil recovery; feasibility study for the Gulf of Guinea
 
What is Talend | Talend Tutorial for Beginners | Talend Online Training | Edu...
What is Talend | Talend Tutorial for Beginners | Talend Online Training | Edu...What is Talend | Talend Tutorial for Beginners | Talend Online Training | Edu...
What is Talend | Talend Tutorial for Beginners | Talend Online Training | Edu...
 
Q913 rfp w2 lec 6
Q913 rfp w2 lec 6Q913 rfp w2 lec 6
Q913 rfp w2 lec 6
 
Ppt af
Ppt afPpt af
Ppt af
 
Electrohydraulic governing system
Electrohydraulic governing systemElectrohydraulic governing system
Electrohydraulic governing system
 
36809944-Gas-Turbine-Control.ppt
36809944-Gas-Turbine-Control.ppt36809944-Gas-Turbine-Control.ppt
36809944-Gas-Turbine-Control.ppt
 
Gas hydrates
Gas hydrates Gas hydrates
Gas hydrates
 
Methane hydrate ppt
Methane hydrate pptMethane hydrate ppt
Methane hydrate ppt
 
Relative permeability presentation
Relative permeability presentationRelative permeability presentation
Relative permeability presentation
 
Gas Turbine Fire Suppression Introduction
Gas Turbine Fire Suppression IntroductionGas Turbine Fire Suppression Introduction
Gas Turbine Fire Suppression Introduction
 
Dynamic Simulation of an LPG Storage Facility in Aspen HYSYS, along with a pu...
Dynamic Simulation of an LPG Storage Facility in Aspen HYSYS, along with a pu...Dynamic Simulation of an LPG Storage Facility in Aspen HYSYS, along with a pu...
Dynamic Simulation of an LPG Storage Facility in Aspen HYSYS, along with a pu...
 
Heat Exchanger Tube Rupture Scenario Evaluation using Aspen HYSYS Dynamics
Heat Exchanger Tube Rupture Scenario Evaluation using Aspen HYSYS DynamicsHeat Exchanger Tube Rupture Scenario Evaluation using Aspen HYSYS Dynamics
Heat Exchanger Tube Rupture Scenario Evaluation using Aspen HYSYS Dynamics
 
Overview of a geophysicist workflow.
Overview of a geophysicist workflow.Overview of a geophysicist workflow.
Overview of a geophysicist workflow.
 
Workshop Microservices - Microservices com Spring Cloud e Netflix OSS
Workshop Microservices - Microservices com Spring Cloud e Netflix OSSWorkshop Microservices - Microservices com Spring Cloud e Netflix OSS
Workshop Microservices - Microservices com Spring Cloud e Netflix OSS
 
Unitization
UnitizationUnitization
Unitization
 
Saudi Aramco Carbon Management - May 2013
Saudi Aramco Carbon Management - May 2013Saudi Aramco Carbon Management - May 2013
Saudi Aramco Carbon Management - May 2013
 

Similar to mc_simulation documentation

Logistic Regression using Mahout
Logistic Regression using MahoutLogistic Regression using Mahout
Logistic Regression using Mahouttanuvir
 
Grid search.pptx
Grid search.pptxGrid search.pptx
Grid search.pptxAbithaSam
 
Monte Carlo Simulations
Monte Carlo SimulationsMonte Carlo Simulations
Monte Carlo Simulationsgfbreaux
 
wk5ppt1_Titanic
wk5ppt1_Titanicwk5ppt1_Titanic
wk5ppt1_TitanicAliciaWei1
 
Accounting for uncertainty in species delineation during the analysis of envi...
Accounting for uncertainty in species delineation during the analysis of envi...Accounting for uncertainty in species delineation during the analysis of envi...
Accounting for uncertainty in species delineation during the analysis of envi...methodsecolevol
 
Competition 1 (blog 1)
Competition 1 (blog 1)Competition 1 (blog 1)
Competition 1 (blog 1)TarunPaparaju
 
Two methods for optimising cognitive model parameters
Two methods for optimising cognitive model parametersTwo methods for optimising cognitive model parameters
Two methods for optimising cognitive model parametersUniversity of Huddersfield
 
MS SQL SERVER: Microsoft sequence clustering and association rules
MS SQL SERVER: Microsoft sequence clustering and association rulesMS SQL SERVER: Microsoft sequence clustering and association rules
MS SQL SERVER: Microsoft sequence clustering and association rulesDataminingTools Inc
 
MS SQL SERVER: Microsoft sequence clustering and association rules
MS SQL SERVER: Microsoft sequence clustering and association rulesMS SQL SERVER: Microsoft sequence clustering and association rules
MS SQL SERVER: Microsoft sequence clustering and association rulessqlserver content
 
Lab11bRevf.docLab 11b Alien InvasionCS 122 • 15 Points .docx
Lab11bRevf.docLab 11b Alien InvasionCS 122 • 15 Points .docxLab11bRevf.docLab 11b Alien InvasionCS 122 • 15 Points .docx
Lab11bRevf.docLab 11b Alien InvasionCS 122 • 15 Points .docxDIPESH30
 
AHF_IDETC_2011_Jie
AHF_IDETC_2011_JieAHF_IDETC_2011_Jie
AHF_IDETC_2011_JieMDO_Lab
 
Lab 2: Classification and Regression Prediction Models, training and testing ...
Lab 2: Classification and Regression Prediction Models, training and testing ...Lab 2: Classification and Regression Prediction Models, training and testing ...
Lab 2: Classification and Regression Prediction Models, training and testing ...Yao Yao
 
Machinelearning Spark Hadoop User Group Munich Meetup 2016
Machinelearning Spark Hadoop User Group Munich Meetup 2016Machinelearning Spark Hadoop User Group Munich Meetup 2016
Machinelearning Spark Hadoop User Group Munich Meetup 2016Comsysto Reply GmbH
 
maxbox starter60 machine learning
maxbox starter60 machine learningmaxbox starter60 machine learning
maxbox starter60 machine learningMax Kleiner
 

Similar to mc_simulation documentation (20)

BPstudy sklearn 20180925
BPstudy sklearn 20180925BPstudy sklearn 20180925
BPstudy sklearn 20180925
 
Logistic Regression using Mahout
Logistic Regression using MahoutLogistic Regression using Mahout
Logistic Regression using Mahout
 
SWE-6 TESTING.pptx
SWE-6 TESTING.pptxSWE-6 TESTING.pptx
SWE-6 TESTING.pptx
 
Grid search.pptx
Grid search.pptxGrid search.pptx
Grid search.pptx
 
Monte Carlo Simulations
Monte Carlo SimulationsMonte Carlo Simulations
Monte Carlo Simulations
 
wk5ppt1_Titanic
wk5ppt1_Titanicwk5ppt1_Titanic
wk5ppt1_Titanic
 
Accounting for uncertainty in species delineation during the analysis of envi...
Accounting for uncertainty in species delineation during the analysis of envi...Accounting for uncertainty in species delineation during the analysis of envi...
Accounting for uncertainty in species delineation during the analysis of envi...
 
Competition 1 (blog 1)
Competition 1 (blog 1)Competition 1 (blog 1)
Competition 1 (blog 1)
 
Two methods for optimising cognitive model parameters
Two methods for optimising cognitive model parametersTwo methods for optimising cognitive model parameters
Two methods for optimising cognitive model parameters
 
MS SQL SERVER: Microsoft sequence clustering and association rules
MS SQL SERVER: Microsoft sequence clustering and association rulesMS SQL SERVER: Microsoft sequence clustering and association rules
MS SQL SERVER: Microsoft sequence clustering and association rules
 
MS SQL SERVER: Microsoft sequence clustering and association rules
MS SQL SERVER: Microsoft sequence clustering and association rulesMS SQL SERVER: Microsoft sequence clustering and association rules
MS SQL SERVER: Microsoft sequence clustering and association rules
 
Using matlab simulink
Using matlab simulinkUsing matlab simulink
Using matlab simulink
 
Using matlab simulink
Using matlab simulinkUsing matlab simulink
Using matlab simulink
 
wk5ppt2_Iris
wk5ppt2_Iriswk5ppt2_Iris
wk5ppt2_Iris
 
Lab11bRevf.docLab 11b Alien InvasionCS 122 • 15 Points .docx
Lab11bRevf.docLab 11b Alien InvasionCS 122 • 15 Points .docxLab11bRevf.docLab 11b Alien InvasionCS 122 • 15 Points .docx
Lab11bRevf.docLab 11b Alien InvasionCS 122 • 15 Points .docx
 
AHF_IDETC_2011_Jie
AHF_IDETC_2011_JieAHF_IDETC_2011_Jie
AHF_IDETC_2011_Jie
 
Lab 2: Classification and Regression Prediction Models, training and testing ...
Lab 2: Classification and Regression Prediction Models, training and testing ...Lab 2: Classification and Regression Prediction Models, training and testing ...
Lab 2: Classification and Regression Prediction Models, training and testing ...
 
Machinelearning Spark Hadoop User Group Munich Meetup 2016
Machinelearning Spark Hadoop User Group Munich Meetup 2016Machinelearning Spark Hadoop User Group Munich Meetup 2016
Machinelearning Spark Hadoop User Group Munich Meetup 2016
 
maxbox starter60 machine learning
maxbox starter60 machine learningmaxbox starter60 machine learning
maxbox starter60 machine learning
 
R Cheat Sheet
R Cheat SheetR Cheat Sheet
R Cheat Sheet
 

Recently uploaded

VIP Independent Call Girls in Bandra West 🌹 9920725232 ( Call Me ) Mumbai Esc...
VIP Independent Call Girls in Bandra West 🌹 9920725232 ( Call Me ) Mumbai Esc...VIP Independent Call Girls in Bandra West 🌹 9920725232 ( Call Me ) Mumbai Esc...
VIP Independent Call Girls in Bandra West 🌹 9920725232 ( Call Me ) Mumbai Esc...dipikadinghjn ( Why You Choose Us? ) Escorts
 
03_Emmanuel Ndiaye_Degroof Petercam.pptx
03_Emmanuel Ndiaye_Degroof Petercam.pptx03_Emmanuel Ndiaye_Degroof Petercam.pptx
03_Emmanuel Ndiaye_Degroof Petercam.pptxFinTech Belgium
 
Shrambal_Distributors_Newsletter_Apr-2024 (1).pdf
Shrambal_Distributors_Newsletter_Apr-2024 (1).pdfShrambal_Distributors_Newsletter_Apr-2024 (1).pdf
Shrambal_Distributors_Newsletter_Apr-2024 (1).pdfvikashdidwania1
 
The Economic History of the U.S. Lecture 20.pdf
The Economic History of the U.S. Lecture 20.pdfThe Economic History of the U.S. Lecture 20.pdf
The Economic History of the U.S. Lecture 20.pdfGale Pooley
 
VIP Independent Call Girls in Mira Bhayandar 🌹 9920725232 ( Call Me ) Mumbai ...
VIP Independent Call Girls in Mira Bhayandar 🌹 9920725232 ( Call Me ) Mumbai ...VIP Independent Call Girls in Mira Bhayandar 🌹 9920725232 ( Call Me ) Mumbai ...
VIP Independent Call Girls in Mira Bhayandar 🌹 9920725232 ( Call Me ) Mumbai ...dipikadinghjn ( Why You Choose Us? ) Escorts
 
The Economic History of the U.S. Lecture 21.pdf
The Economic History of the U.S. Lecture 21.pdfThe Economic History of the U.S. Lecture 21.pdf
The Economic History of the U.S. Lecture 21.pdfGale Pooley
 
The Economic History of the U.S. Lecture 25.pdf
The Economic History of the U.S. Lecture 25.pdfThe Economic History of the U.S. Lecture 25.pdf
The Economic History of the U.S. Lecture 25.pdfGale Pooley
 
The Economic History of the U.S. Lecture 26.pdf
The Economic History of the U.S. Lecture 26.pdfThe Economic History of the U.S. Lecture 26.pdf
The Economic History of the U.S. Lecture 26.pdfGale Pooley
 
Call Girls in New Friends Colony Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escort...
Call Girls in New Friends Colony Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escort...Call Girls in New Friends Colony Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escort...
Call Girls in New Friends Colony Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escort...Delhi Call girls
 
TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...
TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...
TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...ssifa0344
 
Top Rated Pune Call Girls Dighi ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Dighi ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Dighi ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Dighi ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Call Girls in Nagpur High Profile
 
Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...
Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...
Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...priyasharma62062
 
Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...
Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...
Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...priyasharma62062
 
WhatsApp 📞 Call : 9892124323 ✅Call Girls In Chembur ( Mumbai ) secure service
WhatsApp 📞 Call : 9892124323  ✅Call Girls In Chembur ( Mumbai ) secure serviceWhatsApp 📞 Call : 9892124323  ✅Call Girls In Chembur ( Mumbai ) secure service
WhatsApp 📞 Call : 9892124323 ✅Call Girls In Chembur ( Mumbai ) secure servicePooja Nehwal
 
VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...dipikadinghjn ( Why You Choose Us? ) Escorts
 
Vip Call US 📞 7738631006 ✅Call Girls In Sakinaka ( Mumbai )
Vip Call US 📞 7738631006 ✅Call Girls In Sakinaka ( Mumbai )Vip Call US 📞 7738631006 ✅Call Girls In Sakinaka ( Mumbai )
Vip Call US 📞 7738631006 ✅Call Girls In Sakinaka ( Mumbai )Pooja Nehwal
 
VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...
VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...
VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...dipikadinghjn ( Why You Choose Us? ) Escorts
 
The Economic History of the U.S. Lecture 18.pdf
The Economic History of the U.S. Lecture 18.pdfThe Economic History of the U.S. Lecture 18.pdf
The Economic History of the U.S. Lecture 18.pdfGale Pooley
 

Recently uploaded (20)

VIP Independent Call Girls in Bandra West 🌹 9920725232 ( Call Me ) Mumbai Esc...
VIP Independent Call Girls in Bandra West 🌹 9920725232 ( Call Me ) Mumbai Esc...VIP Independent Call Girls in Bandra West 🌹 9920725232 ( Call Me ) Mumbai Esc...
VIP Independent Call Girls in Bandra West 🌹 9920725232 ( Call Me ) Mumbai Esc...
 
03_Emmanuel Ndiaye_Degroof Petercam.pptx
03_Emmanuel Ndiaye_Degroof Petercam.pptx03_Emmanuel Ndiaye_Degroof Petercam.pptx
03_Emmanuel Ndiaye_Degroof Petercam.pptx
 
Shrambal_Distributors_Newsletter_Apr-2024 (1).pdf
Shrambal_Distributors_Newsletter_Apr-2024 (1).pdfShrambal_Distributors_Newsletter_Apr-2024 (1).pdf
Shrambal_Distributors_Newsletter_Apr-2024 (1).pdf
 
The Economic History of the U.S. Lecture 20.pdf
The Economic History of the U.S. Lecture 20.pdfThe Economic History of the U.S. Lecture 20.pdf
The Economic History of the U.S. Lecture 20.pdf
 
VIP Independent Call Girls in Mira Bhayandar 🌹 9920725232 ( Call Me ) Mumbai ...
VIP Independent Call Girls in Mira Bhayandar 🌹 9920725232 ( Call Me ) Mumbai ...VIP Independent Call Girls in Mira Bhayandar 🌹 9920725232 ( Call Me ) Mumbai ...
VIP Independent Call Girls in Mira Bhayandar 🌹 9920725232 ( Call Me ) Mumbai ...
 
The Economic History of the U.S. Lecture 21.pdf
The Economic History of the U.S. Lecture 21.pdfThe Economic History of the U.S. Lecture 21.pdf
The Economic History of the U.S. Lecture 21.pdf
 
The Economic History of the U.S. Lecture 25.pdf
The Economic History of the U.S. Lecture 25.pdfThe Economic History of the U.S. Lecture 25.pdf
The Economic History of the U.S. Lecture 25.pdf
 
The Economic History of the U.S. Lecture 26.pdf
The Economic History of the U.S. Lecture 26.pdfThe Economic History of the U.S. Lecture 26.pdf
The Economic History of the U.S. Lecture 26.pdf
 
Call Girls in New Friends Colony Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escort...
Call Girls in New Friends Colony Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escort...Call Girls in New Friends Colony Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escort...
Call Girls in New Friends Colony Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escort...
 
TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...
TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...
TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...
 
Top Rated Pune Call Girls Dighi ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Dighi ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Dighi ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Dighi ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
 
(INDIRA) Call Girl Mumbai Call Now 8250077686 Mumbai Escorts 24x7
(INDIRA) Call Girl Mumbai Call Now 8250077686 Mumbai Escorts 24x7(INDIRA) Call Girl Mumbai Call Now 8250077686 Mumbai Escorts 24x7
(INDIRA) Call Girl Mumbai Call Now 8250077686 Mumbai Escorts 24x7
 
Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...
Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...
Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...
 
Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...
Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...
Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...
 
WhatsApp 📞 Call : 9892124323 ✅Call Girls In Chembur ( Mumbai ) secure service
WhatsApp 📞 Call : 9892124323  ✅Call Girls In Chembur ( Mumbai ) secure serviceWhatsApp 📞 Call : 9892124323  ✅Call Girls In Chembur ( Mumbai ) secure service
WhatsApp 📞 Call : 9892124323 ✅Call Girls In Chembur ( Mumbai ) secure service
 
(Vedika) Low Rate Call Girls in Pune Call Now 8250077686 Pune Escorts 24x7
(Vedika) Low Rate Call Girls in Pune Call Now 8250077686 Pune Escorts 24x7(Vedika) Low Rate Call Girls in Pune Call Now 8250077686 Pune Escorts 24x7
(Vedika) Low Rate Call Girls in Pune Call Now 8250077686 Pune Escorts 24x7
 
VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...
 
Vip Call US 📞 7738631006 ✅Call Girls In Sakinaka ( Mumbai )
Vip Call US 📞 7738631006 ✅Call Girls In Sakinaka ( Mumbai )Vip Call US 📞 7738631006 ✅Call Girls In Sakinaka ( Mumbai )
Vip Call US 📞 7738631006 ✅Call Girls In Sakinaka ( Mumbai )
 
VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...
VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...
VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...
 
The Economic History of the U.S. Lecture 18.pdf
The Economic History of the U.S. Lecture 18.pdfThe Economic History of the U.S. Lecture 18.pdf
The Economic History of the U.S. Lecture 18.pdf
 

mc_simulation documentation

  • 1. mc_simulation from mc_simulation import AverageModel from mc_simulation import VolatilityModel from mc_simulation import MonteCarloSimulation Class: AverageModel Description Parameters link:string Path to the document where data to be analysed are stored. file_type:string, optional (def. = ‘csv’) Possible values: ‘xls’ or ‘csv’. column_name:string, optional (def. = ‘Close’) Name of the column to be analysed. p_value:float, optional (def. = 0.95) The rejection region the user wants to adopt for running the t-test on the parameters of the average models. (must be <1 and >0) Methods fit() Computes the Augmented Dikey-Fuller test. If this step is successful, it evaluates 9 different ARMA models, selecting the best one basing its decision on the Akaike Information Criterion (AIC). It also takes into account the t-test result on each parameter in order to choose the best-fitting model. Fields MeanModelsDict A dictionary containing, for each of the ARMA models computed, respectively: - the Akaike information criterion value - the value of each parameter - the result of the t-test on each parameter - the covariance matrix of the parameters. bestModel A string indicating the best-fitting model MeanParamsDict A dictionary containing the parameters’ values of the best model. t_test_values A dictionary containing the results of the t-test of every parameter of the best model. adf_result The result of the Augmented Dickey- Fuller Test.
  • 2. Class: VolatilityModel Parameters average_model:AverageModel The average model computed on the same time series. errors_distribution:string, optional (def. = ‘Normal’) The distribution of the errors. Possible values are: ‘t’ for the t-Student, , ‘ged’ for the generalized normal distribution, or ‘skewt’ for the Skewed distribution. p_value:float, optional (def. = 0.95) The rejection region the user wants to adopt for running the t-test on the parameters of the volatility models. (must be <1 and >0) Methods fit() It evaluates 6 different GARCH models, selecting the best one basing its decision on the Akaike Information Criterion (AIC). It also takes into account the t-test result on each parameter in order to choose the best-fitting model. Fields VarianceModelsDict A dictionary containing, for each of the GARCH models computed, respectively: - the Akaike information criterion value - the value of each parameter - the result of the t-test on each parameter. bestVolatilityModel A string indicating the best-fitting model. VolatilityParamsDict A dictionary containing the parameters’ values of the best model. t_test_values A dictionary containing the results of the t-test of every parameter of the best model. Class: MonteCarloSimulation Parameters volatility_model:VolatilityModel The volatility model computed on the same time series. time_horizon:int, optional (def. = 100) The forecast horizon, i.e. the number of observations to simulate after the last real one. number_simulations:int, optional (def. = 50) The number of scenarios to be created. Methods get_simulation() This method provides a given number of simulations for a given time horizon as defined in input at the creation of the instance.
  • 3. get_extreme_scenarios() parameters: - criterion: string. Possible values: ‘returns_average’ (def.), ‘last_obs’ This method returns the best and worst scenarios of the simulation created with the previous method. The best and worst are so defined accordingly to two possible criteria: - the average of the returns - the last observation get_conf_interval() parameters: - conf_interval: float. Admitted values’ interval: [1.0 ; 0.5[ - criterion: string. Possible values: ‘returns_average’ (def.), ‘last_obs’ This method returns the scenario at the x percentile (where x must be specified), and at the 1-x percentile. The value must be between 1 and 0.5. The best and worst are so defined accordingly to two possible criteria: - the average of the returns - the last observation. get_average() This method shows the average of all scenarios previously generated, providing also the last observation’s value.