or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
Script: Generating Stochastic Processes
tags:
cadCAD edu
Links
https://drive.google.com/drive/u/0/folders/1dLm1z2erLPCER5HU9Lm1MuxOl8y-iAkE
Transcript
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 statsgamma
class, and by using thervs
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 calledorigin
, which will keep track of what data is generated or real, and another calleddaily_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 ourgenerate_gamma
function.px.histogram
method.daily_price
intox
, we can visualize the distribution of the prices, and by passing color equalsorigin
, we can differentiate between the source. Also, we pass margin equalsviolin
so that we have a second visualization of the distribution.normal_proc
function instead of thegamma_proc
, where we invokest.norm.rvs
for generating normal numbers rather than gamma ones. Also, on thefig_df
definition, we set the variable of interest as beingnormed
, which is equal to the difference on daily prices divided by the current price.Notebook (OUTRO)
Slide 5 (Happy Hacking)