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.


47 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 Specialist 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 Specialist 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 Specialist said...

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

DataScience Specialist 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 Specialist 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 Specialist 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

Pallavi reddy said...

i am glad to discover this page : i have to thank you for the time i spent on this especially great reading !! i really liked each part and also bookmarked you for new information on your site.
best data science courses in bangalore

data scientist course said...

A good blog always comes-up with new and exciting information and while reading I have feel that this blog is really have all those quality that qualify a blog to be a one.
data scientist course in hyderabad

Data Science Course in Bhilai - 360DigiTMG said...

Really wonderful blog completely enjoyed reading and learning to gain the vast knowledge. Eventually, this blog helps in developing certain skills which in turn helpful in implementing those skills. Thanking the blogger for delivering such a beautiful content and keep posting the contents in upcoming days.

data science course in bangalore with placement

princika said...

I want to leave a little comment to support and wish you the best of luck.we wish you the best of luck in all your blogging enedevors.
data science in bangalore

Data Science Course in Bhilai - 360DigiTMG said...

Honestly speaking this blog is absolutely amazing in learning the subject that is building up the knowledge of every individual and enlarging to develop the skills which can be applied in to practical one. Finally, thanking the blogger to launch more further too.

data science course in bangalore with placement

rstrainings said...

I am really happy to say it’s an interesting post to read . I learn new information from your article , you are doing a great job . Keep it up

Devops Training in Hyderabad

Hadoop Training in Hyderabad

Python Training in Hyderabad

Tableau Training in Hyderabad

Selenium Training in Hyderabad

Maneesha said...

I wanted to thank you for this great read!! I definitely enjoy every little bit of it. I have you bookmarked to check out new stuff you post.
data scientist course in hyderabad

data scientist course said...

Wonderful blog post. This is absolute magic from you! I have never seen a more wonderful post than this one. You've really made my day today with this. I hope you keep this up!
data scientist training and placement in hyderabad

data scientist course said...

Good to be here in your article or post, whatever, I think I should also work hard for my own website like I see some good and updated working in your site.
data scientist course in hyderabad

Mallela said...

Thanks for posting the best information and the blog is very important.digital marketing institute in hyderabad

Priya Rathod said...

Thank you for taking the time to publish this information very useful!
Python Training in Hyderabad
Python Course in Hyderabad

Priya Rathod said...

I am impressed by the information that you have on this blog. It shows how well you understand this subject.
Data Science Training in Hyderabad
Data Science Course in Hyderabad

Mallela said...

Thanks for posting the best information and the blog is very important.artificial intelligence course in hyderabad

Mallela said...

Thanks for posting the best information and the blog is very important.data science institutes in hyderabad

anonymous said...

I want to leave a little comment to support and wish you the best of luck.we wish you the best of luck in all your blogging enedevors.
data science course

Data Science Course in Bhilai - 360DigiTMG said...

I was actually browsing the internet for certain information, accidentally came across your blog found it to be very impressive. I am elated to go with the information you have provided on this blog, eventually, it helps the readers whoever goes through this blog. Hoping you continue the spirit to inspire the readers and amaze them with your fabulous content.

Data Science Course in Faridabad

python course in delhi said...

Extremely overall quite fascinating post. I was searching for this sort of data and delighted in perusing this one. Continue posting. A debt of gratitude is in order for sharing. python course in delhi