賭博必勝術

今天在占占字起的blog看見了篇文章﹐談論賭博必勝術﹐已經是同一系列文章的第三篇。我初看以為是開玩笑的遊戲文章﹐賭博不可能贏受制於數學定律。想不到既然有人一本正經討論文章的必勝術是否可行﹐還正反相方洋洋數千字陳述賭海心法﹐看起來就像討論阿媽唔係女人一樣咁荒謬。

文章中所謂的必勝法很簡單﹐假定賠率是50%﹐輸了錢就雙倍加注﹐ 贏了錢就立即走人。理論上不可能也押不中﹐只要押中一舖就可以翻本。文章還事有剎介地﹐例出一些數字去支持其論點。假若你有賭本$3200﹐你第一舖買$100﹐要連輸五次才會輸清袋。連輸五次的機會率是1/32大約3%﹐即是你用$3200本金有97%機會贏$100。文章認為97%差不多等於一定贏﹐所以稱之為賭博必勝術。問題是文章忘記了計算那3%會輸的可能性﹐計算輸贏預期值的數式應該是﹕$100 * 97% – $3200 * 3% = 0。所以如果賠率是50%﹐在數學上賭博不會輸不會贏。若果有$3200本金﹐不論是用輸了加倍玩法﹐還是一舖過全部押上﹐從數學上來說是沒有分別的。現實中賭場因為有圍骰或雙紅通吃的規例﹐任何賭博的賭率也低於50%﹐所以在數學上不論如何下注法﹐賭客在沒有可能會贏錢。

在文章的回應有人說﹐認為賭錢講運氣﹐贏錢時有好運應該加注﹐輸錢時交惡運應該走人。理論上這也是不正確﹐每局下注的數目﹐是不應該受輸贏影響。賭錢不過是機會率的遊戲﹐在賭桌上根本沒有運氣這回事。每一局也是獨立事件﹐每一局輸贏的機會相同﹐與前局或後局沒有任何關連﹐那麼每局下注多少是沒有關係。若果有個賭仔輸了錢﹐認為今天運氣不好﹐明天再來翻身。其實他今天死戰到底﹐還是明天再來發財﹐在數學上是沒有分別的﹐反正每局的機會率是故定﹐並不會因為賭仔主觀的運你而改變。長賭必輸﹐不論是今天賭﹐還是明天繼續賭﹐只要再賭也就是長賭﹐分別只是輸得快還是輸得慢。

機會率中學有教會考要考﹐懂得計算機會率 ﹐就應該明白賭錢必輸的數學定理。為何還這麼多人誤信賭錢有可能贏﹖賭錢必輸應該與地球是圓一樣是明顯不過的真理。賭錢想贏只有一個方法﹐就是開賭場﹗ 當然若果不是賭純機率性的遊戲﹐而是玩講技術與對手鬥心理戰的撲克牌﹐只要技術高超要長勝也不是沒有可能。從數學上來說﹐廿一點是賭客唯一可以必勝的遊戲。不過當賭客苦練數牌的絕技贏了一大筆後﹐就會被賭場例入黑名單不許進內﹐賭場才不會笨到明知會輸也要賭。為什麼一般賭客﹐明知會輸還要賭呢﹖

Interviews

I have been doing lots of interviews recently.  My project is half way and it is very behind in the schedule.  How do we get into this mess in the first place?  As usual it is bad management decision.  Somehow we underestimate the complexity of the chip and largely overestimate the productivity of Indian contractors.  The only way to stop the project from slipping further is adding more resource.  When we first move our operation to Indian, one of the promised advantage is we will be able to get as many engineers as we need.  Never believe any sales pitch, especially the sales pitch of Indian contracting firms.  Wipro basically runs out of qualified engineers that meets our requirement.  Indian contractors is the casue of the mess, it would be repeating the same mistake to hire more of them.  This time we are hiring N. America contractors.

The project is in pretty bad shape, so we are approved to hire 10 engineers.  To fill those positions, we have to do lots of interviews.  I guess my boss is too busy to interview all of them, so I am helping him to interview the candidates.  I did mostly phone interviews since most of the candidates are from the East Coast.  I even have an interview with someone from Israel.  I kinda act like the first line of defense, screening the qualification of the interviewees before pasting them to my boss for 2nd round interview.  My role is to preform technical interview, trying to determine whether the guy knows enough to be productive.  Since I am doing phone interview, I can’t ask very detail technical question because it may require some writing and drawing.  I found asking what challenges the candidate had in his previous project is very effectively in judging his level of expertise.  The more experience the person has, the challenge is usually more complicate.  Sitting in the other side of the table gives me new insights.  The questions asked by the Interviewer always have a certain purpose.  A successful interviewee should look beyond the factual question and try to give answer in a way that satisfies what the interviewer is looking for.

Bangalore bombing

Last Friday, 9 bombs set off in Bangalore, killed two people and wounded over twenty people.  I never feel so close to terrorist attack.  I worked in Bangalore for two months.  My colleagues took over my tasks are still working in Bangalore.  According to the news, one of the bomb went off just outside the Forum Mall, which is right next to where I live.  When you have been to places so close to bombing, it seems quite scary.  Everyone I know in Bangalore is safe.  The unlucky souls drafted to serve the Bangalore tour of duty is now getting cold feet.  I guess they have every right to concern about their own safety.

According to the news, the bombing is carried out by a Islamic terrorist group called Indian Mujahideen.  It is a small outfit of the worldwide Muslim jihad terrorist.  It seems no one knows the political agenda of this little known terrorist group.  They are not making any request according to the news.  I don’t see any reason Indian Mujahideen to fight.  India has freedom of religion, Muslim are allow to practice their faith freely.  The Indian government is not oppressing Muslim in any mean.  On the other hand the Muslim are oppressing those who live next to their Mosque by their 5a.m. morning prayer with loudspeaker.

When Indian independent from the British Empire, the Muslim had their own country in Pakistan.  If the Indian Muslim don’t like living among the Hindu majority, they can simply move to Pakistan.  They have no right to ask for more than they deserved by threatening others who don’t share their religion.  If the Indian Muslims think they are oppressed because they are poor.  They are fighting for the wrong cause.  Believing in Muslim is probably why they are poor in the first place.  Think about how much productivity is lost in time wasted for daily prayers.  If they want to leave poverty behind, maybe they should stop reading Koran and start learning marketable skills.

Biofuel

Fossil fuel will eventually runs out, one of the solutions to the environment problem is switch to biofuel.  Biofuel is produced by convernting plants into ethonal.  Plants is 100% renewable energy.  As long as there is land, water and sunlight, plants will grow every year.  Although biofuel is a clean energy, there are controversials about biofuel will disrupt food production.  I believed in this myth in the past and have doubt about the use of biofuel.  It turns out that is only true for 1st generation biofuel made from grains or corns.  The 2nd generation biofuel made from cellulor plants like grass or algae will have a 100 fold increase in efficiency.  We can produce enough biofuel to fill up all our gas tanks without affecting food production.  According to a news report, the effect of biofuel on food production is less than 1%.  Developed countries already waste more than 1% of food, so making biofuel should have virtually no impact on the food price.

I quoted the news in an online discussion about renewal energy and environmental problem. My view point is the Earth have more than enough energy for our consumption, only that we don’t have the technology to harvest the energy.  It contradicts with the view point of most environment people that we should simply use less energy.  I think the best way to solve the energy problem is through technology.  You can never solve the problem by conservation, it can only buy you some more time until the technology is ready.  Some people challenge the 1% number and accuse me posting misleading information.  I don’t know how the number is arrived, so I decide to work out the math myself to prove I am right.  After some research, here is the math:

US has 938 million acres of farmland (from US Dept of Agriculture website)
US use 138 billion gallon gas per year (from US Energy Statistic)
The highest efficiency of biofuel production is 15000 gallon per acre (from Wiki entry on Biofuel )
938m * 1 % * 15000 = 140.7B > 138B

Therefore, if we can produce biofuel with the most efficiency future technology, we will only need 1% of US farmland to produce enough gas for all the cars in US.  With the best technology today, we can only produce 1000 gallon per acre.  (BTW, grains, corn or soybean’s efficient is less than 200 gallon per acre.)  Biofuel is a pretty new technology, there are lots of room for improvement.  If it can follow the pattern of the Moore’s Law, 15 fold increase in a few decades is totaly feasible, at least according to the theory.

Speed Racer 極速賽車手

Mach 5 還記得小時候放學回家﹐其中一套最愛看的卡通是《賽車小英雄》。看著那架可以上天下海法寶多多﹐白色車身紅色M字標記的麥克五號﹐就會幻想那是自己的坐駕﹐在賽車道上打倒敵人。想不到差不多二十年後,憑Martix成名的Wachowski兄弟﹐竟然把這套經典卡通搬上大銀幕開拍真人版。可能主角不再是小孩子﹐片名不能叫小英雄﹐名字順帶改為《標速賽車手》。

真人版在戲院上映時﹐影評己經是劣評如潮﹐不論是故事還是畫面﹐被人批評至一文不值。很不幸我真的同意那些影評的看法﹐這齣電影是名乎其實的垃圾電腦特技電影﹐若不是靠Wachowski兄弟和麥克五號的金漆招牌﹐觀眾才不會入場觀看。我已經很寬容地放過這電影的大部份缺點﹐反正的卡通改篇對劇情就不會有嚴格要求。情節白痴是因為受制於原著劇本﹐在角色和設計定上其實頗為忠於原著。主角毫無演技可言﹐大部份時間影著他拉屎般的表情﹐不過真正主角是麥克五號。可惜這齣電影的最大敗筆﹐就是竟然最重要的賽車場面超級爛。電腦特技太多太花巧鏡頭飛來飛去﹐又加插無厘頭茄厘啡的大特寫﹐背景太過眼花潦亂干擾視線﹐完全看不清楚賽車道上發生什麼事。賽車不停地彈來彈去轉來轉去﹐我連架賽車是什麼樣子也看不清楚。觀眾入場的最主要原因就是看賽車﹐難道有人會認真地欣賞演員的藍幕演技﹐被夾硬堆切的父子情兄弟愛的故事感動號﹖

我承認會看這套電影﹐完全是因為小時候的情意結。 諷刺的是看電影的製作花絮﹐竟然電影本身還好看。電影公司為宣傳﹐不惜工本造了台麥克五號出來。這台車子不單能跑﹐還很神奇地製置電影中的法寶﹐有防彈玻璃電鋸伸縮跳槓。看這台麥克五號真車在公路上飛馳﹐比在電影中的賽道漂移還好看。這齣電影另外還有一個驚喜﹐原來飾演女主角Trixie的Chrisitina Ricci﹐就是以前愛登士家庭的小女孩﹐怪不得她樣子這樣面善。據說Wachowski兄弟是日本動畫迷﹐所以才會重拍這套經典動畫。不知道他們近年還有沒有看日本動畫﹐有沒有看電腦賽車場面出名的《頭文字D》。或許他們應該向《頭文字D》學習﹐明白什麼才叫做緊張刺激有迫力的賽車場面。說起來港產片 《頭文字D》的賽車場面﹐比《標速賽車手》的賽車場面還好看。