Free Essay

New R Program

In:

Submitted By hidan
Words 663
Pages 3
R Tools for Portfolio Optimization
Guy Yollin
Quantitative Research Analyst Rotella Capital Management Bellevue, Washington

Backgrounder
Rotella Capital Management
Quantitative Research Analyst Systematic CTA hedge fund trading 80+ global futures and foreign exchange markets

Insightful Corporation
Director of Financial Engineering Developers of S-PLUS®, S+FinMetrics®, and S+NuOPT®

J.E. Moody, LLC
Financial Engineer Futures Trading, Risk Management, Business Development

OGI School of Engineering at Oregon Health & Science University
Adjunct Instructor Statistical Computing & Financial Time Series Analysis

Electro Scientific Industries, Inc
Director of Engineering, Vision Products Division Machine Vision and Pattern Recognition

Started Using R in 1999

R Tools for Portfolio Optimization

2

Introduction
DJIA: 12/02/2008 - 04/15/2009
100
GM C

80

IBM

annualized return (%)

JPM

60

INTC HD

DD

GE

PG

BAC

R-SIG-FINANCE QUESTION: stock price 90

40

MMM

20

KFT XOM PFE CVX JNJ VZ HPQ MCD KO UTX WMT T

CAT MRK AXP

BA

Can I do < fill in the blank > portfolio optimization in R?

MSFT DIS AA

0

IBM: 12/02/2008 - 04/15/2009
0 100 5 10 conditional value-at-risk (%) 15 20

95

80

85

Maximum Drawdown

Jan

Mar

ANSWER: drawdown (%)

IBM Underwater Graph
0 -5

P/L Distribution
-10 -15

Yes!

(98% confidence level)

0.12

0.14

Jan

Mar

0.10

VaR 0.08 Density

CVaR 0.06 0.00 -15 0.02 0.04

-10

-5 daily return

0

5

10

R Tools for Portfolio Optimization

3

Outline
Mean-Variance Portfolio Optimization quadratic programming tseries, quadprog

Conditional Value-at-Risk Optimization linear programming Rglpk_solve_LP package

General Nonlinear Optimization
Differential Evolution Algorithm DEoptim package
Omega Optimization Adding Constraints Maximum Drawdown Optimization R-Ratio Optimization

Wrap-Up

R Tools for Portfolio Optimization

4

Efficient Portfolio Solution

DJIA Returns: 02/04/2009 - 04/03/2009
0.10
BAC

Portfolio Weights

200

0.08
JPM

100

INTC HD WMT IBM T KO VZ MSFT MMM CAT AA DD

annualized return (%)

0.06

0

CVX MCD UTX PG JNJ DIS HPQ

GE AXP

0.04

PFE XOM BA MRK

-100

C KFT

0.02

GM

0.00 GM MMM HPQ JNJ KO PG MSFT

0

50

100 annualized volatility (%)

150

200

R Tools for Portfolio Optimization

INTC

5

WMT

MRK

MCD

XOM

IBM

JPM

CAT

T

KFT

CVX

AXP

BAC

UTX

DIS

GE

AA

BA

PFE

DD

HD

VZ

C

Mean-Variance Portfolio Optimization
Function
portfolio.optim {tseries}

Description computer mean-variance efficient portfolio

Usage portfolio.optim(x, pm = mean(x), riskless = FALSE, shorts = FALSE, rf = 0.0, reslow = NULL, reshigh = NULL, covmat = cov(x), ...)

Example
> > > >

averet = matrix(colMeans(r),nrow=1) rcov = cov(r) target.return = 15/250 port.sol = portfolio.optim(x = averet, pm = target.return, covmat = rcov, shorts = F, reslow = rep(0,30), reshigh = rep(0.1,30)) > w = cleanWeights(port.sol$pw,syms) > w[w!=0] HD IBM INTC JNJ KO MCD MSFT PFE PG T VZ WMT 0.05 0.10 0.04 0.10 0.10 0.10 0.07 0.04 0.10 0.10 0.10 0.10

1 - returns vector 2 - covariance matrix 3 - minimum return

R Tools for Portfolio Optimization

6

Efficient Frontier
DJIA Returns: 02/04/2009 - 04/03/2009

efficient frontier with shorts
200
JPM

BAC

100

INTC HD WMT DD IBM T KO VZ MSFT MMM CAT AA

annualized return (%)

0

CVX MCD UTX PG JNJ DIS HPQ

GE AXP

PFE XOM BA MRK

-100

C KFT

efficient frontier long only
0 50 100 annualized volatility (%) 150

GM

200

R Tools for Portfolio Optimization

7

Efficient Frontier Calculation effFrontier = function (averet, rcov, nports = 20, shorts=T, wmax=1) { mxret = max(abs(averet)) mnret = -mxret n.assets = ncol(averet) reshigh = rep(wmax,n.assets) if( shorts ) { reslow = rep(-wmax,n.assets) } else { reslow = rep(0,n.assets) wrapped in try to } min.rets = seq(mnret, mxret, len = nports) handle unfeasible vol = rep(NA, nports) optimizations ret = rep(NA, nports) for (k in 1:nports) { port.sol = NULL try(port.sol

Similar Documents

Free Essay

Swot

...Essential Oils and Plant Extracts Five-Year R&D Plan 2008 – 2013 RIRDC Shaping the future Essential Oils and Plant Extracts Five-Year R&D Plan 2008 to 2013 May 2008 RIRDC Publication No 08/053 © 2008 Rural Industries Research and Development Corporation. All rights reserved. ISBN 1 74151 642 0 ISSN 1440-6845 Essential Oils and Plant Extracts R&D Five-Year Plan 2008–2013 Publication No. 08/053 The information contained in this publication is intended for general use to assist public knowledge and discussion and to help improve the development of sustainable regions. You must not rely on any information contained in this publication without taking specialist advice relevant to your particular circumstances. While reasonable care has been taken in preparing this publication to ensure that information is true and correct, the Commonwealth of Australia gives no assurance as to the accuracy of any information in this publication. The Commonwealth of Australia, the Rural Industries Research and Development Corporation (RIRDC), the authors or contributors expressly disclaim, to the maximum extent permitted by law, all responsibility and liability to any person, arising directly or indirectly from any act or omission, or for any consequences of any such act or omission, made in reliance on the contents of this publication, whether or not caused by any negligence on the part of the Commonwealth of Australia, RIRDC, the authors or contributors. The Commonwealth of...

Words: 10572 - Pages: 43

Premium Essay

My Research

...Clothes 'R' Us Point-of-Sale Initiative: Managing IT Programs by Mark Jeffery, Joseph F. Norton, Derek Yung, Alex Gershbeyn Source: Kellogg School of Management 22 pages. Publication Date: Jan 01, 2006. Prod. #: KEL304-PDF-ENG The case concerns a real $25 million program consisting of nine concurrent projects to deliver and implement a custom-built in-store customer relationship management (CRM) system and a new point-of-sale system in 400 stores of a national retail chain. The name of the company has been disguised for confidentiality reasons. Once deployed, the new system should give Clothes R' Us a significant strategic advantage over competitors in the marketplace; it will increase in-store manager productivity, cut costs, and ultimately drive increased sales for the retail chain. The program is in crisis, however, because the product managers have just left to join a competitor. The explicit details of the program are given, including examples of best practice program governance and the real activity network diagram for the program. Detailed Excel spreadsheets are also provided with the actual earned value data for the program. Students analyze the spreadsheets and the data given in the case to diagnose the impact of the most recent risk event and past risk events that occurred in the program. Ultimately students must answer the essential executive questions: What is wrong with the program? How should it be fixed, and what is the impact in time and money to the program? In addition...

Words: 593 - Pages: 3

Premium Essay

Analysis of Memo

...recent meeting that the company establish a training program for junior executives. The new program would fund the costs to send 20 employees to the Aspen Leadership Institute of Colorado for an intensive three week leadership-development training at the cost of $5,000 per person. The CEO of the company has asked the VP of Human Resources, Anil Ravaswami (hereafter referred to as “Mr. R.”), to analyze the proposal and report back his findings. Mr. R has completed his research and analysis and presents his findings in a memorandum to the CEO of the organization (A. Ravaswami, personal communication, October 10 2014). The following is an analysis of Mr. R’s memorandum that has been organized based upon the strategies presented in the book Asking the Right Questions, by Neil Browne and Stuart M. Keeley (Asking the Right Questions, 2015). Browne and Keeley have established a framework through which one can analyze and evaluate issues, reasons, assumptions and conclusions through a series of thinking tools and strategies and the following is presented based upon that framework. What are the Issues and Conclusions? The issue at hand is what Browne and Keeley refer to as a prescriptive issue, one that seeks to determine whether or not the company should incur the costs to develop a new leadership training program. Prescriptive issues bring into question whether or not a contemplated action is _________________. Mr. R has been asked to make a recommendation as to whether...

Words: 3255 - Pages: 14

Premium Essay

What Is Bar?

...fisheries research and development (R&D) in the country. BAR is committed to consolidate, strengthen, and develop the agriculture and fisheries R&D system for the purpose of improving its effectiveness and efficiency by ensuring customer satisfaction and continuous improvement through work excellence, teamwork and networking, accountability and innovation. Mission To attain food security and reduce poverty through technology-based agriculture and fisheries sector Vision "A better life for Filipinos through excellence in agriculture and fisheries research and development"  Mandate Executive Order 116, under the 1986 Freedom Constitution, created the Bureau of Agricultural Research with the mandate:             "…to ensure that all agricultural research is coordinated and undertaken for maximum utility to agriculture. It shall tap farmers, farmer organizations, and research institutions, especially the State Colleges and Universities, in the conduct of research for the use of the Ministry and its clientele, particularly the farmers/fishermen and other rural workers."             Further expanded and strengthened the mandate of BAR by providing leadership in enhancing, consolidating and unifying the national and regional agriculture and fisheries research and development programs of the National Research and Development System in Agriculture and Fisheries (NaRDSAF).   Major R&D Programs 1. Community-Based Participatory Action Research Program (CPAR) 2. National Technology...

Words: 7358 - Pages: 30

Free Essay

Info Request on John Molson Sb

...Management Science & Systems 82 Prestonwood Lane School of Management, SUNY at Buffalo East Amherst, NY 14051 Buffalo, New York 14260 Ph: (716) 688-6360 Ph: (716) 645-3258 Fax: (716)645-6117 E-Mail: rramesh@acsu.buffalo.edu Web: http://mgt.buffalo.edu/faculty/academic/systems/faculty/rramesh Education Ph.D. Industrial Engineering (Operations Research) (1985) State University of New York at Buffalo (GPA: 4.0. Awarded Ph.D with Distinction) Advisors: Mark H. Karwan and Stanley Zionts M.Tech. Industrial Engineering (1977) Indian Institute of Technology, Madras B.Tech. Chemical Engineering (1975) Indian Institute of Technology, Madras Research Streams • • • • Economics of IT – MSP and Cloud Computing Markets Conceptual Modeling and Ontologies Database Systems and Distributed Computing Supply Chains & Decision Analysis Employment Professor Department of Management Science & Systems School of Management State University of New York at Buffalo (September 1998 - ) Associate Professor Department of Management Science & Systems State University of New York at Buffalo (September, 1990 – September 1998) Assistant Professor Department of Management Science & Systems State University of New York at Buffalo (September, 1984 - September, 1990) 1 Research and Teaching Assistant Doctoral Program in Operations Research Department of Industrial Engineering State University of New York at Buffalo (January, 1981 - September, 1984) Entrepreneur SYMBIOSIS Consulting Madras, India (September...

Words: 7611 - Pages: 31

Premium Essay

Overview of R&D Evaluation- Accounting

...[Overview of R&D Evaluation Methods] 4/27/2015 Strategic Cost Management 1 Background- Strategic Management in R&D • Traditionally R&D Division in any company as been a part of Company’s overhead. • The investment in R&D has been strategically planned to be an “X”% of the sales or the profits achieved by the company. • The financial Matrix for an R&D organization has been poorly defined. • With recent stress on innovation, R&D is back in focus. • A lot of cost cutting measures and Product differentiation methods are now being tracked through R&D divisions through out USA. 4/27/2015 2 Benefits of R&D evaluation programs • Generate additional important information for continuous product improvement. • Document knowledge base and prevent silo operation. • Document research model to prevent repetition of previous unsuccessful models. • Develop systematic cost effective model . • The focus of R&D evaluation program would be on non-financial strategic allignment. 4/27/2015 3 R&D Evaluation programs: NonFinancial benefits • Increase overall efficiency and quality of an research program • Align R&D focus with the corporate strategic goal. • Promote innovation • Co-relate past efforts with the future to reduce down time. 4/27/2015 4 R&D Evaluation programs: NonFinancial benefits • Increase overall efficiency and quality of an research program • Align R&D focus with the corporate strategic goal. • Promote innovation ...

Words: 1140 - Pages: 5

Premium Essay

Week 5

...9 chapter current controversies and issues Introduction The Clash of Values in Social Policies Welfare Euthanasia Government: How Much Support for the Needy? Target Populations: The Struggle for Support The AIDS Epidemic The Homeless Welfare Recipients Professionalism in the Human Services The Role of Human Services Workers Whom Do Human Services Workers Serve? A Basic Reading and Thinking Skill Ranking American Values References 324 Human Services in Contemporary America - © Cengage Learning c u r r e n t c o n t r ov e r s i e s a n d i s s u e s 325 INTRODUCTION You may have gathered by now that the human services field is quite complex. Complete agreement regarding philosophies, methods, goals, services, funding, or anything else just does not exist nor, from our point of view, should it. There are times when controversies and differences are stimulating, healthy, and valid and lead to creative solutions. At other times, they are repetitious, meaningless, and destructive. Too frequently they consume time, energy, and resources that might better be used providing needed services. To this end, we highly recommend that students become familiar with the books in the Opposing Viewpoints series, published by the Greenhaven Press, that deal with issues of concern to human services workers. The purpose of this chapter is to present a sampling of basic controversies and issues in the field of human services that have not yet been resolved and may never be resolved...

Words: 8154 - Pages: 33

Free Essay

Cognitive Behaviour

...Rehabilitation (R & R) program. Porporino’s conclusions are subsequently compared with other researcher’s opinions and research based empirical data. Methodology Porporino criticises several programs he reviewed that claimed to be cognitive. In particular, he disregards motivational programs that lack empirical evidence of reduction of recidivism, and those programs that criticise forms of thinking without providing reasoning. Likewise, he dismisses programs that criticise current forms of thinking without providing reasoning, or adapted to corrections without adequate training or strategies for implementation. He is also critical of holistic programs that claim to address life skills, stating that they lack the systematic targeting of key factors that maintain criminal attitudes. Although in 1991, he advocated for a living skills program based on the success of the cognitive skills program. Furthermore, he dismisses cognitive programming models based on stages of morality, because they lack empirical evidence and he maintains they are not cognitive (Porporino, 1995, p.p. 2, 3, 18). Why cognitive Porporino maintains it is important to change ways of thinking to reduce recidivism, because risk factors that indicate propensity to offend can influence and maintain attitudes for continued offending. Moreover, correctional systems can inadvertently entrench the necessary attitudes and beliefs for criminality. On this basis, he advocates for the use of cognitive programs, to provide...

Words: 2468 - Pages: 10

Premium Essay

No Title

...students. Recently there has been a decline in employee morale. Senior management thinks that a new employee incentive program may boost employee morale (University of Phoenix, 2012, para. 3). This paper will include the work breakdown structure, activities, the sequenced activity diagram, a human resources plan, and a communication plan. The communication methods identified in the communication plan will be evaluated by identifying the communication tools and techniques most effective for the audience, and an explanation of why the methods of communication identified are most effective. The objective to this project management planning process is to successfully implement an employee incentive program within the university to boost employee morale that has declined because of the changes in compensation structure. Although the university cannot control what laws and regulations are changed governing federal financial aid, the university must abide by the changes to keep their accreditation. The university can boost employee morale by creating a program that will encourage employees to work as hard as they did when they were receiving bonuses for performance. Work Breakdown Structure |Level 1 |Level 2 |Level 3 | |1 Employee Incentive Program |1.1...

Words: 4553 - Pages: 19

Premium Essay

Hr Case Study

...STAFFING MANAGEMENT INSTRUCTOR’S MANUAL Four Recruitment and Retention Case Scenarios By Marcia R. Gibson, Ed.D. Project team Author: SHRM Project contributors: External contributor: Editor: Design: Marcia R. Gibson, Ed.D. Nancy A. Woolever, SPHR Sharon H. Leonard Courtney J. Cornelius, copy editor Kellyn Lombardi, graphic designer © 2008 Society for Human Resource Management. Marcia R. Gibson, Ed.D. Note to Hr faculty and instructors: SHRM cases and modules are intended for use in HR classrooms at universities. Teaching notes are included with each. While our current intent is to make the materials available without charge, we reserve the right to impose charges should we deem it necessary to support the program. However, currently, these resources are available free of charge to all. Please duplicate only the number of copies needed, one for each student in the class. For more information, please contact: SHRM Academic Initiatives 1800 Duke Street, Alexandria, VA 22314, USA Phone: (800) 283-7476 Fax: (703) 535-6432 Web: www.shrm.org/hreducation 08-0873-IM Introduction These recruitment and retention case scenarios are designed to be presented sequentially, since each scenario builds upon the previous one. They are intended for undergraduate college students. LearNING oBjectIVeS Students will learn to:  Determine recruitment needs. Identify recruitment policies and guidelines. Determine a recruitment strategy. Develop a communication plan to implement...

Words: 6125 - Pages: 25

Premium Essay

Community Health

...Nursing Ashley Dalton Community Health Practice April 4, 2014 The community diagnosis done in this paper is for children affected by malnutrition in America. Malnutrition results from a diet which is lacking in nutrients and it affects children most because they are in great need of the right amount of nutrients in their growing years. Malnutrition is also associated with rich diet lacking in nutrients which is the case with many of the developed countries of the world. It is important to maintain health standards in world’s one of the most developed country like America. Malnutrition can result into a number of nutrition disorders which include abundance or deficiency of important nutrients required from food (Water H. R., Penny M. E., R. C., Narro R., Willis J., Caulfield L. E., & Black, 2008). The increased uptake of unhealthy food products is also one of the main reasons of malnutrition. Children aged less than 18 are the main victims of the food irregularities. The data collected in this paper includes the communities of America and according to statistics there are around 16 million children in America who live in food insecurity in recent times. The problem is rarely a concern for adults because they are more aware of their nutrition choices and adult body is developed and not requires a continued supply of nutrients which is the case with children. Children under the age of 5 years are at the greatest risk of developing malnutrition. There are food secure and...

Words: 1472 - Pages: 6

Premium Essay

Cost Accounting

...The Importance of Research and Development (R&D) for U.S. Competitiveness and a Clean Energy Future Michael Greenstone June 2011 CEEPR WP 2011-010 A Joint Center of the Department of Economics, MIT Energy Initiative and MIT Sloan School of Management. The Importance of Research and Development (R&D) for U.S. Competitiveness and a Clean Energy Future Michael Greenstone 3M Professor of Economics, MIT Director, The Hamilton Project Senior Fellow, The Brookings Institution Thank you Chair Maloney, Ranking Member Brownback and members of the Committee for inviting me to testify today. I believe it is critically important that we give greater priority to new and better research and development (R&D) investments, to help ensure our country’s future competitiveness and to pave the wave for clean energy innovation. I am grateful for the opportunity to speak today about two interrelated challenges that our country faces. The first is the stagnation in economic opportunity for many families that dates back at least three decades. The second is the economic, national security, and environmental risks posed by our continued reliance on fossil fuels. The key purpose of my testimony is to discuss how R&D can enable us to begin confronting these dual challenges by creating new jobs for American workers, and fundamentally altering the way we produce and consume energy. I. CHALLENGE 1: UNITED STATES COMPETITIVENESS Even before the Great Recession’s arrival, there were legitimate concerns about...

Words: 4183 - Pages: 17

Free Essay

Words

...STEM Scholars Program Conditions – 2016-2017 STEM Scholars A program funded by the National Science Foundation that provides financial support (covering tuition, fees and cost of living) as well as academic support to selected students who meet the following requirements: 1. The student must be planning on transferring to a four-year school and majoring in STEM. STEM refers to, “science, technology, engineering, and mathematics that includes biological sciences (except medicine and other clinical fields); physical sciences (including physics, chemistry, astronomy, and materials science); mathematical sciences; computer and information sciences; geosciences; engineering; and technology areas associated with the preceding disciplines (for example, biotechnology, chemical technology, engineering technology, information technology, etc.),” according to NSF’s S-STEM solicitation. 2. The student must file a Free Application for Federal Student Aid (FAFSA) listing Southwestern Illinois College, (School code:001636) as a choice of school in the college release section. The student must be eligible for federal aid. 3. All recipients of this scholarship must be a resident of SWIC District 522 or East St. Louis at the time of application and during attendance at SWIC. 4. All recipients of this scholarship must be U. S. citizens, nationals (as defined in section 101(a) of the Immigration and Nationality Act), permanent resident aliens, or aliens admitted as refugees (as defined...

Words: 1543 - Pages: 7

Premium Essay

Eikon Device Inc.: Creating an International Strategy

...has spread to oversea, like Europe, Japan, Australia and South Africa. As their rapid growing market shares, the company needs to find a solution to expand the market and increase sales. There are two alternatives for considering which are establishment of a new distributional facility in other country and continuing products diversification in the North America market. Because of the restricted scale of company, ED can just undertake one alternative at the same time. The company has to decide if they should build facility oversea to become a multinational company or further expand new products line in the North America. Internal and External Analysis: Eikon Device Inc was established in 1994. Currently, there are two founders in the board of director. Dean Byrnes is the president and Monika Stengele occupies the VP marketing. Another founder, Bill Baker who is a tattoo artist suggested that tattoo industry was shifting into the mainstream. His perspective of tattoo industry has led the rapid development of the company later. The management performance of ED before 2013 is impressive though several successful events like the R&D program and opened new market on medical supply. The R&D program had come out with some new designs on the tattoo equipments...

Words: 2720 - Pages: 11

Premium Essay

Raleigh and Rosse

...hired as CEO and as one of the first officer in R&R that is not family related. R&R currently have a lawsuit due to its performance management system, the Sales per Hour (SPH). Case Problem: What can Watkins do to the current performance management system as part of the corporate culture, in order to prevent another lawsuit and recover from the current economic downturn? Facts & Considerations: • R&R Ownership Culture The Ownership Culture is the core culture and success of R&R to its famed customer service where the employees especially the sales person are given accountability to its customers. • The Sales per Hour (SPH) Program The SPH is the main driving force of the Ownership Culture where incentive programs are part of its reward system. Alternative Courses of Actions: Alternative 1: Status Quo or Continue with the Current HRM Process Watkins will continue with its current process, culture and performance management system. Pros: R&R will maintain its harmonious operations and will recover once the recession is over. Cons: The current system may once again produce lawsuits towards the company Elicited behavior might impact the company negatively amongst its employees Alternative 2: Improve the SPH program as per state laws Watkins will improve the current SPH program as per minimum requirement of the state law. Pros: Watkins will prevent future lawsuits related to the SPH program The overall behavior will shift to a healthy...

Words: 551 - Pages: 3