Navigation

Search

Categories

On this page

墨攻 之 中國古代戰爭藝術 -- 甕城
賀 愛上大溪地 網站位列 Google 搜尋第二位
2006 FALL Financial Summit Workshop in Taipei
Mass Calculation of Correlation for Pair Trading
Regular Expression, Bioinfomatics, and Partial Matching
Regular Expression and Free data on the Internet
FRM Passed
FpML and financial derivatives
Google Map API and ArcWeb Services
100 Minor Peak Trails in Taiwan
The first cache I found!
太空電梯的運輸成本
太空電梯的錨站
您要到幾樓? 第一億樓? 請搭太空電梯...
Operational Risk and Multi-Agent System

Archive

Blogroll

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

RSS 2.0 | Atom 1.0 | CDF

Send mail to the author(s) E-mail

Total Posts: 82
This Year: 0
This Month: 0
This Week: 0
Comments: 61

Sign In
Pick a theme:

 Saturday, December 16, 2006
Saturday, December 16, 2006 9:40:32 PM (台北標準時間, UTC+08:00) ( 科學與技術 | 電影評論 )

墨攻 這部電影有一個重要的名詞 -- 甕城, 但電影中並沒有解釋什麼是甕城.

甕城是一種重要的防禦工事, 在城門的內側或外側加築一道城牆及城門, 兩道城牆之間的空間並不大. 在敵人攻進第一道城門後, 受限於空間和人數, 要再攻第二道城門會非常困難, 城牆上的守軍居高臨下, 形成甕中捉鱉之勢, 攻城的一方傷亡會非常慘重.

墨攻 這部電影並沒有甕城的鳥瞰鏡頭, 只有局部的戰鬥畫面. 在敵人攻破甕城之後, 幾個吊在上方大甕被敲破, 裡面的熱油全灑在第一批攻進城的敵軍身上.

甕城的出現年代目前仍不可考, 但在 墨攻 的背景戰國時代似乎不太可能已經有甕城了. 目前在中國仍有許多甕城的遺跡. 最有名的應該是南京中華門是由三道城門組成的甕城.

參考: 中華門城堡

 Wednesday, November 22, 2006
Wednesday, November 22, 2006 1:59:48 PM (台北標準時間, UTC+08:00) ( 就是想旅遊 | 科學與技術 )

今天無意間發現我的 愛上大溪地 網站已經在 Google 的關鍵字 大溪地 中排名第二位,
Page Rank 目前是 3.

不過更令我驚訝的是即使是關鍵字 大溪, 網站也排名第六....

 Monday, September 25, 2006
Monday, September 25, 2006 10:15:13 AM (台北標準時間, UTC+08:00) ( Quant's Life )

I attended the Financial Summit Workshopon Sep 21-22 at National Taiwan University in Taipei. Many speakers provided great tutorial and speeches during the sessions. The most important guest is Dr. Edward Altman from Stern School of Business New York University.

Dr. Altman is the developer of the famous Z-Score method for evaluating credit risk of public-traded firms. Although he developed the very first model in 1967, it is still very useful in today's financial environment. Dr. Altman mentioned about the difficulty of developing such a complex model during ancient punch card age of computers. I was surprised by the accuracy of the model.

Dr. Altman has great humor and talked many jokes in his sessions. He also like default and bankrupcy of major companies. I was impressed and learned  a lot during this workshop.

 Tuesday, September 19, 2006
Tuesday, September 19, 2006 12:12:36 PM (台北標準時間, UTC+08:00) ( .NET Programming | Quant's Life )

We finished first release of RightPairs for pair trading last week. We are very happy because it is the most powerful generic calculation agent we ever developed.

First of all, it can run on multiple PCs and multi-threads. We tested the calculation on three 4-CPU servers, each server run calculation agents in 12 threads, without any problem. It takes full advantage of multi-processor and multi-thread. Currently it do only correlations, but it is quite easy to add more calculation features.

Our software is at Jumbosoft.com.

 Thursday, August 03, 2006
Thursday, August 03, 2006 4:59:12 PM (台北標準時間, UTC+08:00) ( .NET Programming )

I have not studied deeply about partial matching. Someone asked about using regular expression for partial matching ACGT-like pattern and strings. I wrote a simple program to test my idea about partial matching using regular expression.

The first effort is on brute force partial matching. I prepared all the possible patterns and match them to the target string. It worked fine if you can only accept 1 tolerrance (1 doesn't match) since the number of patterns to match is equal to the length of original pattern. But if you want more than 1 tolerrance, the number of patterns goes up to C(pattern length, tolerrance), it might drive you crazy if you have a pattern more than 100.

I tried to use another technique "Check Appearance". I don't know whether it has an official or scientific name. First I get a substring which length is the same as pattern from target string. Then I compare the frequency of A, C, G, T in the pattern and the new string. If their differerence are below the tolerrance, than I can do the RegEx matching. I found it is useful especially the pattern is long and tolerrance is low. I should try some other methods if I have time.

I attach my all source code here. Please understand the code is developed for quick testing, not a full functional release. There are many bugs and accuracy of the result must be checked. Please let me know if you find any bugs.

Download link has been moved to JumboGuide.

 Tuesday, August 01, 2006
Tuesday, August 01, 2006 11:26:43 PM (台北標準時間, UTC+08:00) ( .NET Programming )

There are many free data on the net, but nobody collect and use them. I am starting a project to collect various data on the net. Using regular expression provided by .NET, I think it is quite simple to collect web data. I have put related works on http://www.derivativepower.com and http://www.jumboguide.com

 Monday, January 16, 2006
Monday, January 16, 2006 2:00:36 PM (台北標準時間, UTC+08:00) ( Quant's Life )

After waiting for 2 months for exam result, I finally got a notification from GARP that I passed 2005 FRM Exam.

I thought I might not pass it because I didn't know how to solve most of questions in the exam. I am lucky enough that I got good scores in many section. The exam result shows only in Quartile.

Credit Risk Measure and Management: 1st Quartile
Market Risk Measure and Management: 2nd Quartile
Operational and Integrated Risk Management, Legal, Accounting, and Ethics: 2nd Quartile
Quantitative Analysis: 1st Quartile
Risk Management in Investment Management: 1st Quartile

 

 Tuesday, December 20, 2005
Tuesday, December 20, 2005 11:14:11 PM (台北標準時間, UTC+08:00) ( Finance Glossary | Quant's Life )

FpML (Financial product Markup Language) is a good choice to store and to process financial derivatives. Current specification 4.2 Working Draft has defined the following produts:

  • Interest Rate Swap (plain vanilla IRS, quanto swap)
  • Interest Rate Option (caps/floors/collars)
  • Credit Default Swap
  • Equity Forward
  • Equity Option (European, American, Bermuda, Exotic)
  • Equity Swap
  • Asset Swap
  • Forward Rate Agreement (FRA)
  • FX Average Rate Option
  • FX Barrier Option
  • FX Digital Option
  • FX Simple Option
  • FX Swap
  • Swaption

For more information, you can go to FpML Website.

 Tuesday, October 25, 2005
Tuesday, October 25, 2005 11:32:12 AM (台北標準時間, UTC+08:00) ( GIS )

I spotted the Google Map APIs for a while. In my opinion, as a web developer in Taiwan, I might choose Google Map as my tool. I don't mean Google Map is better than ArcWeb Services. In fact, Google Map offer just basic mapping APIs and can't compare with ESRI ArcWeb. But ESRI ArcWeb Services offers little content outside US. We can't get detailed sattlelite images of Taiwan from ArcWeb. Google Map and Google Earth really have very detailed images of urban areas in Taiwan.

But, Google Map has no road map in Taiwan, although ArcWeb has only outdated large scale road map. The best choice is to have your own ArcGIS Server and purchase your own data, it might cost tens thousands US dollars. If you are looking for free services, there are always trade-offs.

For information about ArcWeb Services, http://www.esri.com/software/arcwebservices/index.html

For information about Google Map API: http://www.google.com/apis/maps/

 Sunday, October 16, 2005
Sunday, October 16, 2005 10:46:00 PM (台北標準時間, UTC+08:00) ( Geocaching | Travel Log | 就是想旅遊 )

Taiwan is a beautiful island with many beautiful scenes. It has more than 100 peaks taller than 3000 meters (9000 feet). In 2003, Taiwanese government picked 100 mountains which were accessible in 1 day from urban area. Most of them have roads directly connected to the trails and closed to major cities. The elevations are from 100 meters to more than 2000 meters.

Currently I can't find any information about these trails in English, so I will provide information at my travel website at http://www.jumboguide.com/guide/tt.aspx?forumid=45&lang=English

 Saturday, October 15, 2005
Saturday, October 15, 2005 7:29:45 PM (台北標準時間, UTC+08:00) ( Geocaching )

Although it is Saturday, my wife and me woke up at 5:30am. We were going to find our first geocache. We picked the nearest cache, only 1km away my home, at the top of Hemei Mountain by the Green Lake (BiTan). We arrived the platform on the top of trail. It took us 20 minutes to search the cache. Finally we found it. There are tens have logged it. We took an elephant key ring and put some old Taiwanese stamps in it. We are very happy for success at our first hunt.

 Tuesday, August 30, 2005
Tuesday, August 30, 2005 10:52:49 AM (台北標準時間, UTC+08:00) ( 科學與幻想 )

各國政府不會把 Capital Cost 算入太空計畫的成本當中,
所以 Marginal Cost, 邊際成本才是考量重點.
Dr. Edwards 預估在第一部太空電梯完成後.
每公斤運輸的實際變動成本是220美元.

太空電梯的建造成本大概與太空梭差不多,
但是單位運輸成本可以降低.
第一座太空電梯的成本估計約一百億美元,
主要任務應該是建立第二座太空電梯,
第二座的成本估計是三十億美元,
一旦越來越多太空電梯建造完成,
太空貨運可自給自足不需政府補助,
未來可望降到每公斤10美元以下.

如果建造成本完全要由民間自付,
估計含建造和維護成本要四百億美元,
每公斤的價格要到3000美元.
相較於目前運於在地球同步軌道每公斤20000美元來說,
還是便宜多了.

 Saturday, August 27, 2005
Saturday, August 27, 2005 7:57:02 PM (台北標準時間, UTC+08:00) ( 科學與幻想 )

太空電梯地面的錨站 (anchor station) 有固定式和移動式,
移動式的大概都是規劃在海上,
可以視情況移動位置躲避惡劣天氣.

也有規劃在高樓頂端, 這樣子可以有便宜的電力,
雖然只是幾百公尺的高度, 但可以讓最底部的纜線寛度大幅降低.

Dr Edwards 目前提案是在東太洋赤道附近的 Galapagos 群島西邊建立浮動錨站,
利用現有的鑽油平台技術就可以了.
據他說這個地點距離最近的海上和空中航線有650公里,
可以降低意外和恐怖攻擊的機會.

 Friday, August 26, 2005
Friday, August 26, 2005 4:06:51 PM (台北標準時間, UTC+08:00) ( 科學與幻想 )
太空電梯的概念已經有超過一百年的歷史, 一向都是被歸類在科幻的領域;
直到最近奈米碳管的出現, 解決了技術上最大的挑戰: 又輕又堅固的纜線材料,
這個概念突然之間就熱門起來了, 從科幻構想一躍成為太空計畫的一部份.

這一期 IEEE Spectrum 中有一篇 Dr. Edwards 對太空電梯的完整介紹,
看了覺得很有趣, 所以提出來跟大家分享.
太空電梯的確仍有許多困難有待克服, 製造問題應該可望在十年內會有解.
這想法一開始是很天真地認為建造一個這樣子的電梯可以讓太空活動更方便,
沒想到真的有實現的一天.

別再認為這是幼稚可笑的想法, 這會比登陸火星還要早實現.
看看 Wiki 的說明比較清楚.
 Monday, August 15, 2005
Monday, August 15, 2005 4:17:48 PM (台北標準時間, UTC+08:00) ( Quant's Life )

Note: For visitors of your site, this entry is only displayed for users with the preselected language English/English (en)

I studied FRM materials and got an indea last night. It is hard to define the operational risk of financial institutes, in fact, any institutes. But a multi-agent system might be a good choice to simulate operational risk. Blow is a rough idea:

To simulate operational risk in Department A, which has
1 department head, 10 traders, 2 risk managers, 5 back office

defined communication lines:
deapertment head to everyone: 17
traders cross: 10x9=90
traders to risk managers: 10x2=20
traders to back office have no full route: 15
risk managers to back office: 2x5=10

defined probability of error of each person and each lines
defined potential loss of each person when he/she failed to perform unintentionally

defined probability of intentional error of each person
defined potential loss of each person when he/she failed to perform intentionally

We can now start to simulate. This model is too simple for any existing environment. We can have the PCs, telecomm lines, and any equipments into the model. Also external events and entities. If we got 500 persons and 10000 entities, we still can do it use MAS.

Let it be my next project.