Monday, July 23, 2012

Calculating Sharpe Ratio and Information Ratio in R

Sharpe Ratio and Information Ratio measure excess returns of an investment manger, fund or strategy in relation either to risk free interest rate or some benchmark (for example such as market index), in the context of their variability (which - partly - reflects their risk).

Fig. Example: some return vs. benchmark return

There is at least one R package already available - PerformanceAnalytics - which provides both Sharpe Ratio and Information Ratio, 

Hence I've written my own simple implementation of these functions. 


You can use these ratios together with drawdown calculations as a basic risk management tools.


30 comments:

markson said...

To learn whole propelled ideas you should learn Hadoop Training in Chennai, the dynamic and exceptionally experienced personnel will show you the strategies to look into information in an effective way.ExcelR Data Science Courses

Tanika Co Valda said...

Great Article
Data Mining Projects IEEE for CSE
Project Centers in Chennai

JavaScript Training in Chennai
JavaScript Training in Chennai

datasciencecourse said...

Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.

data science course

priyash said...

wonderful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. This article resolved my all queries.
Data Science Course

Data Science Institute In Banglore said...

I really enjoy simply reading all of your weblogs. Simply wanted to inform you that you have people like me who appreciate your work. Definitely a great post. Hats off to you! The information that you have provided is very helpful.
Data Science Certification in Bangalore

DataScience Datascience said...

I was very pleased to find this site.I wanted to thank you for this great read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post.
Data Science Course in Bangalore

DataScience Datascience said...

I don t have the time at the moment to fully read your site but I have bookmarked it and also add your RSS feeds. I will be back in a day or two. thanks for a great site.
Data Science Training in Bangalore

priyash said...

Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. This article inspired me to read more. keep it up.
Correlation vs Covariance
Simple linear regression

data science said...

I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon #Artificial Intelligence course in Malaysia | #Artificial Intelligence training in Malaysia | #Ai course | #Ai Training https://360digitmg.com/course/artificial-intelligence-ai-and-deep-learning

Data Science pune said...

Such a very useful article. Very interesting to read this article. I would like to thank you for the efforts you had made for writing this awesome article.
Data Science Course in Pune
Data Science Training in Pune

DataScience Datascience said...

Very nice job... Thanks for sharing this amazing and educative blog post!
Data Science Course in Bangalore

DataScience Datascience said...

This is my first time visit here. From the tons of comments on your articles.I guess I am not only one having all the enjoyment right here!
Data Science Training in Bangalore

Data Science Institute In Banglore said...

Really nice and interesting post. I was looking for this kind of information and enjoyed reading this one. Keep posting. Thanks for sharing.
Data Science Institute in Bangalore

Atheef said...

It has fully emerged to crown Singapore's southern shores and undoubtedly placed her on the global map of residential landmarks. I still scored the more points than I ever have in a season for GS. I think you would be hard pressed to find somebody with the same consistency I have had over the years so I am happy with that.
data science course in kompally

priyash said...

Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. This article inspired me to read more. keep it up.
Correlation vs Covariance
Simple linear regression
data science interview questions

360digiTMG said...

Really nice and interesting post. I was looking for this kind of information and enjoyed reading this one. Keep posting. Thanks for sharing.
best course

abid said...

Thank you for helping people get the information they need. Great stuff as usual. Keep up the great work!!!
360digitmg

Maneesha said...

I truly appreciate essentially perusing the entirety of your weblogs. Essentially needed to educate you that you have individuals like me who value your work. Unquestionably an incredible post. Caps off to you! The data that you have given is useful.
360DigiTMG data science course in hyderabad

DataScience Datascience said...

I'd love to thank you for the efforts you've made in composing this post. I hope the same best work out of you later on too. I wished to thank you with this particular sites! Thank you for sharing. Fantastic sites!
Data Science Course in Bangalore

DataScience Datascience said...

This is a great post. This post gives a truly quality information. I am certainly going to look into it. Really very helpful tips are supplied here. Thank you so much. Keep up the great works
Data Science Training in Bangalore

Tableau Course in Raipur - 360DigiTMG said...

Amazing post found to be very impressive while going through this post. Thanks for sharing and keep posting such an informative content.

360DigiTMG Ethical Hacking Course

ai course in raipur - 360DigiTMG said...

Extraordinary blog filled with an amazing content which no one has touched this kid of subject before. Thanking the blogger for all the terrific efforts put in to develop such an awesome content. Expecting you to deliver similar contents further too and keep sharing as always.

360DigiTMG PMP Certification Course

360digitmgas said...

Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. 360DigiTMG

360digitmgdelhi said...

This post is incredibly simple to examine and recognize without disregarding any nuances. Inconceivable work!
data science courses in delhi

priyanka said...

Amazing Article ! I would like to thank you for the efforts you had made for writing this awesome article. This article inspired me to read more. keep it up.
Simple Linear Regression
Correlation vs covariance
data science interview questions
KNN Algorithm
Logistic Regression explained

hrithiksai said...

Very nice blogs!!! i have to learning for lot of information for this sites…Sharing for wonderful information.Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing, data science online course

EXCELR said...

Wonderful article, very useful and well explanation. Your post is extremely incredible. I will refer this to my candidates...data science courses

prathyusha said...

I at last discovered extraordinary post here.I will get back here. I just added your blog to my bookmark locales. thanks.Quality presents is the pivotal on welcome the guests to visit the website page, that is the thing that this page is giving.data science training Hyderabad

360digitmg said...

Regular visits listed here are the easiest method to appreciate your energy, which is why why I am going to the website everyday, searching for new, interesting info. Many, thank you!
Digital Marketing Training Institutes in Hyderabad

Tableau Training in Hyderabad said...

Thank you for sharing the article. The data that you provided in the blog is informative and effective.

Tableau Training in Hyderabad