2015年一月投資學期末考
劉任昌蒙地卡羅模擬資產價格
切割期數
2015年一月投資學期末考
在老師發放的紙張寫上班級、學號、姓名,記得也在在點名單上簽名,要確認老師看過你的電腦螢幕才可以離開教室。
- [70分]寫出這一題作業放置的網址,一定要改自己的名字,改下拉選單最大值
- [10分]寫出上次作業的網址(因子ETF)
- [10分]寫出再上次作業的網址(移動平均線)
- [10分]寫出其他作業的網址
- 簡略心得
以上程式碼
<STYLE>H1{BACKGROUND-COLOR:GREEN;COLOR:WHITE;TEXT-ALIGN:CENTER;PADDING:1PX;BORDER:SOLID BLUE 10PX;}SELECT{FONT-SIZE: 1.5EM; BACKGROUND-COLOR: LIGHTGREEN;LINE-HEIGHT:1;}
BUTTON{FONT-SIZE: 1.5EM; BACKGROUND-COLOR: YELLOW; WIDTH: 100PX;}
P{FONT-SIZE: 1.5EM; BACKGROUND-COLOR: LIGHTGREEN;}
</STYLE>
<SCRIPT>
function MY(n){
const step = 600.0 / n;
const stdev = 100.0 / Math.sqrt(n);
let x = 0;
let y = 200;
const canvas = document.getElementById("Canvas");
const Brownian = canvas.getContext("2d");
Brownian.beginPath();
Brownian.moveTo(x, y);
for (let i=0; i<n ; i++){
x += step;
y += stdev * Gaussian();
Brownian.lineTo(x, y);}
Brownian.strokeStyle = "blue";
Brownian.lineWidth = 3;
Brownian.stroke();
}
function Gaussian() {// Box-Muller 法
const a = 1 - Math.random(); //區間[0,1)改成(0,1]
const b = Math.random();
const z = Math.sqrt(-2.0*Math.log(a))*Math.cos( 2.0*Math.PI*b);
return z;
}
</SCRIPT>
<H1>劉任昌蒙地卡羅模擬資產價格</H1>
<P>切割期數<SELECT ONCHANGE='MY(this.value)'>
<OPTION>0</OPTION>
<OPTION>1</OPTION>
<OPTION>2</OPTION>
<OPTION>3</OPTION>
<OPTION>4</OPTION>
<OPTION>5</OPTION>
<OPTION>6</OPTION>
<OPTION>7</OPTION>
<OPTION>8</OPTION>
<OPTION>9</OPTION>
<OPTION>10</OPTION>
<OPTION>20</OPTION>
<OPTION>30</OPTION>
<OPTION>40</OPTION>
<OPTION>50</OPTION>
<OPTION>100</OPTION></SELECT>
<P>
<canvas id="Canvas" width="600" height="400"></canvas>
</P>
https://kk0725.blogspot.com/2025/01/2025.html
回覆刪除https://keiime.blogspot.com/2025/01/0-1-2-3-4-5-6-7-8-9-10-20-30-40-50-100.html
回覆刪除https://asdfg12789.blogspot.com/2025/01/d11216208-d0109.html
回覆刪除https://htmlcssjavascriptjavapython.blogspot.com/2025/01/blog-post.html
回覆刪除https://d11216116.blogspot.com/2025/01/h1background-colorgreencolorwhitetext.html
回覆刪除https://masaki-kubota.blogspot.com/2025/01/h1background-colorgreencolorwhitetext.html
回覆刪除https://whitexd.blogspot.com/2025/01/h1background-colorgreencolorwhitetext.html
回覆刪除https://wttttfff.blogspot.com/2025/01/blog-post_8.html
回覆刪除https://rrrrr-eeeee.blogspot.com/2025/01/2025.html
回覆刪除https://rivkydf.blogspot.com/2025/01/blog-post.html
回覆刪除https://ryanareryan.blogspot.com/2025/01/2015.html
回覆刪除https://ziyun040818.blogspot.com/2025/01/20151.html
回覆刪除https://www.blogger.com/blog/post/edit/2910868344786410340/2378664260068155845
回覆刪除https://d11051135.blogspot.com/2025/01/h1background-colorgreencolorwhitetext.html
回覆刪除https://tustning.blogspot.com/2025/01/blog-post.html
回覆刪除https://lushiyan205.blogspot.com/2025/01/blog-post.html
回覆刪除https://d11216106.blogspot.com/2025/01/h1background-colorgreencolorwhitetext.html
回覆刪除https://kk0725.blogspot.com/2025/01/blog-post.html 因子ETF
回覆刪除https://asd0908449304.blogspot.com/2025/01/h1borderdashed-14px-pink-h210px.html
回覆刪除https://ctz642895.blogspot.com/2025/01/2025.html
回覆刪除作者已經移除這則留言。
回覆刪除https://williamlin970818.blogspot.com/2025/01/2015.html
回覆刪除https://d112161152.blogspot.com/2025/01/blog-post.html
回覆刪除https://rainhtmlcssjavascriptjavapython.blogspot.com/2025/01/20151.html
回覆刪除https://kk0725.blogspot.com/2024/12/spy2060.html 移動平均線
回覆刪除https://jsusiai.blogspot.com/2025/01/blog-post.html
回覆刪除https://d11219105.blogspot.com/2025/01/d11219105.html
回覆刪除https://d11216114.blogspot.com/2025/01/d11216114.html
回覆刪除作者已經移除這則留言。
回覆刪除https://amyxl6316.blogspot.com/2025/01/2015.html
回覆刪除https://d11219204.blogspot.com/2025/01/2015.html
回覆刪除https://d11216204.blogspot.com/2025/01/d11216204-2015.html
回覆刪除https://d11216107.blogspot.com/2025/01/ai.html
回覆刪除https://5lujo.blogspot.com/2025/01/h1background-colorgreencolorwhitetext_8.html
回覆刪除https://roger940530.blogspot.com/2025/01/h1background-colorgreencolorwhitetext.html
回覆刪除https://d11216201.blogspot.com/
回覆刪除https://20240912firstclass.blogspot.com/2025/01/h1background-colorgreencolorwhitetext.html
回覆刪除https://grace8166.blogspot.com/2025/01/h1background-colorgreencolorwhitetext.html
回覆刪除https://d11216213.blogspot.com/2025/01/h1background-colorgreencolorwhitetext.html
回覆刪除