Serving the Quantitative Finance Community

Search found 13 matches

by irvingy
July 2nd, 2010, 12:10 pm
Forum: Numerical Methods Forum
Topic: Haug Haug Lewis formula
Replies: 1
Views: 27164

Haug Haug Lewis formula

transform to standard normal density and truncate the interval to a finite range, e.g. [-6, 6]
by irvingy
July 24th, 2007, 11:01 pm
Forum: Student Forum
Topic: C++ program
Replies: 18
Views: 69321

C++ program

VC++ 6.0 doesn't have min and max in <algorithm>. You need to write your own.
by irvingy
February 23rd, 2007, 12:33 am
Forum: Student Forum
Topic: Long Gamma, Short Vega
Replies: 7
Views: 83261

Long Gamma, Short Vega

short calendar spread?
by irvingy
September 13th, 2006, 3:22 pm
Forum: Student Forum
Topic: How to prove "Euro Call options price is increasing in volatility"
Replies: 15
Views: 94536

How to prove "Euro Call options price is increasing in volatility"

<t>QuoteOriginally posted by: bluehonourSuppose you are asked this in an a job interview. Will you remember the formula for vega of Euro call? Will you just say its vega is non negative? How will you respond if the interviewer asks "prove that vega is nonnegative"? This is a real interview question,...
by irvingy
September 12th, 2006, 10:00 pm
Forum: Student Forum
Topic: How to prove "Euro Call options price is increasing in volatility"
Replies: 15
Views: 94536

How to prove "Euro Call options price is increasing in volatility"

<t>QuoteOriginally posted by: bluehonourHi Everyone,Title says my question. Suppose you have a european call option that we price using BS formula. How can we prove that its price is increasing in volatility (sigma)? I do know the intution behind it so please don't make intuitive arguments. I want t...
by irvingy
August 24th, 2006, 2:31 pm
Forum: Student Forum
Topic: Matlab numerical integration
Replies: 1
Views: 94423

Matlab numerical integration

<t>QuoteOriginally posted by: ScorpioSCan someone help me on how to perform a numerical integration with two integrals in Matlab using the quadl library? I know how to do it for one integration, but when the integrand involved another integration whose integrand involves the integrating variable of ...
by irvingy
July 11th, 2006, 4:38 am
Forum: Programming and Software Forum
Topic: Running total in matlab
Replies: 2
Views: 101236

Running total in matlab

<t>QuoteOriginally posted by: asdI have an array eg., x=[x1 ; x2 ; x3]I want to caculate running total arrayeg., y=[x1 ; x1+x2 ; x1+x2+x3]Can someone please suggest if there is some command or function to do this? (I am doing a loop now, and wondering if there is a better way)cumsum() is the functio...
by irvingy
April 26th, 2006, 2:13 am
Forum: Programming and Software Forum
Topic: Exel question
Replies: 7
Views: 109269

Exel question

<t>Mix len(), left(), right(). Maybe others have more elegant ways.QuoteOriginally posted by: brontosaurusI have a cell with a string of digits of unspecified length, say 12345.I'd like to create a cell for every digit in the string to be in on it's own. So if A1 = 12345 then I want A2 = 1 A3 = 2 et...
by irvingy
February 24th, 2006, 1:19 am
Forum: Programming and Software Forum
Topic: Returning a vector<vector<double>> in VC++
Replies: 27
Views: 123263

Returning a vector<vector<double>> in VC++

<t>QuoteOriginally posted by: noyghouWas curious about this vector<vector<double> > thing which can be used to implement variable size matrix. Tried it but a run-time error occurred on the following line ... vector<vector<double> > mtxM; mtxM.reserve(5); for (int i = 0; i < 5; i++) { mtxM.reserve(6)...
by irvingy
February 23rd, 2006, 5:43 am
Forum: Programming and Software Forum
Topic: Returning a vector<vector<double>> in VC++
Replies: 27
Views: 123263

Returning a vector<vector<double>> in VC++

<t>I would do this,void Get_Arrary(const string file_name, <vector<vector<double> >& MyArray) {//Open file_name and copy all the relevant data into myarray}QuoteOriginally posted by: hgeorgakoGreetings,My problem involves the reading of a comma seperated text file with ~25000 lines and 8 columns...
by irvingy
January 16th, 2006, 6:35 pm
Forum: Student Forum
Topic: Market Convention to convert Notional amount to calculate FX Option premium ??
Replies: 2
Views: 123146

Market Convention to convert Notional amount to calculate FX Option premium ??

1% USD means 1% of the face value. So the answer is b) 500 mio / 120 * 1% ( using the strike rate of the option to convert the notional amount).
by irvingy
January 1st, 2006, 1:43 am
Forum: Student Forum
Topic: Basic FX Question
Replies: 1
Views: 124982

Basic FX Question

It will depend on EUR/JPY.
by irvingy
September 10th, 2005, 3:57 pm
Forum: Programming and Software Forum
Topic: R vs. S+
Replies: 9
Views: 137724

R vs. S+

The S language is actually developed by Chambers at Bell lab.Also, S+ runs on windows as well as unix/linux.