Ask Your Question
0

Possible? Mean-Variance Portfolio, Differential Calculus?

asked 2012-02-26 09:16:34 +0200

anonymous user

Anonymous

Hello there

As a project for college we would like to calculate the Mean-Variance Porfolio out of 10 - 20 shares (underlying data:daily,800 days). This means there is differential calculus involved for generating the Optimum graph.

Maths: Can Sage do the above? How long does it take compared to other software/languages?

Environment: We want the calculation Interface to be published at a website. Is it just like taking a linux server, install sage and than request with our UI language (php,..js) to sage and scrap the result?

Good i found you, already love you ;)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-02-26 15:42:07 +0200

Shashank gravatar image

Can you be more specific about what functions you are trying to use. Sage supports most of symbolic calculus necessary for what I do. As far as interface with a website is concerned, I have done it using cgi, but should be possible with php also. Have a look at this

http://ask.sagemath.org/question/1166...

I would not recommend using the eval command as it is a security problem. But, you can import sage in python as a module. So you can write a cgi script in python and import sage. This is something I was able to do in a very short time. If you spend more time I am sure you can do better.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-02-26 09:16:34 +0200

Seen: 448 times

Last updated: Feb 26 '12