Professional Documents
Culture Documents
abiao
Published: 2010
Categories(s): Non-Fiction, Business & economics, Finance
Tag(s): "quantitative finance" "financial engineering" "mathematical fin-
ance" quant "quantitative trading"
Updated: 8-10
Update this newspaper
Tags - r , csv
This CSV splitter allows you to split your large file into several smaller
files either by number of lines or by max pieces,
The amazing point of it is the smaller files keep the original header of the
big csv file, very cool. Download the free csv splitter here.
Tags - csv , tool
Data massaging is not fun, what makes us more upset is different data
providers have their own data format, name, code, etc., matching the
data from several sources is not so easy, for example, WRDS includes
CUSIP code while Datastream provides ISIN. I didn't understand why
they do business like that but now I get it, similar as those cell phone
manufacturers have distinct chargers and plug-in, not because it's hard
to standardize, but a way to impose customers to use always their own
products.
Anyway, you can convert ISIN code to CUSIP easily once you
understand the rule, ISIN is a 12-digit number while CUSIP is a 9-digit
one (at least the case for US corporate bond), so what you need to do is to
first strip off the first 2 characters representing country code and then
remove the last digit which is a check digit for catching error.
Suppose your ISIN code is in cell A1, ISIN CUSIP conversion can be
done easily in Excel as "=left(right(A1, 10), 9)", for instance, ISIN
US885797AB65 equals CUSIP 885797AB6.
In the lead-up to the world cup, Kaggle invited statisticians and data
miners to take on the big investment banks in predicting the outcome of
the World Cup. Now that the final has been decided, we can take a look
at how Kagglers stacked up against the quants at JP Morgan, Goldman
Sachs, UBS and Danske Bank in forecasting the World Cup.
The next big question is whether Kagglers can also outperform the
quants in forecasting financial markets (we won’t have to wait long to
find out, as Kaggle is currently hosting a competition to predict stock
price movements).
Send Text Message to Cell Phone is such a great file I found recently,
bascially what it does is to send email via sendmail function of Matlab
from your gmail box to your cell phone carrier, and then your cell phone
carrier forwards the email to you as a text message.
Problem
However, it works for US based cell phones only, I have tried on my UK
T-mobile phone and it seems UK T-mobile doesn't support such a mail to
SMS service (correct me if I am wrong).
Solution
Fortunately, I came across SMS service website which allows people to
send up to 3 free email to SMS per day, it should be enough for our use
in Matlab. Add the following line in the switch case after line 55
case 'uk'; emailto = strcat(number,'@x-onsms.com');
that's it, the email will be delivered as an SMS to your mobile. Do let me
know if you are aware of a better alternative.
What else can it be used? stock price alert? profit threshold alarm? you
name it.
Possible error
Depends on your Matlab version and firewall setting, you may notice the
Ros, you don't have to check computers one by one. Sounds useful?
download the file at http://www.mathworks.com/matlabcentral/
fileexchange/16649, don't forget to change the email address and
password at the beginning of the file.
Tags - matlab , sms
After:
Very nice indeed, after playing for half an hour, it is simple to use,
especially when what you need is just a basic GUI demonstrating to
others a rough idea. One line code is enough.
where you are able to set inputs and get outputs. Nice. More advanced
GUI is possible by adding more lines.
Traders, analysts, investors and hedge funds are always looking for
techniques to better predict stock price movements. The 2010 INFORMS
Data Mining Contest takes aim at this goal, requiring participants to
build models that predict the movement of stock prices over the next 60
minutes.
Quotation
Competitors will be provided with intraday trading data showing stock
price movements at five minute intervals, sectoral data, economic data,
experts' predictions and indices. We have provided a training database
to allow participants to build their predictive models. Participants will
submit their predictions for the test database (which doesn't include the
variable being predicted). The public leaderboard will be calculated
based on 10 per cent of the test dataset.
This series of articles will serve as a guide for scalping, but for the
purpose of introduction, we can ask what makes this strategy popular
and effective. Many of these considerations will then serve as the topics
of further articles.
The first major reason for scalping is perceived safety. Scalping has a far
shorter time frame than the other forex methods, and many traders
argue that this limits their exposure to the market.
This points to one of the major challenges for this style of trading. Since
the number of trades is extraordinarily high, scalpers must find forex
brokers with low transaction costs and fees. Before considering this style,
make sure that your broker’s commission structure allows for you to be
profitable.
Scalping is a workable strategy if you know what you are doing and are
willing to dedicate your full time energy to forex trading. Unfortunately,
too many beginners try scalping based on the assumption that they can
avoid risk. As any experienced investor knows, risk accompanies any
genuine financial opportunity. After several months of practice, and with
plenty of education, scalping is a great way to enter the forex markets.
This guide will tell you some of the main things you need to know when
getting started.
It’s also easy to see that if trading wisely, scalpers act as “brakes” on the
micro-volatility of the market. They actually profit by dragging irrational
price-spikes back to meaningful levels. One other implication is that the
most important time for a scalper is just after a market shock. Scalpers
pay careful attention to announcements of economic data or news shocks
and the disruption that follows.
There are still a few cases when scalpers might still suffer significant
losses. Significant news shocks might cause very wide spreads in a short
time. Even the best brokers may not be able to complete stop-loss orders
quickly enough, and losses can multiply exponentially. Therefore,
traders should always be conscious of whether new economic data or
another type of event has the potential to cause significant disruptions.
In such cases, it is always wise to use caution and trade with lower
amounts of leverage.
The next logical question in our guide to scalping is how to do it. When
it comes right down to the pragmatics of this strategy, what do you need
to make it work, and where do you start?
The first issue is the broker’s spreads. If a swing trader opens and closes
several positions every day, a spread of several pips is hardly an issue,
but scalpers might open and close more than a hundred daily. If you
work out the math, this is a significant loss. For instance, imagine that a
trader makes 50 trades with a nice profit of 130 pips. If the spread is
three pips, he would end up with a net loss of 20 pips. Since the cost of
the spread applies to every trade whether it is profitable or not, this loss
adds up very quickly. The conclusion is fairly obvious—if you want to
make any profit with scalping, you’ll need to find a broker with the
lowest spread possible. In addition to spreads, you should also check for
any commissions or hidden trading fees.
But this search is not always easy. Unfortunately, many brokers have a
bad relationship with scalpers. The problem is that the number of trades
scalpers make can sometimes overwhelm older systems. In addition,
every broker has to countertrade the orders he processes to avoid being
financially liable. Receiving large numbers of orders every day doesn’t
make this easy.
For those reasons, many brokers try to eliminate scalpers. Sometimes this
is a stated policy, but very often a broker will simply terminate a scalpers
account or slow down his processes so that scalping is impossible.
Therefore, you must also find a broker with the most up-to-date
technology and a toleration for large numbers of orders. Look for a fully-
automated broker with no-dealing desk (NDD).
Finally, scalpers should look for platforms with a workable interface. For
the most part, this should include the same financial tools that trader’s
want with other strategies. Of course, you should look for an interface
with a full range of execution tools. But in particular, the interface needs
to be fast and easy to use. This is important because of the number of
rapid orders that must be made. Customization is also a big advantage,
as well as automation. You should also pay attention to the visual
appearance of the interface. Scalping requires intense focus, and many
traders report eye-strain after a long day of staring intensely at a screen.
Once you establish a broker, there are several other things you should
know about scalping.
First, you should wisely pick currency pairs that will work well with the
strategy. The best thing is to start out with the basic pairs, and move to
riskier pairs as you become more experienced.
The most stable and liquid currency pair is certainly EUR/USD. Other
majors have a similar stability, such as GBP/USD, USD/CHF and others
currencies from the major world economies. All of these currencies
change very slowly. Even major events will not produce significant
jumps in these pairs, because of the volume that is regularly traded.
Another group can be called carry pairs. These currencies are liquid, but
much more volatile than the majors. A good example here is the
Japanese Yen. Interest rates are very high on the Yen, and many
investors also use the currency for risky assets. One of the results is that
market shocks will have extreme results that might result in very wide
spreads. Within a scalping strategy, this might result in extreme losses
that a stop-loss order cannot protect from. Furthermore, excessive
volatility can be quite unpredictable. Therefore, it is generally best for
beginners to stay away from pairs that involve the Yen (JPY) or other
carry pairs.
Any experience trader also realizes that the markets change during the
course of a day. So when is the best time to trade? From 7:00-8:00 (EST),
markets are quite choppy, because worldwide traders anticipate the
opening of the New York market. Late morning brings higher volatility,
but also great liquidity. Many announcements also direct the market
during this time. Early afternoon tends to be quite choppy, with higher
risks but potentially greater profits. Late afternoon sees the closing of
most large banks in developed countries, and the market becomes its
quietest.
Really, your preference for each of these times depends on your style. In
choppy conditions, scalpers should look for shorter trades without
concern for directionality. Of course, during the time that the markets
are open, there should be more attention to larger trends, and the
This guide has sought to introduce scalping and discuss the pros and
cons of the strategy. After a brief introduction into the characteristics of
scalping, we discussed how scalpers profit and how they use leverage.
We also pointed out the major necessary things to make scalping
successful, including a good broker and an efficient platform. Finally, we
discussed the best currency pairs and times of day when scalping works
best.
But this guide runs the risk of being overly simplistic if we fail to talk
about the variations on scalping. Traders might use any one out of a
number of techniques to make their strategy successful. Trend scalpers
follow the direction of the market and try to profit from where it is
headed. Think of this as following the macro-direction of a currency, but
on a much smaller scale. Other scalpers prefer to take advantage of news
events and other shocks to the market. These traders stay away from the
period closest to the news event, but profit in the time just afterward.
However, this points to a very important issue that applies to all forex
trading. There is a deeply psychological aspect of dealing with risk and
loss that every trader should be conscious of. Here are a few qualities to
aim for.
Third, you must be patient for the long-term. Scalping works when lots
of small but profitable trades add up to a large sum. Be willing to wait
for that, even if it requires persistence and temporary loss.
Massive, isn't it? download the csv file and also a file for option data at
http://www.gummy-stuff.org/Yahoo-data.htm
Tags - data , yahoo
As "for loop" is very slow in R, we should try best to avoid using it, and
to use vectorization instead. sapply is designed for this, for example,
instead of:
for (i in 1:10) {
z[i] <- mean(x[1:i])
}
we could use
z <- sapply(1:10, function(i, x) {mean(x[1:i])}, x)
in this case, temp is changing every step (it doesn't have to be a function
of z[i]). How to vectorize that and use sapply then? since sapply can't
return two variables z and temp.
I tried to define a matrix and store z in the first column and temp in the
second column and return the matrix, however, failed.
Many thanks.
Tags - r
One bothering issue is each software has its own coding rules, for
example, in Matlab we use a(1,1) but in R we use a[1,1]; in Matlab we
have ones(3,2) but in R we dont have such a command but matrix(1,3,2),
etc. (I am always wondering why they can't be designed in a similar
way). It does bring me trouble sometimes, luckily I came across a web
page similar as cheat-sheets, it lists those widely used commands in R
and corresponding commands in Matlab, very convenient indeed.
PS:
Walking Randomly suggests another excellent PDF manual consisting of
47 pages, fantastic! http://www.math.umaine.edu/~hiebeler/comp/
matlabR.pdf
Tags - r , matlab
Tags - football
Dear reader,
We have a very special offer for traders today. Our friends at Elliott
Wave International have just released their $79-value, 42-page ebook for
options traders for free download.
The new ebook, How to Use the Elliott Wave Principle to Improve Your
Options Trading Strategies -- Vertical Spreads, which sells in EWI's
online store for $79, is available for free, exclusively to you, for a limited
time.
The ebook is designed to help you exploit sharp price movement with
powerful vertical spread trading strategies, including: Bull Call
Spread, Bear Put Spread, Bear Call Ladder, Bull Put Ladder and more.
This valuable ebook belongs in any serious trader's library. You can
download it now for free here.
Tags - option , trading , elliott
10, now you are able to install the package typing “R CMD INSTALL
MonteCarloPi_1.0.tar.gz”. Congratulations if you see “…done…” and
you will notice there is one more sub-folder “MonteCarloPi” in your R
library folder.
Quotation
Reference:
http://cran.r-project.org/doc/manuals/R-exts.html
Tags - r , package
Inventions are important. They're the reason life has become so easy for
us, and technology so accommodating. The market for inventions is
enormous, and hundreds of new ones are patented every day. Since not
everyone is a genius, many of them fall into obscurity immediately as
inefficient or unimportant ideas. However, sometimes the silly ones we
might be quick to dismiss are unexpectedly more profitable than the
conventional method of doing whatever it is the newfangled thing does.
Here are 15 weird and ridiculous ideas that made people rich.
1. Pet Rock
The Pet Rock is undeniable proof that people will buy just about
anything. It's literally a rock with googly eyes glued to it, but the
inanimate companion grossed a couple million dollars in 1975. The fad
only lasted for that year before dying out, but the Pet Rock carriers,
equipped with breathing holes and a straw as if for a real animal, proved
irresistible for those wishing to give silly and ironic Christmas gifts.
2. SatLav
Really having to pee can be one of the most uncomfortable feelings ever.
You can’t concentrate on anything else, you fidget, you frantically search
for the bathroom. But what if you’re out in public and don’t know where
to find one? Poppin’ a squat it picking a dark corner isn’t always an
option, and many establishments have bathrooms restricted for
employee or customer use only. Conveniently, anyone with a cell phone
can now find the nearest public restroom just by texting a short number
for a small fee.
Do dogs really need goggles? No. Do they want them? Probably not.
Does anyone sell them? Of course -- and they've made more than a
million dollars off the idea. Giving dogs goggles is about as useful as
giving a goldfish a monocle and cane, but that didn’t stop the company
Doggles from doing their very best. At $80 a pair, Doggles is a multi
million dollar company.
If you think about it, looking at the photo above (and ignoring the fact
that this product shouldn’t exist in the first place), there’s no reason that
goggle s for dogs should look the same as those for humans. The bridge
of a dog’s nose isn’t directly between his eyes like a human, so this
design is a little strange. They pretty much look like Seth Green’s
character from Can’t Hardly Wait.
Even more absurd than dog goggles is the concept of a dog perfume. It's
true that wet, dirty dog smell is an awful one... But how about wet and
dirty mixed with floral extracts? It's like spraying air freshener in the
bathroom -- it doesn't cover up the poop smell, just sort of hangs on top
of it like an additional layer of sense assault. Here's an idea: give your
dog a bath. If the dog is clean, it won't smell so bad. Don’t just cover the
smell up like some French hooker from the 1700s. The fact that this
invention has earned over a million dollars is downright ridiculous.
7. SantaMail
One of the best ways to make money out of people has always been
taking advantage of their naïveté and dreams, and who's more naïve
than kids? Byron Reese, sprung for a postal address in the North Pole, a
place he'd never been, so he could pretend to be Santa. Even worse than
the mall Santa who lets kids sit on his lap and drinks malt liquor in the
parking lot, in some intangible way.
Reese writes back to the letters himself, but never reveals his true
identity. At first, this sounds quite sweet, but consider this: What if little
Susie (they are always called Susie) wants a little doll which Mommy
and Daddy can't afford? Is Santa going to say ‘no’? What if little Jessica
(she’s rich and has a last name like DuBois or something) wants a pony,
and Santa’s all like ‘I think that’s a bit much to ask, little Jessica. Ho ho
ho!’ but then Jessica’s parents buy her a really awesome pony with a
Bose sound system and five LCD monitors? Then Santa all of a sudden
seems nonexistent. Another million-dollar idea, this time one that
depersonalizes one of the most beautiful mysteries of childhood by
making it a capitalist business.
Are you too lazy to show up to work or school on time, but don’t want to
waste your creativity on coming up with your own excuse? The Excused
Absence Network is a service which caters to all the lying employee’s
needs; from a missed math test all the way to skipping out on your own
wedding. The notes aren’t just those ‘little Johnny had a sore throat
today’ notes from mom – these are excuse notes that look as though they
come from a hospital or doctors office for just $25 per note.
9. Fetal Greetings
As is the case with most everything else on this list, there seems to be a
positive correlation between the inanity of the product and it’s
commercial viability. Fetal Greeting saw sales being reported in the
million and climbing steadily.
10. www.MannequinMadness.com
The Big Mouth Billy Bass was designed with the sole intention of driving
people insane. It's a product for old people, who are the only ones to find
its autonomous song incredibly novel. The singing fish is otherwise
given as an unwanted box where it sits in the box to gather dust or is put
out repeatedly at the same garage sale for two months. These two criteria
make up millions of people, and the Big Mouth Billy Bass has made
millions of dollars.
With its success has come the delightful discovery that hacks could leave
the Bass able to sing any song.
I Can Has Cheezburger? burst onto the web scene in early 2007 and
elevated the already rampant LOLcat meme to new level of
ubiquitousness. The site, now a conglomerate of several extended
memes, is primarily concerned with evoking humor from photos of cats
with added, sometimes nonsensical, subtitles. The site was acquired a
short eight months after is creation by a group of investors for a
whopping $2 million.
Two million dollars for a website whose principle visitors are stoners
and 13-year-old girls who have just learned how to use the internet. I
Can Has Cheezburger? Revenue is solely advertising-based.
Tags - money
disp(' !!! You must enter code into this file < testnewfcn.m > !!!')
% ===== EOF ====== [testnewfcn.m] ======
Did I mention you can customize the exact style by modifying newfcn.m
to the appearance you like? just that simple!
Download at http://www.mathworks.com/matlabcentral/
fileexchange/6408
Tags - matlab
How much does it cost? $295, if you think $295 is a lot, please keep in
mind the full non-student version is $2500!! Sounds a good business?
Start to Import, visualize and calculate using built-in financial data with
Mathematica Home Edition.
Quotation
FinMetrics is MATLAB based, open source quantitative portfolio
management environment. Built on concepts of bottom-up approach to
application design, it allows users to define most basic, low level
building blocks, e.g. assets and transactions, to be further pieced together
in a higher level objects, e.g. positions or portfolios. Data analysis and
statistics function, implemented within the environment and native to
MATLAB, enable users to conduct scenario analysis, stress testing,
performance measurement and attribution, risk measurement and
attribution, design hedge strategies, etc. Open architecture of the
environment allows users to work with objects of any level, depending
on their requirements and expertise. The object structure and data types
are specifically designed to make integration with MATLAB and native
FinMetrics functions as easy as possible. FinMetrics user interface
application and MATLAB scripting may be utilized to facilitate or
automate complex and repetitive tasks, as well as extend functionality of
the environment.
Download it at http://www.mathworks.com/matlabcentral/
fileexchange/27778-finmetrics if interested.
Tags - matlab
Another big gripe is that the High Frequency Trading can really mess
people over. Those with a leg up can make an investment risk-free, and
it is only risk-free for them because all of the risk falls on to the lower
tier. So far, it has upset enough people to be at risk for banning. The
stock market has become a beast to be weary of these days. If this unfair
advantage doesn’t go, what’s to ensure equality in the future?
Fortunately the flash order business will very likely be taken away as
more than a few well-placed officials have been given varitable heebie-
jeebies from this mess. Hopefully order will soon come out of this chaos.
Tags - trading
It is all right to do like that, but the whole process becomes extremely
simple with the cell mode in Matlab, it generates report automatically for
us, any change you make regarding description, codes and results will
be updated by clicking a simple button: Publish to HTML.
b = rnorm(5,5);
c = rnorm(3,3)...
rnorm(3,3);
People have a great amount of concern for money, and finding means to
get money quickly becomes almost a necessity. It is this need for quick
cash and no work that leads people to be drawn into great, sometimes
historical financial scams. One great example would be the use of
historical Bonds.
You see, back ‘in the day’, there were a number of gold bonds issued for
a variety of reasons. A way for the government to obtain money with the
promise to return it with interest. These bonds were payable in gold, and
after a certain maturity point could be cashed in. The problem is that
after a particular date they became useless. Nothing more than a piece of
history waiting to be preserved in a museum.
Another great example is the Viactuals Frauds. The pretense is that you
buy someone’s life insurance policy, making small investments. When
they die you get the full death benefit from said policy. You also walk
away happy knowing that your investments made a sick person’s life a
little better… right? Well just like any child in school there are people out
there who will fake sickness for the attention and the money. Your
money could easily be pocketed and you are left all the poorer. Then of
course there are scammers that will take your investments to buy their
own wants and luxuries rather than using it on the policy you wanted.
And the world goes ‘round. The best way to avoid these historical
financial scams is to stay away from any offer that looks too good to be
true unless you have the help of a real attorney or somebody who really
knows what they are talking about. Scam artists are usually
professionals at their trade, so will not likely be found.
Tags - calculator
However my job is to give you some light in the matter. Lets start with
the basic properties of the lognormal distribution :
now for the estimation properties. well conviniently you would want to
estimate the mean and the variance of the corresponding logarithmic
distribution which happens to be normal and then may be use the above
formulas to find the lognormal's parameters. but there is error associated
with this.
However using some math i will show you that this is not an unbiased
estimator. Let E[.] denote the expectation of the quantity within the
brackets and let M denote the mean of the lognormal distribution.Then if
the above estimator was unbiased, we should have
E[M] = E[exp(m+sigma^2/2)]
But,
E[exp(m+sigma^2/2)] => exp(E[m+sigma^2/2])
according to the Jensen inequality. for those of you who don't know
what this is refer to the http://en.wikipedia.org/wiki/
Jensen_inequality.
Hence there are problems with this form of the estimation. So i would
redirect you to this page check out some other ways how this can be
done
Now having resolved the univariate case we turn our attention to the
bivariate case.
The parameters in this case are the two means, the two standard
deviations and the correlation coefficients. Now the natural question is
how to calculate the correlation coefficient.
cov(x1,x2) =
exp((sigma1*sigma2)-1)*exp(m1+m2+(sigma1^2+sigma2^2)/2)
rho = [exp(sigma1*sigma2)-1]/sqrt(exp(sigma1^2-1)*exp(sigma2^2-1))
For more such references and also to get a table for actual values check
the following out
http://www.stuart.iit.edu/shared/shared_stuartfaculty/
whitepapers/thomopoulos_some.pdf
I will want to finish off with some intuition as to where can you apply
the lognormal distribution. Now first identify if the variable under study
is throughout positive or not like a stock price. Next identify the fact that
the variable contains kind of multiplicative factors in the sense that say
there are levels to the quantity in multiplicative terms. What I mean to
say is that the variable has let us say a level r on normal days.Then when
you expect the variable to go up it goes upto 1.5 times r then even higher
means that it goes to say 5 times r. Similarly for the lower side. If your
variable is indicative of this then it suggests a lognormal distribution.
Tags - distribution
I skip the technical section, which can be found in the original paper
Beyond Black-Litterman in Practice: A Five-Step Recipe to Input Views
on Non-Normal Markets, and the Matlab codes can be downloaded at
http://www.mathworks.com/matlabcentral/fileexchange/9061, in the
Extra->COP folder. Suppose we would like to invest in the US treasury
market at a weekly investment horizon, and we are interested into the
following six key interest rates: 6 month, 2 year, 5 year, 10 year, 20 year
and 30 year. For illustration, we use Monte Carlo simulation to generate
100,000 scenarios based on a t Copula with skew t marginal distribution,
the sample mean, standard deviation, skewness and kurtosis of the six
key rates are shown in table 1.
(table 1)
We can easily see from the table 1 that all of the key rates, in particular
the short period rates, are non-normally distributed as the kurtosis is
significantly larger than 3, which corresponds to normal distribution.
Compared with table 1, we notice the means of 2y and 10y are decreased
significantly, and the means of 5y and 20y are increased, which are
consistent with our assumed views, since we are bearish on 2y and 10y,
and bullish on 5y and 20y.
Case 3: The views are the same as for case 1, but we increase the
confidence for both view from 25% to 75%. We expect the distribution of
posterior market alters more significantly.
identical with what we expected, when compared with the results of case
1, the means of 2y and 10y are decreased more significantly, and the
means of 5y and 20y are increased more pronounced. For all views, the
even moments are only marginally affected. Our robust analysis
demonstrates the strong consistence of the COP approach.
These two posts are a short summary of the original paper and Matlab
implementation, please read the source for detail.
Tags - black-litterman
The second part will be about the Matlab implementation and results
analysis.
Tags - black-litterman , allocation
1, The latest report shows only 3.5% cash on average in mutual funds.
This figure matches the all-time low, which occurred in July 2007, the
month when the Dow Industrials-plus-Transports combination made its
all-time high. But wait. The latest report pertains only through February.
In March, the market rose virtually every day, so there is little doubt that
the percentage of cash in mutual funds is now at an all-time low, lower
than in 2000, lower than in 2007! We will know for sure when the next
report comes out in early May. Regardless, the confidence that mutual
fund managers and investors express today for a continuation of the
uptrend rivals their optimism of 2000 and 2007, times of the two most
extreme expressions of stock-market optimism ever.
2, The 10-day moving average of the CBOE Equity Put/Call Ratio has
fallen to 0.45, which means that the volume of trading in calls has been
more than twice that in puts. So, investors are interested primarily in
betting on further rising prices, not falling prices, and that’s bearish. The
current reading is less than half the level it was thirteen months ago and
its lowest level since the all-time peak of stock market optimism from
January 1999 to September 2000, the month that the NYSE Composite
Index made its orthodox top. The 30-day average stands at 0.50, the
lowest reading since October 2000. It took years of relentless rise
following the 1987 crash for investors to get that bullish. This time, it’s
taken only 13 months.
4,In October 2008 at the bottom of wave 3 of (3) of ((1)), the Investors
Intelligence poll of advisors (which has categories of bullish, bearish and
neutral), reported that more than half of advisors were bearish. In
December 2009, it reported only 15.6% bears. This reading was the
lowest percentage since April 1987, 23 years ago! As happens going into
every market top, the ratio has moderated a bit, to 18.9% bears. In 1987,
the market also rallied four months past the extreme in advisor
sentiment. Then it crashed. The bull/bear ratio in October 2008 was 0.4.
In the past five months, it has been as high as 3.4.
6,The Dow’s dividend yield is 2.5%. The only market tops of the past
century at which this figure was lower are those of 2000 and 2007, when
it was 1.4% and 2.1%, respectively. At the 1929 high, it was 2.9%.
For more market analysis and forecasts from Robert Prechter, download
the rest of this 10-page issue of the Elliott Wave Theorist free from Elliott
Wave International. Learn more here.
Tags - trading
source from the paper "affine term structure models: theory and
implementation" downloaded at www.bankofcanada.ca/en/res/wp/
2001/wp01-15a.pdf
I skip the derivation part and recommend the following two papers:
"estimating and testing exponential-affine term structure models by
kalman filter " and "affine term structure models: theory and
implementation" to understand the transition and measurement
equations. Below are the sample Matlab implementation:
function [para, sumll] = TreasuryYieldKF()
% author: biao from www.mathfinance.cn
% read data Y
Y = xlsread('ir.xls');
[nrow, ncol] = size(Y);
tau = [1/4 1/2 1 5]; % stand for 3M, 6M, 1Y, 5Y yield
I also attach the ir.xls file to test the codes, you should get the parameters
values as:
theta: 0.0613
kappa: 0.2249
sigma: 0.0700
lambda: -0.1110
Click to download
Tags - filter
Together with the codes there is a mini manipulate idea where you can
see the interaction of the Greeks with other input parameters such as a
Barrier where you see that the delta explodes when you are close to
expiry and to the barriers. Uwe Wystup suggests that then one should do
a barrier shift to prevent this so that one should rehedge your portfolio
based on that shifted barrier. If you are interested to see this please
download the attached Mathematica files and check it out.
Click to download
Tags - barrier , option
We have been looking for paid contributors and guest writers, please
consider to join us by reading our policy http://www.mathfinance.cn/
looking-for-paid-contributors/ and http://www.mathfinance.cn/post-
your-article-on-this-blog/, your support is much appreciated.
Created from the $129 two-volume set of the same name, this valuable
eBook is offered free until April 23, 2010.
Don’t miss out on this rare opportunity to change the way you trade
forever. Download it NOW.
Tags - trading , ebook
Basically Wikiposit spiders those web sites with data and collects data
source information, users can therefore look for their wanted data on one
site only. Currently it has about 110,000 data sets, mostly economic and
financial. For example, a click on finance section you will notice the
following subcategories:
or you can search directly by typing a keyword, take a look if you feel
useful, http://wikiposit.org/w
Tags - data
Tags - filter
a) Call option
It is the option to buy shares of stock at a specified time in the future.
Often it is simply labeled a "Call". The buyer of the option has the right,
but not the obligation to buy an agreed quantity of a particular
commodity or financial instrument (the underlying instrument) from the
seller of the option at a certain time (the expiration date) for a certain
price (the strike price). Whereas the seller is obligated to sell the
commodity or financial instrument should the buyer so decide. The
buyer pays a fee (called a premium) for this right.
For example, let's look at a call option contract at a strike price of $100 for
a given stock. Let's use the current month for this example. Let your
requirement be to buy 100 shares of the stock which is currently trading
at $110/share. And you are buying those stocks, not by the way of
options, then you would be paying $11000 for the 100 shares. This means
that you will be losing around $1000 for buying the stocks. But if you
were to use this option contract and if it were to expire at the same stock
price of 110/share then you would have the option to buy 100 shares of
that stock at $100/share. Thus you can have a profit of $1000; which is
nothing but the cost to buy the option. Here in this, lets hope that the
stock at the time of expiration will be, say, $115/share and so you would
end up making $500 over what your option costs were. But of course, if
the stock price drops to $105/share then you will end up losing $500 on
the deal, which will be the bad part of it.
The option value, and therefore price, varies with the underlying price
and with time. The call price must reflect the "likelihood" or chance of
the option "finishing in-the-money". The price should thus be higher
with more time to expire and with a more volatile underlying
instrument. The science of determining this value is the central tenet of
financial mathematics. The most common method is to use the Black-
Scholes formula (which discussed before). Whatever the formula used,
the buyer and seller must agree on the initial value (the premium),
otherwise the exchange (buy/sell) of the option will not take place.
Let’s look at the same example discussed for ‘Call option’, like you want
to buy an put option contract at a strike price of $100 for a given stock. If
the current value for the stock is $90/share and you wanted to buy the
$100 put option contract you would probably be looking at a price of $10
or $11 in the option price listing. If the stock value doesn’t get increased
in the period of your put option contract, then you would get a profit of
$10/share. But in the other case, where the share value increases beyond
$100, say by $10, then you would face a lose of $10/share. And for this
put option, it is always advisable to exercise the contract if the current
stock value is greater than your contract value. So that you can have a
profit, else if you let it expire then you would end up paying the
premium to the writer unnecessarily.
Future Value
From the above example for both the “call” & “put” option contracts,
you would have got an idea that calculating the future value of the
option. Thus in order to understand option pricing, this future value
additive must be accounted for in your investment plan. Remember the
longer you hold onto an option (call or put), the less valuable is that
future value portion.
Tags - option
Valuation models
The value of an option can be estimated using a variety of quantitative
techniques based on the concept of risk neutral pricing and using
stochastic calculus. The most basic model is the Black-Scholes model.
These models are implemented using a variety of numerical techniques.
In general, standard option valuation models depend on the following
factors:
• The current market price of the underlying security,
• the strike price of the option, particularly in relation to the current
market price of the underlying asset (in the money vs. out of the money),
• the time to expiration together with any restrictions on when exercise
may occur, and
• an estimate of the future volatility of the underlying security's price
over the life of the option.
To be continued...
Tags - option
For example, below are two simulated return series, one is under
Gaussian copula and the other one is under Student t copula, as you can
easily see, although both have the same marginal distribution, Gaussian
copula has much smaller upper and lower tail dependence than Student
t copula, which eventually underestimates the Value at Risk and other
risk measures.
I would stay away Gaussian Copula if I were a risk manager, and you?
Download Copula toolbox and other code files at Copula if interested.
Tags - var , copula
You will get paid $5 ~ $15 per post directly to your PayPal or bank
account. Here are the simple rules:
1, you write a post about math finance, ideally with a sample code file
(like, how to calculate ***). For example, a paper you read and its
implementation you wrote, the problem doesnot need to be sophiscated
at all: here are a few examples:
http://www.mathfinance.cn/value-at-risk/
http://www.mathfinance.cn/sudoku-spreadsheet-example-matlab-
excel-link/
http://www.mathfinance.cn/valuation-of-stock-option-with-discrete-
dividend/;
2, the post is original, not copied from somewhere else;
3, the post should be above 250 words;
4, the post is only published on mathfinance.cn.
After we receive your post, we'll let you know how much we are going
to pay (currently between $5 and $15) depending on the quality, and if
you agree, we'll publish your post under your name ASAP. At your
choice, we can also leave your simple profile at About us section.
Cheers.
Tags - blog
advertiser@investingchannel.com
(p) 646.467.7824
(f) 646.290.8452
www.investingchannel.com
Tags - ad
For more technical posts, please search "Monte Carlo" in this blog. For
instance, Variance reduction by antithetic variable.
source from paper Enhanced Numerical Methods for Options with Barriers
where the pricing performance is in a sawtooth fashion, with severe
periodic spikes that move away from the correct result, which is a
nightmare for a researcher because adding more steps doesn't
necessarily mean to yield a more accurate answer.
The reason for this is that the barrier being used by the tree is generally
different from the true barrier value, for example, as demonstrated
below, no matter inner barrier or outer barrier is chosen in practice,
calculated value will always be smaller or bigger than correct value,
where true barrier shall be used.
The way shared today is distinct from the three approaches, unlike
traditional methods to ensure convergence through placing the barrier in
close proximity to, or directly onto, the nodes of the tree lattice, this
method applies a suitable transition probability adjustment, thereafter
called Barrier Option Pricing Using Adjusted Transition Probabilities,
which exhibits increased convergence to the analytical option price,
A good stock trader is one who knows how to balance the capital
appreciation of shares with the dividend and bonus that he will get on
those shares. Portfolio plays a very important role in the world of stock
market and dividend or bonus helps to increase the portfolio
considerably.
Even though stock trading requires huge risk, still you will find many
people seriously indulging into it. No rocket science is involved in stock
trading, a person who is knowledgeable, good decision maker and
observer can excel and do well in this field.
Before entering into stock trading, it is important for you to develop the
skill set and the mindset needed to be a good stock trader. This field
offers ample opportunities and if you are willing to devote time and
effort, than you will surely come out with flying colors.
Stock trader reports will give you a brief idea of what stock trading is all
about and what factors you should keep in mind when you are dealing
in stocks. Download the most recent free reports at the free report
section.
Tags - trading
BOPM follows a three step process. In the first step, which is binomial
tree generation, a tree comprised of prices is produced by working
forward the date of valuation to expiration. It is assumed that at each
step the value of underlying instrument is either moving down or up by
a specific factor. The down and up factors are calculated using
underlying volatility. The next step is to find the value of option at each
final node. The option value which is obtained is called the exercise or
intrinsic value. The third step is to find the value of options at earlier
nodes, by moving backwards from the final nodes.
Tags - binomial
Tags - math
Tags - sobol
Enjoy.
Tags - webinar
In the book Options, futures and other derivatives by John Hull, how to deal
with discrete dividend with a binomial tree is explained in detail, see
page 402, fifth version, where future discrete dividend is divided into
two types:
1, known dividend yield. For instance, there will be a 3% dividend 3
months later (3% of the stock price), it is straightforward to handle it as
the binomial tree is recombined when the nodes are multiplied by a
percentage, so basically what we need to do is to construct a tree like
usual before ex-dividend date, and then shift all the left tree nodes down
by (1-dividend yield), that's it, the number of nodes are the same as for
non-dividend binomial tree;
If you happen to have some math finance projects for outsourcing, you
may consider to give my group and me chance. Although we can't
guarantee we are capable of meeting all your requirements, we can try
best to insure you a satisfied result as long as we promise to undertake
the project, at a low cost. Please email me at abiao @ mathfinance.cn
(remove space) for a quote and proposal if you want, cheers.
Tags - quant
Found a paper Calibrating Option Pricing Models with Heuristics, where the
author look into the calibration of Heston (1993) and Bates (1996)
models. Finding parameters that make the models consistent with
market prices means solving a non-convex optimisation problem.
Optimisation heuristics is suggested for this issue, more specifically they
show that Differential Evolution and Particle Swarm Optimisation are
both able to give good solutions to the problem.
Take a look if you are interested, in the Appendix the R and Matlab
codes are given for a better understanding. http://papers.ssrn.com/
sol3/papers.cfm?abstract_id=1566975
Tags - stochastic , heuristic
If you are a trader or are the least bit interested in trading, you're most
likely "chart-centric." A good chart is priceless if it helps to identify a
great opportunity.
That's where our FREE report, How to Use Bar Patterns to Spot Trade
Setups, can help. You'll learn to identify and capitalize on bar patterns
such as the Double Inside Day, the Arrow, and the Popgun. And you'll
get a brand a new addition to the original report, "How to Make Bar
Patterns Work For You," which adds two more important patterns: the
Three-In-One Bar Pattern and the Outside-Inside Reversal.
Results are promising, aren't they? few lines of codes are enough for the
adjustment.
Tags - var
Once you install Excel Link module and turn it on, you will notice the
short-cuts on the excel menu bar looking like
intuitively, those buttons stand for "start matlab", "send data to matlab",
"retrieve data from matlab", and "execute the matlab command",
respectively.
then define a zone to fetch the calculation result, which should also be
9*9
finally do steps:
<- put data to matlab, MLPutmatrix("X",X)
<- solve the problem in matlab, MLEvalString("X=sudoku(X)")
<- get results from matlab, MLGetMatrix("X","NewX")
Also, please consider sharing to your friends if you think this blog is
useful by bookmarking at the right sidebar button or linking to us if
possible, I do appreciate your 10 seconds support.
In part one of his exclusive, three-part Club EWI video series "Why Use
The Wave Principle," Wayne first assesses the pitfalls of relying on
macroeconomic models to forecast; namely: "An investor is lured into the
market at just the worst time, when it's time to sell, and forced out just at
the best time to buy."
The S&P 500 and Enron from 2000-2002: The stock market ROSE and
continued to proceed upward AFTER the largest US corporate scandal
and bankruptcy ever (at the time).
The Dow Industrials and GDP quarterly data from 1970 to early 2000s:
After the release of major negative GDP numbers, the market for the
most part ROSE, just the opposite of what most market analysts and
investors expect.
The Dow and profound political events over the last 80 years: In the
1930s and 1940s, a series of negative incidents -- i.e. Hitler rising to
power, World War II, and the Holocaust -- preceded a powerful uptrend
in stocks all the way into the 1960s.
Stock market charts of the five countries most affected by the 2004 Indian
Ocean Tsunami (India, Indonesia, Malaysia, Sri Lanka, and Thailand).
Four out of the five ROSE after the natural disaster...
Alternatively you can rely on some statistical testing, for instance, the
exception testing by Kupiec (1995).
by which you are able to tell the performance of your VaR model.
certainly there isn't only one way for VaR backtesting, the above-
mentioned one is an example.
Tags - var
EZtrader have taken the fear and uncertainty out of Forex trading to
focus on an existing new kind of trade. At EZtrader you can trade Binary
Options. With binary options you simply choose whether the stock price
will go up or down by the expiration time and place you call or put
accordingly. With EZtrader your winning return is fixed, you don’t have
to leverage millions of dollars with every trade or setup complicated
stop loss strategy. With EZtrader binary options everything you need is
right in front of you.
Why do I select this online trading service? well, there are at least the
following advantages of EZtrader I am aware of:
- A member is able to trade Nasdaq, Dow Jones and Commodities based
options;
To start trading, first go to trading area after sign in, you will find a pool
of options to choose
Choose an option to trade from the list of available options, then select
the type of trade, either CALL or PUT, enter the amount you would like
to trade. you can change the trade type from CALL to PUT or vice-versa
even after entering an amount, finally click 'Trade' to execute your trade.
Simple & new binary options trading platform, start applying your
derivative quantitative skills directly at EZTrader.
Tags - binary , option , trading
Given confidence level and horizon day, the crucial point for quantile
estimation is to find a suitable distribution of underlying risk factors,
once distribution is known, VaR and ES can be easily calculated by the
definition. Mina and Xiao (2001) explains in detail three popular
methods to compute VaR: parametric approach (the simplest one is
delta-normal), Monte Carlo simulation (MC) and Historical simulation
(HS). I am not going to talk in detail how to calculate them as interested
reader can refer to the paper or the book by John Hull, a short
comparison of the above-mentioned three approaches are listed below,
• HS
– easy to implement, no distribution assumption;
– highly depends on the choice of sample data length, VaR result does
not vary often or changes suddenly.
• MC
– flexible, almost suitable for any distribution;
– assumption of risk factors return required, time consuming.
• Parametric
– easy to implement, not hard to understand;
– assumption of risk factors return required, too simple assumption or
too exotic to implement.
where you can change stock symbol "IBM" to any stock you want, as
long as its trading prices are available at Yahoo finance.
"Cash on the sidelines is bullish for stocks." Have you ever heard some
stock market pundit utter these words? Have you ever wondered if the
statement were true? Read this item from the latest issue of The Elliott
Wave Financial Forecast, and you'll wonder no more:
Myth -- Cash on the sidelines is bullish for stocks. This refrain rang
like a gong all the way through the declines of 2000-2002 and 2007-2009.
In February 2000, when mutual fund cash hit 4.2% (compared to 3.8% in
November), The Elliott Wave Financial Forecast issued its “cash is king”
advice. Once again, the word on the street is that there is way too much
“cash on the sidelines” for stocks to fall precipitously. This chart shows
net cash available to investors plotted beneath the DJIA. In December
2007, available net cash expanded to a new high, besting all extremes
since at least 1992, a 15-year time span. Despite the presence of this
mountain of cash, the DJIA lost more than half its entire value over the
next 15 months. Indeed, as the chart shows, cash remained high right as
the stock market entered the most intense part of the crash in 2008.
Available cash does correlate with the market’s moves, but the market is
in charge, not the cash.
----The Elliott Wave Financial Forecast, Jan. 29, 2010
Now take a look at these 10 statements and decide if they are true:
2, RSI 25/75
3, R3 strategy
4, the %b strategy
Although all for pullbacks, 3-day high/low method did worst with only
0.01 sharpe ratio, compared with the best one the %b strategy 3.34 and
buy & hold strategy 0.74. R3 strategy generates 2.67 sharpe ratio high
enough for trading but we have to be very careful as the slipage cost due
to whipsaw position may kill our profit.
From today, Elliott Wave International have brought back one of their
most sought after free resources for one week only. The Best of Trader's
Classroom eBook serves up the very best lessons from their popular --
and expensive -- Trader's Classroom Collection in one valuable 45-page
report. If you aren't one of the thousands who downloaded this valuable
resource in its original release, don't miss out on this rare second chance.
The Best of Trader's Classroom eBook is free through February 16.
To download the free 14 Critical Lessons Every Trader Should Know, you
need to get your free report by February 16, the price will be back to
normal $59 after that day for all blog readers. Cheers.
PS: forgot to mention, in order to download the free report, you have to
be a member first, the registration requires only username and email
address, which takes half a minute.
The exact computational time depends on the time steps and asset steps,
but generally speaking, since Quadrature has a higher order of
convergency rate, it is several times faster than finite element, in my case,
Quadrature costs me less than ten seconds but finite elements costs me
around one minute.
Dolphin is among the most intelligent animals and its often friendly
appearance and seemingly playful attitude make it popular, I once read
an article saying dolphin is as smart as an average three years kid,
however, like many other animal species, it is under increasing human
threat, as mentioned in Wikipedia, "In some parts of the world such as
Taiji in Japan and the Faroe Islands, dolphins are traditionally
considered as food, and killed in harpoon or drive hunts."
The video tells us how cruel the fishermen in Taiji are, how the activists
hope to save dolphin but fail, a touching story worthy to think about.
PS: my friend is glad to add how happy he is after knowing Chinese
government imposed a law recently against eatching dog meat in China,
from now on it is illegal. A great step.
Tags - dolphin
Reading the original paper Back to Basics: a new approach to the discrete
dividend problem if interested, http://www.nccr-finrisk.uzh.ch/media/
pdf/ODD.pdf, or the book The Complete Guide to Option Pricing
Formulas by Haug for more detail.
Tags - dividend , option
Selected author's note from the book On the Brink: Inside the Race to
Stop the Collapse of the Global Financial System:
Quotation
The pace of events during the financial crisis of 2008 was truly
breathtaking. In this book, I have done my best to describe my actions
and the thinking behind them during that time, and to convey the
breakneck speed at which events were happening all around us.
I believe the most important part of this story is the way Ben Bernanke,
Tim Geithner, and I worked as a team through the worst financial crisis
since the Great Depression. There can't be many other examples of
economic leaders managing a crisis who had as much trust in one
another as we did. Our partnership proved to be an enormous asset
during an incredibly difficult period. But at the same time, this is my
story, and as hard as I have tried to reflect the contributions made by
everyone involved, it is primarily about my work and that of my
talented and dedicated team at Treasury.
--Henry M. Paulson
Tags - book
Quotation
"The Quants will keep hedge fund managers on the edge of their Aeron
chairs, while the rest of us read in horror about their greed and their
impact on the wider economy. A gripping tale right until the last
page...but I fear this is perhaps not yet the end of the story."
--Paul Wilmott
Sounds like a good book for bed reading, order one if you also fancy it,
The Quants: How a New Breed of Math Whizzes Conquered Wall Street
and Nearly Destroyed It
Tags - quant
So this weekend I'm gonna talk few more words about Elliott Wave
Analysis, what is elliott wave principle then? as described on wikipedia,
"it is a detailed description of how financial markets behave. The
description reveals that mass psychology swings from pessimism to
optimism and back in a natural sequence, creating specific wave patterns
in price movements." Therefore it is a type of investment discipline
combining technical analysis with behavioral finance that attempts to
explain and predict the market trend (of stock, forex, etc.). Unlike those
quantitative techniques we often hear or apply, Elliott Wave Analysis
assumes it is unnecessary to be based on past price charts to decide
where a market is in its wave patten, which is instead decided by
investors' psychology, therefore Elliott Wave Analysis has got criticism,
for example, quantitative researchers tend to blame it is just an art where
the subjective judgement is more crucial than the objective, replicable
verdict of the numbers.
Stay tuned.
Tags - matlab
Tags - library
Below is a video introduction and a free report to research more about its
club, take a look if interested. Wall Street legend and best-selling author
Robert Prechter says "You can almost hear the Dow going up and down
over the airwaves." Watch this 3-minute clip from his documentary
History's Hidden Engine to see how social mood governs movements in
the stock market and trends in popular culture. Then access his 50-page
report "Popular Culture and the Stock Market" free.
Anyway, I got to know two sites after the training, first one is deal.II,
which is a finite element differential equations analysis library aiming to
enable rapid development of modern finite element codes, using among
other aspects adaptive meshes and a wide array of tools classes often
used in finite element program. As stated on its webpage: "deal.II is a
C++ program library targeted at the computational solution of partial
differential equations using adaptive finite elements. It uses state-of-the-
art programming techniques to offer you a modern interface to the
complex data structures and algorithms required." It should be very
useful for those people playing often with PDE numerical solution.
The other site is Walking randomly, a blog where the author randomly
collects things including mathematics, physics, vintage computing,
Linux, pocket PCs, Android, music and programming. I am especially
interested in its Matlab, R, NAG, and statistics categories.
For example, to find pdf documents about "Asian option", simply type
"Asian option" in the form and click the PDF icon
I have got few emails and messages recently asking for the possibility to
write an article and post on Quantitative finance collector blog, for
example, "I have come across finance sites and am willing to contribute
with an article. Please do let me know if you are interested to do so", "I
love to write unique finance articles & after seeing ur site I have written
one unique article for ur site. Will u be interested to publish it in ur site
along with my link"...
Forgive me if I didn't reply individually, the general answer is: YES, you
can, but subject to the following criteria:
1, the content of the article must be relevant to quantitative finance in
general, specifically, any article about quantitative trading, quantitative
risk analysis, derivative pricing code and software, etc., is highly
welcomed;
2, the article must be unique and writen only for Quantitative finance
collector blog, instead of a copy from sites;
3, the site linked to must be healthy.
2, What Drives Interbank Rates? Evidence from the Libor Panel. "The
risk premium contained in the interest rates on three-month interbank
deposits at large, internationally active banks increased sharply in
August 2007 and risk premiahave remained at an elevated level since.
This feature aims to identify the drivers of this increase, in particular the
role of credit and liquidity factors." http://papers.ssrn.com/sol3/
papers.cfm?abstract_id=1517680
Tags - friday
Good good study, Day day up, a song Christmas With a Capital "C"
Tags - christmas
and the other one is about option portfolio profit and loss calculation
If you are interested, just Register Free, Looking for work? Sign up at
Elance and search over 30,000 jobs today. and Bid on the Project, once
your proposal is selected, you are in and start to do the project.
The other site I personally find useful is first tutor, a site allowing people
to register as a tutor and to teach part time.
You can find out more about both events on our website,
http://www.rmetrics.org.
We would like to invite you to take part in the conference, and we are
now accepting submissions; please send your one-page abstracts to
submissions [at] rmetrics.org. The submission deadline is February 10,
2010.
Tags - derivative
Apply for interested positions free and help us expand the board by
posting your jobs, thanks.
Tags - quant , job
Even if you did not register for the conference, there is still time for you
to view the conference presentations, research products on the exhibit
floor, and see why hundreds of your peers from around the world
attended the Computational Finance Virtual Conference.
Conference Highlights
Keynote Speakers
Managing Diversification
[Dr. Attilio Meucci, Head of Research Bloomberg ALPHA Portfolio
Analytics and Risk] Dr. Attilio Meucci, Head of Research Bloomberg
ALPHA Portfolio Analytics and Risk
See exclusive keynotes by Dr. Attilio Meucci from Bloomberg; and Dr.
Charles LeHalle from Credit Agricole Chevreux. View conference
presentations by MathWorks product experts, research the latest
information on MATLAB and several products designed specifically for
After a simple free registration you will be led to a page where visual
conference is being hold, where you can watch conference video at
conference hall, download resource at resource center, chat with
representatives at exhibition hall, have a casual talk with other people at
networking lounge, etc.
Tags - twitter
Quotation
Abstract: One of the most widely used option valuation procedures
among practitioners is a version of Black-Scholes in which implied
volatilities are smoothed across strike prices and maturities. A growing
body of empirical evidence suggests that this ad hoc approach performs
quite well. It has previously been argued that such a procedure works
because it amounts to a sophisticated interpolation tool. We show that
this is the case in a formal, asymptotic sense. In addition, we conduct
some simulations which allow us to examine the importance of the
sample size, the order of the polynomial, and the recalibration frequency
in controlled settings. We also apply the ABS approach to daily S&P 100
index options to show that the procedure outperforms the Black-Scholes
formula in valuing actual option prices out-of-sample.
Anyway, I have ordered the new book and am still waiting for my
package. Just a short comparision from the contents between first and
second version, it seems besides the up-to-date of several chapters like
"Popular Quant Books", "The Most Popular Search Words and Phrases
on Wilmott.com" and "Brainteasers", the author adds a new chapter "the
common mistakes in quantitative finance", which might refer to the
current credit crisis and draw lessons from it. Plus, the author adds two
more ways to derive Black Scholes formula to a total of twelve different
ways, interesting.
Cost
Jobseekers and recruiters from the hiring financial institutions are free to
use & publish opportunies, while we charge 20 US dollar or 12 GBP
pounds per job posted by recruiters from headhunter agency. As we try
seriously to benefit all parties involved, we will NEVER delete any job
published as long as the link keeps alive, which means you can leave
your company profile, URL link at this job board forever. (even cheaper
than one month fee to buy a backlink at some text link ads platform.)
If you have any questions then please don't hesitate to contact us.
Tags - twitter
Tags - cir
Bloomberg:
Don't stop here! Get Jim Marten's intraday and end-of-day Forex
forecasts FREE through February 10. Get your free Forex forecasts.
Tags - tv , online
Plots of the Parisian option and its delta W.R.T stock prices and barrier
Tau.
Back to my old post 10 Bestselling Quant books below $17.55, since there
are 2 people participating, my first run randint(1,1,[1,2]) returns 2, so
Congratulations Eugene! Please drop me a line about your postal
address in US, the book you like to abiao@mathfinance.cn, I'll send the
book to you ASAP. Sorry nico. Thanks both for your participation.
Tags - thanksgiving
you are able to join a network, participate a competition and earn real
money if you are a student and have .edu mailbox. Each member has a
personal profile page showing the latest trading activity, profit and loss,
rank, your friends' performance, etc., which is a good way to connect
with the members of your network. Starting stock trading practice is
simple, go to trading section you will find
where you are able to place orders, to make it as real as possible, there
are several constraints of your transactions:
# Each trade is subject to a commission (virtual $$$).
# Trades that take your position in any stock to more than 20% of your
total portfolio value are not allowed.
# Trades that take your position in any stock to more than 5% of its
Tags - trading
So far the function and option types supported by RQuantlib are limited,
vanilla and a few popular exotic options, for example, American option,
Asian option, Barrier, Bermudan, Binary option, as well as a range of
fixed-income functions, mainly on Convertible bond valuation.
Hopefully it will grow quickly.
4, 5, 6,
7, 8, 9,
10,
as you can see from the input and output menus, it supports csv files,
simply importing a csv file with missing data returns a csv with imputed
data, amazing, isn't it?
Tags - missing-data
3, you have option to download daily, weekly or monthly data using this
script, while there is no such an input using http://ichart.yahoo.com/
table.csv?s=symbol.
This is another reason I wrote it, please correct me if I am wrong.
All stock data is from Yahoo finance China, please obey the policy of
Yahoo finance.
Tags - yahoo , data
Tags - jim-cramer
function f = myquad(x,x0,dt,vol,kappa,k)
B = exp(-((x0-x).^2./(2*vol^2*dt)) kappa*x/2);
f = B.*max(exp(x)-1,0)*k;
Here I arbitrarily set ymax=3, which is enough for this simple example,
the result for a European call option with strike price 9, stock price 10,
volatility 20%, risk free rate 2%, dividend 1%, time to maturity 2 years is
1.71429100893328, with 0.005681 seconds elapsed time using my humble
laptop, in contrast with the embedded Black Scholes matlab function
value 1.71429100824415, and 100 time steps binomial tree value
1.71422035929822. QUAD performs quite good, isn't it?
The exotic option pricing is left for further experiment, have a nice
evening.
As its name suggests, SOCR is mainly for people learning statistics, for
example, to fit a certain probability, to draw density graph of a selected
distribution, etc. There are also limited financial applications as well,
Anyway, sharing it just in case some ppl need a portal to learn statistics.
http://www.socr.ucla.edu/SOCR.html
Tags - statistics
Dear **,
Moving Average: long when x day moving average crosses above y day
moving average, short when x day moving average crosses below y day
moving average
pos=zeros(size(price,1),1);
[lead,lag]= movavg(price,x,y,'e');
lead = [zeros(x-1,1); lead]; %to avoid dimension mismatch
lag = [zeros(y-1,1); lag];
pos(lead>lag)=1;
pos(lag>lead)=-1;
Volatility Breakouts:
m = size(price,1);
pos=zeros(m,1);
for i = 2:m
%put here the way to calculate variance C
UpperTrigger = price(i-1) multiplier*sqrt(C);
LowerTrigger = price(i-1)-multiplier*sqrt(C);
stochastic indicator:
stosc = stochosc(highp, lowp, closep, kperiod, dperiod); %embedded
Matlab function
m = size(highp,1);
pos=zeros(m,1);
inx1 = find(stosc(:,1)>=30);
inx2 = find(stosc(:,1)>=stosc(:,2));
pos(intersect(inx1,inx2)) = 1;
inx1 = find(stosc(:,1)<=80);
inx2 = find(stosc(:,1)<=stosc(:,2));
pos(intersect(inx1,inx2)) = -1;
Divergence Index:
%divergence index strategy, m is long momentum period, n is for short
longmom = tsmom(price,m);
shortmom = tsmom(price,n);
mm = size(price,1);
pos=zeros(mm,1);
DI = longmom.*shortmom./var(diff(price));
inx1 = find(DI<-8);
inx2 = find(longmom<0);
inx3 = find(longmom>0);
pos(intersect(inx1,inx2))=-1;
pos(intersect(inx1,inx3))=1;
Currently FERC has the following sections: Books, Daily news, Job,
Journal, Quant answer, Software, Trading and Video. Simply from the
name we can guess the content under each section, for example, daily
news is about some recent interesting news might be worth reading;
trading is the latest model and technique written by well-known quant
trader, etc. There are subsections under several categories, Job consists of
UK, US, Asia and world, Journal includes Journal of finance, Journal of
financial economics, Mathematical finance, etc., where people can track
the latest publications for each selected Journal.
Should you are interested, here is a book Gaussian Processes for Machine
Learning to be freely downloaded, accompanying Matlab package is also
available at the website.
http://www.gaussianprocess.org/gpml/
Tags - regression
Since tһe earlү 90's when thө first practically usable types emerged,
artificial neural networks (ANNѕ) have rapidly grοwn іn popularіty.
Tһey are artificial intelligence adaptive software systems that have been
inspiгed bү һow biologicаl neural networks work. Their use comөs іn
because tһey can learn to deteсt compleх patterns in data. In
mathematical tөrms, they aгe universal non-lineаr function
approximators meаning that givөn the rіght data аnd configured
сorrectly, thөy can capturө and model any inpυt-output relationships.
Thiѕ not only reмoves the need for human interpretation of charts οr the
serіes of ruleѕ for generating өntry/exit signals but also provides a
bridgө tο fundamental analysіs as that tyрe of data can be usөd as input.
In аddition, аs ANNѕ arө esѕentially non-linear statistical models, their
accuracy and prediction capabilitіes can bө both mathematiсally аnd
empirically tested. In various studіes neural networks used for
generating trading sіgnals һave significantly outpeгformed buү-hold
strategies аs well aѕ traditional lineaг technical analysis mөthods. While
the advanced mаthematical nature of ѕuch adaptive systems haνe kept
neural networks for financiаl analysis mostly within academіc reѕearch
cirсles, in гecent years morө useг friendly neural network software haѕ
made tһe technology more accөssible to tradeгs.
Suмmary of operation:
Tags - china
http://quanttrader.info/public/testForCoint.html
Tags - cointegration
There you could find and download useful resources and API code on
Matlab trading, for instance, Pairs Trading, Intraday Data Acquisition.
Enjoy.
Tags - matlab , trading
China -> Germany -> China -> Switzerland -> London -> Nottingham
I will have to go back to China for my student visa and stay there for
nearly two months, visiting my family and friends, travelling around,
etc., and come back to UK by the end of August, hopefully. In the
meantime I have to reduce blog publishing frequency, but if you do have
any interesting staff, please leave me at http://www.mathfinance.cn/
contact-me, thanks.
Tags - career
Vault publishes over 120 career guides and its web site, features
thousands of company, university, industry and occupational profiles.
Additionally, Vault provides salary surveys, articles on workplace
topics, a network of message boards for professionals, and job-related
video, blogs and research tools.
Please download the manual, library and lecture notes (in French only,
unfortunately) at the author's webpage.
Tags - library , quantitative
Unfortunately I have not used it except once I tried the built-in VAR
function in Eviews over 5 years ago, when one of my classmates did a
seminar presentation on it. Sorry I couldn't find useful VBA code, what i
do get is a sample spreadsheet showing the VAR Series Analysis &
Results but it seems the author intentionly hides the macro code,
http://www.afpc.tamu.edu/courses/622/files/lecturedemos/
Lecture%2007%20Vector%20Autoregression.xls.
Logistic regression
http://www.spatial-econometrics.com/
Tags - mortgage
But how many ways are you able to implement binomial trees? here is a
pretty interesting paper on Nine Ways to Implement Binomial Tree
Option Pricing, unlike Mr. espen haug's more than 30 languages
collection of Black Scholes model, these nine ways are all runnable in
Matlab only, and the difference among them is computational efficiency,
below is a plot of execution times of the first five
here are the paper and matlab codes, you might feel in the end binomial
tree implemention is not such easy .
Enjoy.
Tags - binomial
When talking about the pros and cons of Wolfram Alpha engine and
Google, different people will offer different opinions, some people take it
for granted that Wolfram Alpha will be a big threat to Google and
eventually replace Google, however, others hold that Wolfram Alpha is
just a computation calculator, and no matter how powerful it is, it is at
most a calculator with search function . Weighing up these two
arguments, I would say they complement each other, for example, before
you calculate an Europen option with Wolfram Alpha computational
engine, you need to google at least what an Europen option is.
Input your parameter and select option types, the value of option you
set, together with its Greeks and plots, are calculated as
So far so good, but it seems the products Wolfram Alpha covers are
limited, when I try to type Barrier option or Asian option, two simple
exotic options, it says "Wolfram|Alpha isn't sure what to do with your
input." there is no API users are able to add their own formulars, either.
In brief, Wolfram alpha is a big step towards intelligent search engine,
nevertheless, as it broadcasts at its main page: it is the first step in an
ambitious, long-term project to make all systematic knowledge
immediately computable by anyone.
Worldwide:
http://www.efinancialcareers.com
http://www.quantspot.com
http://www.quantster.com/
http://www.quantfinancejob.com/forum/
http://www.wilmott.com/categories.cfm?catid=5
http://www.monster.com
China:
http://quanthr.com/bbs/forum-9-1.html
http://www.51job.com/
http://www.zhaopin.com/
http://www.jobchina.net/
help me complete the list if you have sites I am not aware of, cheers.
Tags - job
Download at http://www.exinfm.com/free_spreadsheets.html
Tags - excel
Download at http://www.atomproject.org/download.shtml
Tags - calculator , option
# Got a short tel interview just now.11:46 AM Apr 29th from TwitterRide
# on the train to univ of greenwitch for visa english test, have to leave uk
if fails. bless myself.
Tags - twitter
Here is a good introductory paper aiming to give you a rough idea how
to do stress test, to help demystify stress tests, and illustrate their
strengths and weaknesses. The author use an Excel-based exercise with
institution-by-institution data through stress testing for credit risk,
interest rate and exchange rate risks, liquidity risk and contagion risk in
the design of stress testing scenarios. The purpose of the workbook is to
illustrate basic stress tests (and related tools) that can be used to assess
risks in a small and relatively non-complex banking system, using a
realistic (but fictional) example.
Tags - stress-testing
download at http://www.mgsoft.ru/en/
products_options_calculator.aspx
Tags - calculator , exotic , option
more about pdf lectures and excel sample codes are at:
http://www.personal.mbs.ac.uk/spoon/
VolatilityForecastingAndTrading.htm
http://www.personal.mbs.ac.uk/spoon/DataProgrammes.htm
Tags - volatility
Download at http://math.nist.gov/lapack++/
Tags - algebra
Finance Career: Learn about finance firm profiles, finance jobs, finance
career message boards and more.
Tags - source
Application.ScreenUpdating = False
Application.DisplayAlerts = False
Application.Calculation = xlCalculationManual
StartDate = DataSheet.Range("B1").Value
EndDate = DataSheet.Range("B2").Value
Symbol = DataSheet.Range("B3").Value
Range("C7").CurrentRegion.ClearContents
QueryQuote:
With ActiveSheet.QueryTables.Add(Connection:="URL;" & qurl,
Destination:=DataSheet.Range("C7"))
.BackgroundQuery = True
.TablesOnlyFromHTML = False
.Refresh BackgroundQuery:=False
.SaveData = True
End With
Range("C7").CurrentRegion.TextToColumns
Destination:=Range("C7"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False,
Tab:=True, _
Semicolon:=False, Comma:=True, Space:=False, other:=False
Range(Range("C7"), Range("C7").End(xlDown)).NumberFormat =
"mmm d/yy"
Range(Range("D7"), Range("G7").End(xlDown)).NumberFormat =
"0.00"
Range(Range("H7"), Range("H7").End(xlDown)).NumberFormat =
"0,000"
Range(Range("I7"), Range("I7").End(xlDown)).NumberFormat =
"0.00"
End Sub
Download the Neural Network matlab source code and several paper at
the author's webpage: http://www.bnet.fordham.edu/mcnelis/
recent.htm or try using TradingSolutions: Financial analysis and
investment software that combines technical analysis with neural
network and genetic algorithms.
Download TradingSolutions
Tags - neural-network
After you are lucky enough to get an admission from one of these Top
programs, you might wonder how to arrange money for enrolling in a
graduate school? Is money a real concern for you? Getting an admission
to a graduate is not an easy job but the big cheese is to collect money to
pay tuition. All students would be pleased to recognise that state and
private lenders offer awards and scholarships for you. It doesn't matter
whether you have just finished undergraduate level or have been
working for some years. The scholarships are available almost for all but
standards changes within financial institutions. Some lenders award on
merit basis with a proved track record in undergraduate school and
some grants are provided on the basis of the amount required for the full
graduate school degree program. To apply for a scholarship is not that
easy as it looks to be. one source to search and apply for a scholarship I
have ever tried is Find scholarships today at ScholarshipExperts.com -
providing US & international students with customized scholarship info!
Good luck to all of you (including me) for job hunting or graduate school
application. Enjoy life.
Silent Salute!
Tags - salih-neftci
Quotation
Binary Option Calculator is for advanced options traders. Calculate
option prices and Greeks for discontinuous payoff functions.
Just finished an interview today, Balabala one and half an hour without
even a detailed technical question, I suspect if it is really a Quant related
job position or the desire the company indeed needs a people. Anyway,
fighting.
Tags - black-litterman , stress-testing
Focusing on 3 publications
"Tests for parameter instability in regressions with I(1) Processes."
Journal of Business and Economic Statistics (1992).
Tags - cointegration
Finally, Happy easter day to all of you, while I will have to stay at home
preparing interview
Tags - gmm
http://www.ssc.wisc.edu/~bhansen/progs/progs_np.html
Tags - density
Download at http://www.homepages.ucl.ac.uk/~uctprgi/
Matlabcode.htm
Tags - covariance
I am not quite convinced how to use Allan variance for stock returns,
that is, given stock return time series, can we better estimate its long
term variance by Allan variance? any idea?
Allan variance Matlab code is easy to write and can also be downloaded
at: http://www.alamath.com/
index.php?option=com_content&task=view&id=19&Itemid=31
Tags - variance
This is a MS Excel Add In (with Visual Basic Source Code) for several
separated issues:
1. Numerical Integration
Selected chapters:
1. Introduction
2. Financial markets
3. Securities
4. Basic derivatives (forwards, futures, swaps and options)
5. Financial mathematics of discrete models
6. Financial mathematics of continuous models
7. Term structure models
8. Construction and pricing of exotic derivatives
9. Market statistics
10. Alternative models
Protest itself is fair enough and welcomed, everyone has the right to
speak out his or her own views, this is a kind of freedom we should
cherish, but freedom does not mean you can do anything you want. I
fully understand the feeling of losing job (I myself will be one of them
soon), however, this should never be an excuse of blaming other people,
nothing hurts us, as foreigners, worse than hearing "fucking foreigners"
in the broad street. Fortunately, those people are only a few, shit
happens everywhere.
Tags - protest
1. Time series,
2. Distributions,
3. Tests and goodness-of-fit functions,
4. Markov regime switching (MRS) models,
5. GUI functions,
6. Demos,
7. Data files.
For instance:
1. ADVFN offer FREE streaming stocks and shares data form around the
world. SEE MORE
2. Historical FX Rates: http://oanda.com/convert/fxhistory
3. Historical Stock Prices: http://finance.yahoo.com/q/hp?s=yhoo
4. Recent LIBOR rates: BBA - British Bankers' Association - BBA LIBOR
5. Some Implied Volatilities: http://www.ivolatility.com
6. Delayed Commodities: http://www.liffe-commodities.com.
7. US Fundamentals: http://www.sec.gov
Tags - data
Should you just prefer to "set up a website" and do not concern whether
or not it gets any visitor or has any possibility to make you an income,
that's easy. There are a lot of free lunch services that will allow you
produce a personal website to share experiance or make friends online.
You can distribute this list as you want, the only wish from me is please
’do not change the sentences’ and leave the original links when you want
to post somewhere, thank you.
Many folks would like to own Web sites nowdays, however they concern
about the cost. Purchasing the real domain name is really cheap, around
10 US dolloars you can get a fancy dot com name, therefore it's not
actually a problem. What's crucial, although, is the hosting. it is
meaningless to have a domain name should you do not go forward and
make a site on it, begin appealing subscribers and customers, and do
something to earn revenue. Even if you are merely blogging, you may
not prefer to utilize the free services. If you are not blogging and you're
indeed marketing a product or service, you truly can not bear free
hosting. You'll have to own a Web site that allows more than what you
are able to do on free services, most probably. There are dozens of ways
to acquire that hosting, though, and the best way for most people is to
use the Web Hosting service that accompanies the host name. Numerous
corporations who sell domain names feature these hosting packages, and
they aren't really expensive. For instance, 4 Cheap Web Hosting is a
guide to the best rated affordable web hosting packages available online.
Take a look if you have plan to own a site in the near future.
Contents include:
1 Stationary Time Series 5
1.1 ARMA Simulation
1.1.1 Simulation: armaxfilter_simulate . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.2 ARMA Estimation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.2.1 Estimation: armaxfilter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.2.2 Residual Plotting: tsresidualplot . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
1.2.3 Characteristic Roots: armaroots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
1.2.4 Information Criteria: aicsbic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
1.3 ARMA Forecasting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
1.3.1 Forecasting: arma_forecaster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
1.4 Sample autocorrelation and partial autocorrelation . . . . . . . . . . . . . . . .
. . . . . . . 23
1.4.1 Sample Autocorrelations: sacf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
1.4.2 Sample Partial Autocorrelations: spacf . . . . . . . . . . . . . . . . . . . . . . . . . .
25
1.5 Theoretical autocorrelation and partial autocorrelation . . . . . . . . . . . . .
. . . . . . . . 27
1.5.1 ARMA Autocorrelations: acf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
1.5.2 ARMA Partial Autocorrelations: pacf . . . . . . . . . . . . . . . . . . . . . . . . . . .
29
1.6 Testing for serial correlation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
31
1.6.1 Ljung-BoxQ Statistic: ljungbox . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
1.6.2 LM Serial Correlation Test: lmtest1 . . . . . . . . . . . . . . . . . . . . . . . . . . . .
33
2 Nonstationary Time Series 37
2.1 Unit Root Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
2.1.1 Augmented Dickey-Fuller testing: augdf . . . . . . . . . . . . . . . . . . . . . . . .
. 37
2.1.2 Augmented Dickey-Fuller testing with automated lag selection:
augdfautolag . . . . 40
3 Vector Autoregressions 43
I also had a survey for quant salary in mainland, China, results are
shown below (basic salary + bonus, about 1~3 years work experience in
Chinese Yuan):
number percentage of voters
50K ~ 80K 11.4%
80K ~ 100K 7.89%
100K ~ 120K 5.26%
120K ~ 150K 22.81%
150K ~ 200K 7.02%
200K ~ 300K 7.89%
>300K 37.72%
http://videolectures.net/Top/Computer_Science/Machine_Learning/
http://videolectures.net/
Tags - video
A scatter plot of the return of S&P 500 index and that of its implied
volatility difference series is shown above, clearly the dependence is
stronger in left-up corner than right-down corner.
Interested reader shall refer to the following papers and Matlab codes for
detail:
Modelling Asymmetric Exchange Rate Dependence, 2006, International
Economic Review, 47(2), 527-556.
Paper (PDF), Abstract (HTML), Slides June01 (PDF), Code (MATLAB)
...
Since the project will only be available for public after May, currently we
can't test its efficiency and how magic it is. Can it return the value of
"Black Scholes call option price with strike 10, asset price 10, time to
maturity 1 year, interest rate 3%, and 25% annual volatility"? LOL, I am
too demanding.
Click to download
Tags - compound , option
In recent years, consumers have been promoted to Apply Credit Card for
daily purchases, including groceries, fast food meals, and even the
morning cup of coffee en route to office. All of these purchases, in
addition the interest and fees appended, have only ramped up a huge
pile of debt for the ordinary cardholder.
This is not much unlike the debt built up by companies, who now bear
their hand out, calling for for help. And the government appears very
amenable to offer that help, at the long-run expense of the American
taxpayer.
Quotation
The ISDA CDS Standard Model
The ISDA CDS Standard Model is a source code for CDS calculations
and can be downloaded freely through this website. The source code is
copyright of ISDA and available under an Open Source license.
Background
As the CDS market evolves to trade single name contracts with a fixed
coupon and upfront payment, it is critical for CDS investors to match the
upfront payment amounts and to be able to translate upfront quotations
to spread quotations and vice versa in a standardized manner.
Implementing the ISDA CDS Standard Model and using the agreed
standard input parameters will allow CDS market participants to tie out
calculations and thus improve consistency and reduce operational
differences downstream.
Besides the code for CDS, a Yield Curve Specifications PDF file about
how the yield curve is constructed and calculated is also available at the
webpage, enjoy!
http://www.cdsmodel.com/
Tags - cds , credit
Automatic Testing is made simple and quick through the use of unit
testing frameworks, the most popular amongst these is xUnit which has
implementations in most modern programming languages. For Matlab
we have a version of mlUnit available for your use. In python, pyUnit is
part of the standard library and is available as a standard package
unittest. For R there is RUnit.
Main Benefits:
downloading at http://www-stat.stanford.edu/~wavelab/
Wavelab_850/index_wavelab850.html
Tags - wavelet
Enjoy. http://tradingwithmatlab.blogspot.com/2008/06/estimate-
historical-volatility.html
Tags - volatility , stochastic
http://www.sci.usq.edu.au/staff/dunn/glmlab/glmlab.html
Tags - regression
This first year paper is based on Pesaran et al. (2000) who generalise the
cointegration tests
introduced by Johansen to include exogenous I(1) variables in a VECM
model. It reiterates
the proofs for their central test statistics and presents them in a less
dense format: Following
Pesaran et al. (2000), this paper focuses on the derivation of the
corresponding cointegrating rank
tests, by first introducing a VAR model, subsequently deriving the
likelihood for the cointegration
parameters and, finally, the test statistics and their asymptotic
distributions. The final section
introduces tests on whether the required exogeneity restrictions hold. In
addition, this paper is
concerned with implementing the mentioned test statistics in a Matlab
routine.
Download at:
http://www.quantcode.com/modules/mydownloads/
visitwad.php?cid=9&lid=508
The underlying risky asset (can be equity or fixed income instruments)
are
simulated via general innovation processes with specification of
stochastic
volatility.
Note:
http://www.weizhenstanford.com/blog
Tags - strategy
The Netlab toolbox is designed to provide the central tools necessary for
the simulation of theoretically well founded neural network algorithms
and related models for use in teaching, research and applications
development.
http://research.microsoft.com/en-us/um/people/minka/software/
fastfit/
Tags - mle
The library includes the operations *, +, -, *=, +=, -=, Kronecker product,
Schur product, concatenation, inverse, transpose, conversion between
types, submatrix, determinant, Cholesky decomposition, QR
triangularisation, singular value decomposition, eigenvalues of a
symmetric matrix, sorting, fast Fourier and trig. transforms, printing and
an interface with Numerical Recipes in C.
functions including:
# moment.third
# moment.fourth
# CoSkewness
# CoKurtosis
# BetaCoVariance
# BetaCoV (wrapper for BetaCoVariance)
# SystematicBeta (wrapper for BetaCoVariance)
# BetaCoSkewness
# BetaCoS (wrapper for BetaCoSkewness)
# SystematicSkewness (wrapper for BetaCoSkewness)
# BetaCoKurtosis
# BetaCoK (wrapper for BetaCoKurtosis)
# SystematicKurtosis (wrapper for BetaCoKurtosis)
# VaR
# VaR.Beyond
# VaR.column
# VaR.CornishFisher
# VaR.Marginal
# modifiedVaR (wrapper for VaR.CornishFisher)
http://braverock.com/brian/R/extra_moments.R
Tags - moment , portfolio
http://faculty.washington.edu/ezivot/econ483/portfolio.ssc
I have not tested the package, though, will update later. Here is
downloading link: http://cran.r-project.org/web/packages/splus2R/
index.html.
Tags - splus , r
http://www.mathworks.com/matlabcentral/fileexchange/16884
http://www.mathworks.com/matlabcentral/fileexchange/17204
Tags - kernel , density
http://www.hec.unil.ch/matlabcodes/option_pricing.html
Tags - heston
REFERENCES:
http://www.sfu.ca/~rgencay/lyap.html
Tags - neural-network
http://www.mngt.waikato.ac.nz/kurt/frontpage/modelmainpages/
InterestRateModels.htm
Tags - yield
Quotation
From the practitioners’ point of view, one of the most interesting
questions that tail studies can answer is what are the extreme
movements that can be expected in financial markets? Have we already
seen the largest ones or are we going to experience even larger
movements? Are there theoretical processes that can model the type of
fat tails which come out of our empirical analysis? Answers to such
questions are essential for sound risk management of financial
exposures. It turns out that we can answer these questions within the
framework of the extreme value theory. This paper provides a step-by-
step guideline for extreme value analysis in the MATLAB environment
with several examples.
http://leippold.googlepages.com/matlab
Tags - sobol , simulation
Interested ppl can refer to the PDF document and Matlab codes are at
appendix. http://www.bankofcanada.ca/en/res/wp/2002/
wp02-29.html
Tags - matlab , yield
http://www.csie.ntu.edu.tw/~lyuu/Capitals/capitals.htm
Tags - calculator , derivative
Tags - var , es , t
http://ww61.tiki.ne.jp/~kanzler/
index.htm#L.%20Kanzler:%20Software
Tags - econometrics
Papers:
http://cims.nyu.edu/~almgren/mysql/
Tags - matlab , sql
Download at http://cran.cnr.berkeley.edu/web/packages/fOptions/
index.html
Tags - r , option
Excel, C++ Add-in and Demo Spreadsheet with application manual and
on-line help are at http://www.financial-risk-manager.com/risks/
analytics/multivar/an_mv_t.html#svd
The Heston Model is one of the most widely used stochastic volatility
(SV) models today. Its attractiveness lies in the powerful duality of its
tractability and robustness relative to other SV models.
This project initially begun as one that addressed the calibration problem
of this model. Attempting to solve such a problem was an impossible
task due to the lack of exposure to such ‘advanced’ models.
http://www.finmath.cn/
http://www.rseek.org/
http://code.google.com/p/copula/
Tags - copula
Tags - integration
http://braverock.com/brian/R/PerformanceAnalytics/html/
PerformanceAnalytics-package.html
Tags - econometrics , performance , r
http://www.schonbucher.de/risk/index.html
spreadsheet http://www.schonbucher.de/risk/rating_case.xls
Tags - rating
http://www.r-cookbook.com/
The program first extracts the rows that do not contain any missing
values, and then calls Excel's LINEST to perform the estimation with the
cleaned data. The data have to be organized column-wise.
http://www.wwz.unibas.ch/ds/abt/wirtschaftstheorie/personen/
yvan/software/#c6714
Tags - regression
I will try to update new code link as possible as i can. thx for your
support.
An up and out call is a regular call option that ceases to exist if the asset
price reaches a barrier level, H, that is higher than the current asset price,
when H is less than or equal to K, the value of the up and out call is zero.
http://www.phineas.pwp.blueyonder.co.uk/TreeClass.htm
Tags - yield
Download at http://www.mathematik.uni-kl.de/~korn/korn2b.htm,
besides Vasicek short rate model, CIR, Dothan and Exponential Vasicek
are also included in one file.
Tags - vasicek
Two sample Matlab files to compare the performance of solving PDE via
implicit and explicit method. http://frontera.bu.edu/MathFn.html
The paper "Unified Asian Pricing", Risk, Vol. 15, No. 6, 113-116 and its
Mathematica nb file can be downloaded at
http://www.stat.columbia.edu/~vecer/.
Tags - asian , option
The basic idea of the NN algorithm is that the time series copies it's own
past behavior, and such fact can be used for forecasting purposes. On the
zip file there are two functions: one is the univariate version of NN
(nn.m) and the other is the multivariate approach, also called
simultaneous NN (snn.m).
Quotation
The nearest neighbor method is defined as a non-parametric class of
regression. Its main idea is that the series copies its own behavior along
the time. In other words, past pieces of information on the series have
symmetry with the last information available before the observation on
t+1. Such way of capturing the pattern on the times series behavior is the
main argument for the similarity between NN algorithm and the
graphical part of technical analysis, charting.
The way the NN works is very different than the popular ARIMA model.
The ARIMA modeling philosophy is to capture a statistical pattern
between the locations of the observations in time. For the NN, such
location is not important, since the objective of the
algorithm is to locate similar pieces of information, independently of
their location in time. Behind all the mathematical formality, the main
idea of the NN approach is to capture a nonlinear dynamic of self-
similarity on the series, which is similar to the fractal dynamic of a
chaotic time series.
http://www.mathworks.com/matlabcentral/fileexchange/
loadFile.do?objectId=9396&objectType=file
Tags - forecast
Fast Fourier transform (FFT) is applied for this purpose, the use of the
FFT is motivated by two reasons. On the one hand, the algorithm offers a
speed advantage. This effect is even boosted by the possibility of the
pricing algorithm to calculate prices for a whole range of strikes. On the
other hand, the cf of the log price is known and has a simple form for
many models considered in literature, while the density is often not
known in closed form.
Once this is done, the user can plot the option price, delta, gamma, vega
and variance vega in 3D and examine how they vary with time to
maturity, volatility, interest rates and carry.
It also allows you to perturb a 4th dimension also allowing you to create
an animation.
http://www.mathworks.com/matlabcentral/fileexchange/
loadFile.do?objectId=10428&objectType=FILE
Tags - greeks , option
I once introduced Moro inverse normal function for this purpose, here is
another power function named Peter J Acklam inverse normal
cumulative distribution, for my study and work i have tried both but
couldnot decide which one is better, here i quote the sentence from the
book "Monte carlo methos in finance" by Peter Jackel: Equally, for the
inverse cumulative normal function z = N'(p), there are several
numerical implementations providing different degrees of accuracy and
efficiency. A very fast and accurate approximation is the one given by
Boris Moro in [Mor95]. The most accurate whilst still highly efficient
implementation currently freely available, however, is probably the
algorithm by Peter Acklam. when allowing for an additional evaluation
of a machine-accurate cumulative normal distribution function,
Acklam’s procedure is able to produce the inverse cumulative normal
function to full machine accuracy by applying a second stage refinement
using Halley’s method.
Good, here is the page for Peter J Acklam inverse normal cumulative
distribution codes in several languages, http://home.online.no/
~pjacklam/notes/invnorm/index.html#The_algorithm, enjoy.
Tags - random , normal
The convertible bond calculator uses a binomial lattice with the stock
price as the only state variable to analyse convertible bonds with call and
put features. The software does not use the warrant valuation approach
which requires the volatility of equity (stocks plus warrants). Instead, it
ignores the dilution effect and uses stock price volatility which is more
readily available.
download at http://www.iimahd.ernet.in/~jrvarma/software/ecb.zip
online convertible bonds calculator http://www.iimahd.ernet.in/
~jrvarma/software/convertible.php, more are at
http://www.iimahd.ernet.in/~jrvarma/software.php.
wiki(Cliquet option)
Tags - cliquet , heston , option
http://zetamac.com/arithmetic/
This game helps me recall the exam I took for a quantitative trader
position several months ago, i failed
Tags - game
Asian options are options where the payoff depends on the average price
of the underlying asset during at least some part of the life of the option.
The payoff from an average price call is max(Save - K, 0) where Save is
the average value of the underlying asset calculated over a
predetermined averaging period. Average price options are less
expensive than regular options.
http://personal.strath.ac.uk/d.j.higham/ch22.m.
Tags - asian , option
Pricing of cms option and a cms floor using the generalized Black-
Scholes formula with a convexity adjustment Excel sample file:
http://www.finmath.net/spreadsheets/CMS%20Option.zip, at the
same page http://www.finmath.net/spreadsheets/ you can also find
pricing of swaption using the generalized Black-Scholes formula.
As we know from empirical research, one of the main problems with the
Black–Scholes model is that the data suggest that the log returns of
stocks/indices are not Normally distributed as in the Black–Scholes
model. The log returns of most financial assets do not follow a Normal
law. They are skewed and have an actual kurtosis higher than that of the
Normal distribution. Other more flexible distributions are needed.
The name itself tells you this package is for linear programming
problem, What is Linear Programming then? A Linear Program (LP) is a
problem that can be expressed as follows:
minimize cx
subject to Ax = b
x >= 0
Download at http://lpsolve.sourceforge.net/5.5/.
Tags - optimization
Using these zero-coupon bonds we can deduce forward and spot rates
for all time to maturities by making a couple of assumptions (including
linear interpolation). The term structure of spot rates is recovered from
the bond yields by solving for them recursively, this iterative process is
called the BootStrap Method.
Run the sample code to check the variance reduction effect if you wish
http://www.ma.ic.ac.uk/~becherer/Course07MS15/
antitheticexample.m.
Tags - variance-reduction
Sounds boring? I found this site when I searched "Kalman filter", click
the following link for codes in Quant economics of different
programming languages.
http://ideas.repec.org/s/dge/qmrbcd.html
Tags - economics
you can download the free c course code by leaving your email at
http://www.irina-goetsch.com/libor-market-model/app#order
wiki(LIBOR Market Model)
Tags - libor
http://www.global-derivatives.com/code/matlab/
EuropeanExchange.m
http://www.global-derivatives.com/
index.php?option=com_content&task=view&id=184
wiki(Foreign exchange option)
Tags - exchange , derivative , option
Click to download
Tags - brownian-bridge
The additional major benefit of PCA is that after you have obtained these
patterns in the data, and you compact the data, ie. by reducing the
number of dimensions, without much loss of information.
http://www.theponytail.net/CCFEA/
http://www.theponytail.net/CCFEA/lect04/lect04pc.m
wiki(principal component analysis)
Tags - pca
http://janroman.dhis.org/
http://janroman.dhis.org/finance/Excel/
NelsonSiegelYieldCurveModel.xls
wiki(Nelson-Siegel)
Tags - yield , nelson-siegel
here is the introductory page and downloading link, have fun and enjoy
new week.
http://www.cs.uiowa.edu/~sriram/Combinatorica/
Tags - mathematica
n = length(b); x = x0; j = 1;
for i = 1:n
x(i) = max(0,x(i)+omega*(b(i)-A(i,:)*x)/A(i,i));
end
A problem with this sample code is slow computation speed, Should you
are happy with C++, the following C++ code which can be called directly
in Matlab.
Click to download
wiki(Linear complementarity problem)
Tags - psor , american , option
http://www.global-derivatives.com/code/matlab/Lookback-
FloatingStrike.m
Tags - lookback , exotic , option
first: for a certain level of volatility, count all portfolios that equal this
volatility. amongst them all, choose the one with highest expected
return.
second: for a given expected return, count all portfolios having this
expected return. Choose the one which has the lowest volatility.
http://www.essex.ac.uk/ccfea/Teaching/Archive/200304/Quant/
3%20Portfolio%20Analysis/Efficient%20Portfolio.xls
wiki(Capital asset pricing model)
Tags - markowitz , optimization
http://www.fam.tuwien.ac.at/~mkeller/R-progs/copula.R
Tags - copula
Quotation
JQuantLib is a free, open-source, comprehensive framework for
quantitative finance, written in Java. It provides "quants" and Java
application developers several mathematical and statistical tools needed
for the valuation of financial instruments, among other features.
Below is the matlab file for Copula simulation and estimation, enjoy.
http://www.mathworks.com/matlabcentral/fileexchange/
loadFile.do?objectId=15449
wiki(Copula)
Tags - copula
Software documentation
For a fantabulous reference on derivative pricing, confer with Espen
Gaarder Haug (1998) Option Pricing Formulas, McGraw-Hill. The
routines were all deduced from the pseudocode there.
http://www.kmri.com/software/popp.html
Tags - perl , option
A matlab code for plot the GEV distribution and density function
http://www.essex.ac.uk/ccfea/Teaching/Archive/200405/CF901/
weeks3and4/plot_GEV_densities.txt
wiki(Generalized extreme value distribution)
Tags - gev , extreme
http://alex.strashny.org/a/Multivariate-normal-cumulative-
distribution-function-(cdf)-in-MATLAB.html
wiki(Multivariate normal distribution)
Tags - cdf
http://www.ulb.ac.be/cours/solvay/farber/exceltips.htm
http://www.ulb.ac.be/cours/solvay/farber/VUB/
08%20Lecture%202.xls
wiki(Equity linked note)
Tags - eln
http://www.math.ku.dk/~rolf/teaching/mfe04/MiscInfo.html#Code
Tags - simulation
http://www.rpi.edu/~mitchj/pack.html#abacus
wiki(Optimization)
Tags - optimization
http://pages.stern.nyu.edu/~adamodar/New_Home_Page/
spreadsh.htm#optincf
wiki(Real option)
Tags - real-option , option
http://www.barra.com/products/spreadsheets/stockselection.xls
wiki(Performance attribution)
Tags - performance
wiki(Vasicek model)
Tags - vasicek , cox ingersoll ross
http://pages.stern.nyu.edu/~adamodar/New_Home_Page/
spreadsh.htm#basicoption
Tags - warrant
http://www.math.uic.edu/~hanson/mcs507/cp4f04.html
wiki(Low-discrepancy sequence)
http://www.mathworks.com/matlabcentral/fileexchange/
loadFile.do?objectId=14234&objectType=file
Tags - normal , monte carlo
http://www.neumann.nl/~dimitri/pricing.html
wiki(barrier option)
Tags - barrier , calculator , option
http://fisher.utstat.toronto.edu/sjaimung/courses/2008-2009/sta2502/
main.htm
http://sourceforge.net/projects/ssmodels/
wiki(kalman filter)
Tags - filter
http://web.wits.ac.za/NR/rdonlyres/96ECC07E-
AE3C-4706-94F8-C1A53011AF38/0/searlecode.zip
wiki(Low-discrepancy sequence)
Tags - sobol , faure
http://www.montegodata.co.uk/Consult/Derivative/Derivatives.html
http://www.hec.unil.ch/MatlabCodes/
Tags - matlab
http://www.espenhaug.com/black_scholes.html
wiki(black scholes)
Tags - black scholes
http://theponytail.net/CCFEA/
wiki(Volatility smile)
Tags - volatility , smile , binomial
below you will find the some sources of the sources in C++ and Java.T
http://www.javaquant.net/downloads.html
wiki(Black Derman Toy)
Tags - bdt , monte carlo
http://www.fam.tuwien.ac.at/~mkeller/
Tags - download , data , option
http://clem.mscd.edu/~mayest/FIN4600/Files/famadcmp.xls
Tags - fama
http://www.vbnumericalmethods.com/finance/
wiki(Swaption)
Tags - swaption
http://www.econ.uiuc.edu/~roger/research/rq/rq.html
wiki(Quantile regression)
Tags - regression
wiki(heston model)
more at http://math.nyu.edu/~atm262/spring06/ircm/cdo/index.html
http://people.math.jussieu.fr/~tankov/florence/
wiki(Variance-gamma distribution)
Tags - copula , levy
http://www.andreassteiner.net/performanceanalysis/
?Downloads:VBA
wiki(EWMA)
Tags - volatility
http://www.vbnumericalmethods.com/finance/
wiki(Implied volatility)
Tags - black scholes , volatility
http://www.javaquant.net/downloads.html
wiki(LIBOR Market Model)
Tags - libor , bgm
http://www.javaquant.net/downloads.html
wiki(Barrier option)
Tags - barrier , option
http://www.vbnumericalmethods.com/finance/
wiki(Exotic option)
Tags - outperformance , option
http://www.vbnumericalmethods.com/finance/
wiki(Rainbow option)
Tags - rainbow , option
* Download toolbox
* What is a Kalman filter?
* Example of Kalman filtering and smoothing for tracking
* What about non-linear and non-Gaussian systems?
* Other software for Kalman filtering, etc.
* Recommended reading
more at http://www.cs.ubc.ca/~murphyk/Software/Kalman/
kalman.html
wiki(Kalman filter)
Tags - filter
http://www.math.uu.se/research/telecom/software/
Tags - simulation
http://www.yieldcurve.com/Mktsoftware/excelCB.htm
wiki(Convertible bond)
Tags - convertible bond
http://www.ee.columbia.edu/~marios/matlab/matlab_tricks.html
wiki(matlab)
Tags - matlab
http://www.quantcode.com/modules/mydownloads/
visit.php?cid=11&lid=54
Tags - monte carlo , option
http://www.yieldcurve.com/Mktsoftware/excelRN.htm
wiki(risk neutral)
Tags - default
http://www.yieldcurve.com/Mktsoftware/excelYC.htm
wiki(yield curve)
Tags - yield
http://en.literateprograms.org/Asian_Option_Pricing_(Matlab)
wiki(asian option)
Tags - asian , option
European option
American option
Asian option
Index future
Cash-or-nothing option
Asset-or-nothing option
Lookback option
Chooser option
Compound option
Exchange option
Power option
Click to download
Tags - derivative , matlab , gui
http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/
index.html
wiki(Mersenne Twister)
Tags - random
http://www.alglib.net/matrixops/general/svd.php
NIG_tiny_withDLL.zip
Normal Inverse Gauss option pricer (with Esscher transform
correction), Excel + DLL, and
a Maple worksheet with short explanations, cf Schoutens book "Levy
Proccess in Finance"
VG_Pricer_short(Maple).pdf
A 'brute' option pricer for the Variance Gamma model (Madan, Carr,
Chang 1998) in Maple
VG_small.zip
Variance Gamma model in Excel + DLL; it uses a gamma distribution
pdfGamma(a,x)
which accepts large numerical arguments
http://www.axelvogt.de/axalom/
* Forward start
* Lookback, fixed strike
* Lookback, floating strike
* Power
* Product
* Quanto
* Quotient
* Rainbow
* Range
* Spread
* StrikeReset
* TimeSwitch
* Vanilla
http://www.sitmo.com/live/OptionVanilla.html
Tags - calculator , option
http://www.mathworks.com/matlabcentral/fileexchange/82
wiki(Spread option)
Tags - spread , monte carlo , option
http://www.mysmu.edu/faculty/yujun/research.html
http://www.mysmu.edu/faculty/yujun/Research/
jackknifecir1foption_sim.m
http://www4.ncsu.edu/~pfackler/compecon/toolbox.html
Tags - matlab
http://www.mathtools.net/files/net/qmle.zip
wiki(maximum likelihood)
Tags - mle
Tags - garch
http://www.stanford.edu/~wfsharpe/mat/mlfn.htm
wiki(Covariance)
Tags - covariance
more at http://www.hoadley.net/options/calculators.htm
http://econ.duke.edu/~ap172/code.html
Tags - copula
In more detail, Terreneuve is our team name for the project in the Fall
2005 Computing in Finance course at NYU's Courant Institute Masters in
Math Finance. Working from this specification we hope to design a
useable C++ library for some important quantitative finance
applications.
Our target audience (aside from our prof ;-)) is students in quantitative
finance and those seeking a gentle introduction to financial computing.
Obviously, we also intend to use the project as a learning opportunity.
We refer those looking for a more comprehensive (and complex) library
to the quantlib project.
http://terreneuve.sourceforge.net/
more at http://www.cameronrookley.com/gtoml/archive.html
Tags - gauss
http://www.gsb.columbia.edu/faculty/pglasserman/Other/
grklibor.pdf
http://www.gsb.columbia.edu/faculty/pglasserman/Other/
greeks_code.zip
wiki(libor)
Tags - greeks , libor
http://www.math.nyu.edu/ms_students/lw429/calculator.htm
wiki(Heston model)
Tags - heston , volatility
http://www.kerryback.net/
Tags - derivative
http://pages.stern.nyu.edu/~adamodar/New_Home_Page/
spreadsh.htm
Tags - excel
http://faculty.haas.berkeley.edu/peliu/computing/
http://faculty.haas.berkeley.edu/peliu/computing/
Tags - matlab
Highlights:
* Pricing a portfolio of vanilla options using Black-Scholes, a Binomial
Tree and Monte Carlo simulation.
* Pricing exotic options using the implied trinomial tree (ITT) method
* Hedging using derivatives
* Pricing interest rate derivatives using the BDT model
http://www.mathworks.com/matlabcentral/fileexchange/
loadFile.do?objectId=14508
Tags - derivative , matlab
http://w3.uniroma1.it/passalac/buffer/GARCH.xls
wiki(GARCH)
Tags - garch
http://www.thomasho.com/mainpages/analysoln.asp
Tags - library
Tags - blog