cadCAD edu
Slide 1 (Logo)
Slide 2 (How to)
Slide 3 (Why Should You Care)
Slide 4 (What this video covers)
Slide 5 (Let's get started…)
Notebook (Table of Contents)
Notebook (Dependencies)
As in any cadCAD Hack, we have two dependency sections
Notebook (Analysis)
gamma_proc
function, which takes as a input a number of points to be generated and returns a list of random numbers. It works by invoking the scipy stats gamma
class, and by using the rvs
method of it. We are setting arbitrary numbers here for generating something that is close to the real data, although this can be done automatically by using Statistical Fitting procedures.generate_gamma
that takes a cadCAD results dataframe, and returns a new dataframe that contains two additional columns: one which is called origin
, which will keep track of what data is generated or real, and another called daily_price
, which contains the real numbers. By taking the old and the new dataframe together, we concatenate them so that we can compare them into a single visualization.origin
column so that it indicates that the source is the real data, and we pipe that dataframe into our generate_gamma
function.px.histogram
method.daily_price
into x
, we can visualize the distribution of the prices, and by passing color equals origin
, we can differentiate between the source. Also, we pass margin equals violin
so that we have a second visualization of the distribution.normal_proc
function instead of the gamma_proc
, where we invoke st.norm.rvs
for generating normal numbers rather than gamma ones. Also, on the fig_df
definition, we set the variable of interest as being normed
, which is equal to the difference on daily prices divided by the current price.
Notebook (OUTRO)
Slide 5 (Happy Hacking)