Ulam Lecture2
Ulam Lecture2
QuickTime™ and a
Sorenson Video 3 decompressor
are needed to see this picture.
Lecture 2: Prediction
• Prediction, action and survival
• Methods of prediction
• Limits to prediction and their loopholes
• Personal history:
– Roulette
– financial markets
• A mechanistic model of a market.
• How prediction makes reality more subjective
– Markets manias, and other social schizophrenias.
Methods of prediction
• How is the model constructed?
– First principles vs. empirical
• What does the model predict?
– Dynamical vs. contemporaneous predictions
• Modeling paradigm
– Deterministic vs. random processes
Astrological prediction of stock prices
Fibonnaci predicts social trends!
How is the model constucted?
• First principles. Based on an understanding
of the world.
– Requires high degree of sophistication
• Empirical. Build a model automatically by
fitting historical data.
– Simple organisms: Hard-wired models, tuned by
evolution
– Complex organisms: Further tuning by
experience
What does the model predict?
• Dynamical systems:
– Predict the future based on the past
• Contemporaneous models:
– Relate one property of the world to another
property of the world at the same time.
– Useful in simplifying description of the world.
Modeling paradigm
• Deterministic
– World is described by a single point in state
space. Completely determines future. Rule
that does this is called a dynamical system.
• Random
– Evolution of future states is not determined by
present states.
Dynamical prediction
• Key idea is state space. A state is a list of
numbers that gives the information needed
to determine the future. If you have N such
numbers, it is useful to think of them as
defining an N-dimensional space.
• E.g. from Newton’s laws, knowing forces,
position and velocity are sufficient to
determine future motion. Position and
velocity are the state.
How do bacteria do it?
• Don’t know in detail.
– Must predict concentration
– Involves measuring the concentration at
different points in time and comparing.
– If concentration is increasing, keep swimming
– Otherwise tumble and/or eat
• State space:
– One number: Rate of change of concentration
– (concentration now – concentration earlier)
Lecture 2: Prediction
• Prediction, action and survival
• Methods of prediction
• Limits to prediction and their loopholes
• Personal history:
– Roulette
– financial markets
• A mechanistic model of a market.
• How prediction makes reality more subjective
– Markets manias, and other social schizophrenias.
Limits to prediction
• Limits to prediction come from complicated
geometry of state space, which causes
nearby states to diverge rapidly.
• Produce behavior that looks random, even
in purely deterministic setting.
• Small uncertainties in initial measurements
are amplified, limiting predictability even
when model is known.
On Hurricane Charlie
You can’t plan for the unforeseen. God
doesn’t follow the linear directions of
computer models. And these are powerful
storms that don’t behave in any kind of way
that you can say with certainty where they
are going.
Jeb Bush
Poincare’ on Fortuitous phenomena
A very small cause which escapes our notice determines a
considerable effect that we cannot fail to see, and then we say
that the effect is due to chance. If we knew exactly the laws
of nature and the situation of the universe at the initial
moment, we could predict exactly the situation of that same
universe at a succeeding moment. But even if it were the
case that the natural laws had no longer any secret for us, we
could still only know the initial situation approximately. If
that enabled us to predict the succeeding situation with the
same approximation, that is all we require, and we should say
that the phenomenon had been predicted, that it is governed
by laws. But it is not always so; it may happen that small
differences in initial conditions produce very great ones in
the final phenomena. A small error in the former will
produce an enormous error in the latter. Prediction becomes
impossible, and we have the fortuitous phenomenon.
Chaos is a double-edged sword
• On one hand, long-term behavior is effectively
random (though dynamics are deterministic)
• On the other hand, short-term behavior is
predictable if model is known.
– Systems otherwise believed random become
predictable in the short term.
– Simple mechanical oscillators, transition fluid flows,
sunspots, timing of ice ages, …
BID
ASK
price ($)
NEW ASK
Impatient trading
Market order:
• An order to buy or sell up to a given volume
Market Order
• No limit price is defined
BUY / SELL
• Executed immediately
# OF SHARES
• Often causes unfavorable price impact
VOLUME
BID
ASK
price ($)
NEW ASK
Order cancellation
price ($)
The Basic Model
Limit order arrival: unit size, in time & price;
Market order arrival: unit size, random in time;
Cancellation: Random in time (like radioactive decay);
Assume prices are continuous.
Depth of the book np,t tells how many shares are in the book at
price p at a given time t.
SELL LIMIT ORDERS
( p, t )
n( p, t ) BID
BUY MARKET
ORDERS
0 SELL MARKET
p
ORDERS
ASK
PRIORITY
VOLUME
SPREAD
(BEST) BID
price ($)
(BEST) ASK
BUY
PRIORITY
QuickTime™ and a
Video decompressor
are needed to see this picture.
Predicted
price
diffusion
rate
1/ 2
5 / 2 1/ 2
2
Top 10 Russian jokes, Oct. 23, 2003
с сайта "Немецкая волна"
http://www.dw-world.de/russian/0,3367,2212_A_985770_1_A,00.html
Ученые-экономисты давно стараются понять закономерности, которым
подчиняются биржевые курсы, и используют для этого математические
модели. На протяжении многих десятилетий такие модели исходили из
представлений о брокерах как об аналитиках с выдающимися умственными
способностями, обладающих исчерпывающей информацией о рынке и
действующих исключительно рационально. Однако удовлетворительно описать
реальные изменения биржевых курсов эти модели оказались не в состоянии.
Значительно успешнее справляется с этой задачей новая модель,
предложенная Дойном Фармером (J. Doyne Farmer), сотрудником Института
Санта-Фе в штате Нью-Мексико. Она базируется на предположении, что
брокеры Ц полные Ђидиотыї, действующие совершенно случайно и к тому же
лишенные какой бы то ни было информации. Сравнив данные, рассчитанные на
основе этой модели, с реальными курсами лондонской фондовой биржи за
период с 1998-го по 2000-й годы, ученые выявили очень высокую степень
совпадения
Lecture 2: Prediction
• Prediction, action and survival
• Methods of prediction
• Limits to prediction and their loopholes
• Personal history:
– Roulette
– financial markets
• A mechanistic model of a market.
• How prediction makes reality more subjective
– Markets manias, and other social schizophrenias.
The 2nd millenium technology bubble
(NASDAQ)
Second millenium tech bubble (CISCO)
Wheat price in Munich (1815-1820)
Seth Lloyd
A simple game with feedback between
perception and reality
• Assume N agents bet on event at time t.
– e.g. a horse race.
• Odds based on net wager on each outcome.
• Allow outcome to be influenced by odds.
– financial markets provide a good example.
– supply and demand are inherently subjective.
• Simplest case is coin flip
– only two outcomes
– coin can be biased -- bias can depend on odds
Else Neeft