Wednesday, January 13, 2016

Signal and Noise by Nate Silver (book summary)

Signal & Noise- Nate Silver


One of the best book that I read in 2015 was the “Signal & Noise” by Nate Silver. This book is about forecasting. The writer is famous for his works on baseball and political forecasting. The book includes insights from interviews with experts in weather/climate forecasting, finance and also decision makers / policy makers who their works depend heavily on forecasting data. Here are some of the interesting insights from this book:

Is that possible to forecast?

One of famous statement regarding scientific determinism  is Laplace’s demon: if someone (the Demon) knows the precise location and momentum of every atom in the universe, their past and future values can be calculated from the laws of classical mechanics.

Despite uncertainty in quantum level, the macroscopic behaviour is deterministic (e.g. the rain cloud movement and the chess pawn movements are deterministic).


Success stories:

·         Weather forecast: its physics model is well known,  the PDEs can be solved with finite elements. Regarding improving accuracy, roughly speaking a 4D model (x,y,z,t) need 16x computational power to double grid resolution.


·         Games (e.g. baseball,  chess) are easier to forecast than stock markets/ politics: game rules are clear & consistent (not like man behaviour), and many data available. Chess is a deterministic game, can be solved with search algorithms.

Chaos

Deterministic dynamic  systems can be impossible to predict. The initial points difference (e.g. because of data truncation / noise) leads to huge different prediction points (due nonlinear nature) and for every (time)iteration the divergences become bigger & bigger so that the trajectories seem unpredictable.


For example,  despite successful weather modelling, the prediction is unreliable for more than 5 days horizon.

---------------

If it’s difficult to model it doesn’t mean you can neglect it.

For example: financial model of credit risk
·         The model assumes independent distribution, the investment-bank management add 50% margin but in fact the effect is much greater than was imaginable (e.g. 600%) .
·         Hedge fund firms advertise that their risks (volatility) are much lower than other risky assets. In fact the risk is not constant as this assumption, in the crisis event the volatility jumps much higher than its average.
These mistakes cost 15 trillion global wealth during financial crisis 2008.







Overfitting


Overfitting will more likely to happens when:
·         the data is noisy e.g. almost impossible to measure displacement/temperature 20km below earth accurately for earthquake prediction)
·         sparse event (e.g. earthquake/tsunami, terrorist attack, flu/ebola outbreak, economy crash)
·         when the models are not well understood or changing (e.g.  stock market)
·         when the model is complex  (e.g. earthquake)


 Bias

·         Different weather channels present government data (NOAA/KNMI) with their own adjustments, tend to more amplify rainy weather (e.g. in the image presentation) to avoid false negative punishment.
·         Investment firms tend to give positive recommendation, also due to asymmetric reward.

Non ethical bias








Image result for climate lobby

·         climate lobby
·         political polls
·         investment firms recommendations

Media bias

Media want news (TV weather, Politics, Ebola epidemic) to keep the media interesting so the most controversial statements (whether from political candidates or weathermen) will get more attention regardless how accurate are they.

Distinguish noise from signal




·         Select only variables that are most relevant, less noisy. Neglect noisy / difficult to measure variables.
·         Noise (e.g. false alarms) is difficult to distinguish from signals until it happened (e.g. intelligence reports before WTC911).





Communicate uncertainty clearly

When it was forecast that the water level will be 4.5 +/- 1m. People neglected evacuation order because the news reporter & audience thought  that the water would be 4.5m at max while the dike is 5m high so they would be safe.
Image result for dike flooding

Thursday, July 2, 2015

Open The Eyes Of My Heart Lord -- Salvador’s version

  
Couplet:
  E2
  Open The Eyes Of My Heart Lord
   B/E
  Open The Eyes Of My Heart
              A2    F#m7
  I Want To See You
   A/B         E2
  I Want To See You


Chorus:
                B              C#m7
  And See You High And Lifted Up
    A2                            B2
  Shining In The Light Of Your Glory
   B2                        C#m7
  Pour Out Your Power And Love
              A    A/G#    F#13
  As We Sing Holy, Holy, Holy


Bridge:
See https://youtu.be/F7WiB7WjsdU?t=170

              A    A/G#    D2
  As We Sing Holy, Holy, Holy

( D2 C#m9  B9  AMaj9  AMaj9/G#   F#m9   ) 2x


Couplet minor:
See https://youtu.be/F7WiB7WjsdU?t=195

C#m9-5  G#m9-5  B#m9-5 F#m9-5

--------------------------------------

B/E means B with bass on E.

Instead of using fancy/jazzy chords, you can use also the simplified ones e.g. C#m7 instead of C#m9-5.

Sunday, June 16, 2013

Chili con carne

Type: tex-mex

Ingredients:
  • beans
  • minced meat
  • tomato puree
  • paprika
  • madras curry powder/cumin, clovers,  garlic, onions, sugar, bouillon, chili powder
  • sour cream/cream fraiche/butter
  • optional: french/italian mix (tijm, marjoram, oregano)
Methods:
  • Fried separately the spices, meat, bean
  • Put them together & cook with gentle fire  for 15-30 min
  • pour the cream/butter at the end
  • optional: put it in the oven

Couscous Steve's version

Type: Moroccan

Ingredients:

  • couscous, vegetables
  • madras curry powder, cinnamon, mint, coconut powder, ginger, garlic, onions, sugar, bouillon, chili powder


Methods:

  • fried the spices & vegetables,
  • pour hot water & the couscous, stir for 5 min

Wednesday, September 26, 2012

Interesting Citations


Software engineering books

Assume nothing, manage everything: sounds like being a parent of a toddler.
Source: Blueprints for High Availability - Marcus & Stern

Think of logging as engineering jornalism: use the five Ws: who, what, why, when and where (and don't forget the H: how).
Source: Blueprints for High Availability - Marcus & Stern


Security Administrator Tool for Analyzing Networks (SATAN) was the most popular security test tool in the year 90s. For those offended by the name, the package contains a program called repent, which changes everything named SATAN to SANTA.
Source: http://en.wikipedia.org/wiki/SATAN



About youth soccer team database design: This relationship also implies that each player has a single parent... but if a player's parents are separated and remarried, you might need up to four parents... It might make the most sense to just allow a player to have any number of parents and not ask too many questions.
Source: Beginning database design solution by Rod Stephens pg. 212

Machine Learning books
Mathematics / Physics books
Parenting books


Why Chinese Mothers Are Superior... Here are some things my daughters were never allowed to do:
• get any grade less than an A
• not be the No. 1 student in every subject except gym and drama
• play any instrument other than the piano or violin
• not play the piano or violin.
Source: Battle Hymn of the Tiger Mother - Amy Chua





Sunday, August 28, 2011

Design Patterns in everyday life

Under construction

-------------------------

The goals

  • to facillitate faster learning by recognizing & reusing the patterns
  • combining techniques from different fields (e.g. in the past people mix latin & jazz, mixed martial arts MMA) 

-----------------------

Cooking patterns 

Recognizing the patterns of cooking will help us to plan/decide quickly during cooking (in a typical situation e.g. cook dinner less than30min after work) without consulting cooking books.

Template

What: How: Considerations:  Application/ingriedients: Variations:

Categories

Bechamel souce: e.g. gratin dauphinous, white sauce spagheti
Bolognese souce: e.g. red sauce spagheti
Thai's curry
Madras curry powder
Sambal goreng (Indonesian)
Chinese wok
Chinese sweet & sour
Cake: 100g flour, 100g butter, 100g sugar, 3 eggs
Kebab
Pizza e.g. Italian pizza, turkish pizza, burito
--------------------------

Musical patterns




Common pattern in classical musics:

Bach counter/inversion
common forms: sonata ABA,
nocturne broken chords pattern

Improvisation licks in jazz & blues:


Common (overused/boring) progressions in rock & pop & contemporary-christian (handy for accompanying without music sheets)

I V IV I
I VIm IIm V I

Common progressions in jazz, blues  (handy for jump sessions)




Latin montuno patterns



Common progressions in smooth jazz, r&b  (handy for jump sessions)




Natural music

singing bird licks

------------

Martial arts patterns

Common techniques in jiu jutsu, judo, hapkido

  • throw techniques:
  • grab techniques:
  • locking techniques:

Common techniques in jiu jutsu, karate, taekwondo

  • hand striking techniques:
  • hand blocking techniques:
  • kicking techniques:

Weapon: common  techniques in sticks fighting (tongfa, bo,...)
  • blocking techniques:
  • striking techniques:
Need inputs van iemand anders: common  techniques in sword fighting chinese, japanesse, european, middle-east/persia, 

Need inputs van iemand anders: knife fighting
--------------------------

Math proving patterns 


----------------------

Computer languages patterns

-------------------

Natural languages patterns 

European grammar system: tenses/conjugation, cases, articles
-------------------------

Climbing patterns

Recognizing the patterns of climbing techniques will help us to remember the techniques when we need them and to improvise new techniques by combining them (e.g. for rescue).

Template: Knots




Template: Techniques