Some Uses of the Freeware, R, for Studying Financial Phenomena

Slides:



Advertisements
Similar presentations
Credit Risk. Credit risk Risk of financial loss owing to counterparty failure to perform its contractual obligations. For financial institutions credit.
Advertisements

Mean-variance portfolio theory
Everyday Benefits of Understanding Variability Larry Weldon Statistics and Actuarial Science Simon Fraser University Canada.
Presenting DFA Results to Decision Makers Spring 2008 Midwest Actuarial Forum.
© The McGraw-Hill Companies, Inc., 2008 McGraw-Hill/Irwin Chapter 8 Stocks, Stock Markets, and Market Efficiency.
Uncertainty and Consumer Behavior
CHAPTER 5 Risk and Rates of Return
6 - 1 Copyright © 2001 by Harcourt, Inc.All rights reserved. CHAPTER 6 Risk and Rates of Return Stand-alone risk Portfolio risk Risk & return: CAPM/SML.
A Brief History of Risk and Return
CHAPTER 8 Risk and Rates of Return
Portfolio Risk and Performance Analysis Essentials of Corporate Finance Chapter 11 Materials Created by Glenn Snyder – San Francisco State University.
Frank Mannino1 Richard Heiberger2 Valerii Fedorov1
Risk and return (chapter 8)
 Introduction (Scary details)  Part I: Introduction to Stock Market Challenge (Brett) 4:30 to 5:15  Part II: What is Financial Literacy (Bill) 5:15.
Financial Management Lecture No. 27
Unit 6 Insurance: Protecting What You Have Part IV Life Insurance Resources: NEFE High School Financial Planning Program
5-1 CHAPTER 8 Risk and Rates of Return Outline Stand-alone return and risk Return Expected return Stand-alone risk Portfolio return and risk Portfolio.
Copyright © 2003 Pearson Education, Inc. Slide 5-1 Chapter 5 Risk and Return.
QA in Finance/ Ch 3 Probability in Finance Probability.
Salaar - Finance Capital Markets Spring Semester 2010 Lahore School of Economics Salaar farooq – Assistant Professor.
Risk and Return: The Basics  Stand-alone risk  Portfolio risk  Risk and return: CAPM/SML.
UNIT 4: SAVING AND INVESTING 1. Discuss how saving contributes to financial well- being 2. Explain how investing builds wealth and helps meet financial.
TOPIC THREE Chapter 4: Understanding Risk and Return By Diana Beal and Michelle Goyen.
Chapter 06 Risk and Return. Value = FCF 1 FCF 2 FCF ∞ (1 + WACC) 1 (1 + WACC) ∞ (1 + WACC) 2 Free cash flow (FCF) Market interest rates Firm’s business.
Chapter 10 Capital Markets and the Pricing of Risk.
FIN437 Vicentiu Covrig 1 Portfolio management Optimum asset allocation Optimum asset allocation (see chapter 7 Bodie, Kane and Marcus)
Stephen G. CECCHETTI Kermit L. SCHOENHOLTZ Understanding Risk Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin.
TEACHING STATISTICS CONCEPTS THROUGH STOCK MARKET CONTEXTS Larry Weldon Simon Fraser University.
The stock market, rational expectations, efficient markets, and random walks The Economics of Money, Banking, and Financial Markets Mishkin, 7th ed. Chapter.
Some Uses of the Freeware, R, for Studying Financial Phenomena K.L. (Larry) Weldon Simon Fraser University R Development Core Team (2008). R: A language.
WHAT EXACTLY IS A STOCK? A stock is a share in the ownership of a company. Often called shares or equities What exactly does it mean when you own a little.
Chapter Outline 9.1Principals of Business Valuation Valuation Formula Components of the Opportunity Cost of Capital Compensation for Risk 9.2Risk Management.
1 Estimating Return and Risk Chapter 7 Jones, Investments: Analysis and Management.
1 THE FUTURE: RISK AND RETURN. 2 RISK AND RETURN If the future is known with certainty, all investors will hold assets offering the highest rate of return.
Managerial Finance Ronald F. Singer FINA 6335 Review Lecture 10.
Investments Lecture 4 Risk and Return. Introduction to investments §Investing l Definition of an investment: The current commitment of dollars for a period.
CHAPTER 6 Risk and Rates of Return Stand-alone risk Portfolio risk Risk & return: CAPM/SML.
Risk and Rates of Return Stand-Alone Risk Portfolio Risk Risk and Return: CAPM Chapter
6 - 1 Copyright © 2001 by Harcourt, Inc.All rights reserved. CHAPTER 6 Risk and Rates of Return Measuring Investment Risk Computing Portfolio Risk Models.
FIN437 Vicentiu Covrig 1 Portfolio management Optimum asset allocation Optimum asset allocation (see chapter 8 RN)
Probability Distributions ( 확률분포 ) Chapter 5. 2 모든 가능한 ( 확률 ) 변수의 값에 대해 확률을 할당하는 체계 X 가 1, 2, …, 6 의 값을 가진다면 이 6 개 변수 값에 확률을 할당하는 함수 Definition.
HCS 440 AID Experience Tradition /hcs440aid.com FOR MORE CLASSES VISIT
Choice and Evaluation of Investment
Investment Models Securities and Investments.
Kelly McManus, FSA John Hancock Financial Services
Chapter 11 Risk ad Return in Capital markets.
1 The roles of actuaries & general operating environment
CHAPTER 8 Risk and Rates of Return
Portfolio Risk Management : A Primer
Return, Risk, and the SML RWJ-Chapter 13.
Review Fundamental analysis is about determining the value of an asset. The value of an asset is a function of its future dividends or cash flows. Dividends,
QUANTITATIVE ANALYSIS
Risk and Return: The Basics
Teaching with Instructional Software
Lecture Eight Portfolio Management Stand-alone risk Portfolio risk
Types of Life Insurance
Income Protection Restoration Plan
The Basic Tools of Finance
Additional notes on random variables
Additional notes on random variables
Chapter 4 Risk and Return-Part 1.
Returns – Nominal vs. Real
Risk and Return Lessons from Market History
The Basic Tools of Finance
Everyday Benefits of Understanding Variability
Life Insurance Personal Finance.
Long Term Care Protection Strategies
Chapter 4 Risk and Return-Part 1.
Presentation transcript:

Some Uses of the Freeware, R, for Studying Financial Phenomena K.L. (Larry) Weldon Simon Fraser University Greetings from Sunny Tsawwassen, 6700 km west of here (as the crow flies). The only other place I would choose to live other than Halifax! >30 years ago …. I am here to sell the software R – pity that it is free – I could make a fortune! R Development Core Team (2008). R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. ISBN 3-900051-07-0, URL http://www.R-project.org.

“Financial Applications” Equities & Bonds in Long Term Risk Assessing Mutual Fund Performance Robustness of Large Companies Management of a Hospital System I am not expert in finance Neither is anyone else! (viz. – current markets) my background is in probability and stats my experience is as a “data analyst” I was led to explore nonparametric approaches – including simulation & graphics

Counterfactual Inference Approach Observe complex real-world phenomenon Use parametric models for “noise” Simulate complex model, graph outcomes Calibrate model with global outcome data Use model to predict unobserved behavior

I. Equities & Bonds in Long Term Risk Portfolio Variability ≠ Risk (=Prob’y of Loss) Canada: 50 years experience: Bonds ROR is 7% Equities ROR is 10%, Abs. daily change mean .6% sd .67% Prob (positive daily change) = .53  suggests random walk How long ‘til Equity Advantage Realized? Go to R: tse() (and tse.run())

Go to R: tse() (and tse.run())

100, 25-years experiences

Observations from “tse” programs long term ROR for equities exceeds ROR for bonds 80% of time. when bonds better, not much better typical shocks are not large enough to affect long term trends. long term “risk” is inverse to short term variability Q: What is “long term”

Waiting for Equities …

Technical Analysis Illusions Apparent trends may be useless for prediction Go to R: rwalk()

II. Assessing Mutual Fund Performance Asymmetric random walk: P(+.3)=p, P(-.3)=1-p models % daily changes p is selected from a distribution like

Effect of p in this range .54-.56

Simulation of Fund Managers p=.54 models a poor fund manager p=.56 models a good fund manager We simulate 100 managers 5-year experience Variety of p values. Pick the “best” (top 15% in ROR) managers Follow them for 5 more years How do we do?

R program is fund.walk.run()

Summary of result Managers of various qualities were simulated for 5 years to observe RORs The managers that appeared to do best were selected (top 15%) These same selected managers were followed for 5 more years, assuming same “quality” We compare the select group with the riff-raff: not much better! Conclusion: past performance has little useful quality info.

The diversification role of funds If Risk=P(Loss), and If P(loss) of 50% or so in one year is considered “risky” How risky is a portfolio of “risky” investments? E.G. One year returns to a $1 investment

Hypothetical Portfolio 25 such companies have one-year returns that are independent. portfolio of the 25 “risky” companies what are typical one-year portfolio returns? goto R: risky(m=25) Phenomenon survives lack of independence

III. Robustness of Large Companies Insurance Scenario Casualty Insurance Assume: Cost of Claim = $6000 Poisson Stream of Claims p = .2/year Premium – start at $1460 per year Expected gross profit = $260 actual variability depends on no. of policies go to R program insce()

Small Company Can Lose

Big Company Pressures Small One Suppose Premium Reduced to $1350 100 policies Chance of Loss = 25% 1000 policies Chance of Loss = 2% 100 policies 1000 policies

Summary Big insurance companies are less likely to have a loss than small insurance companies Big Insurance companies can drive smaller ones into bankruptcy by reducing premiums. (not news, but the specifics are useful)

IV. Management of a Hospital System Idea: Simulate “health status” for an entire lifetime (a life process) Define status for hospital admission and discharge, and death Calibrate the life process with public health data Use model to study alternative mgt. policies

Typical Life: Health Status History ---Admission ---Discharge ---Death Day Number make.life(plt.final=T)

Hospital Cure Process Fig 12 Distribution of Daily changes in Health Status while in the Hospital. Mean is about +0.02, and SD is about 0.2.

Outcomes from Pop’n of 10,000

Age at Hospitalization

Number of Hospitalizations

Calibration OK? All resulting from random walk! Hospital admission rate: .3/1000 Length of stay: median 10 days Age in hospital: mostly >70, some young Age at death: median 80 yrs Number of lifetime hospitalizations: mean 6 All resulting from random walk!

Process Use Theory to Construct Model Use Outcome Data to Calibrate Model Use Model to Run Counter-Factual Scenarios such as ….

Ways to use the simulation Suppose current hosp beds available = .3/1000 How often will capacity be breached? Expand beds to .35/1000 Same Question … If avg. length-of-stay decreased by 10% Impact on bed occupancy? If admission rules liberalized (admission line ) Impact on bed requirements?

Summary R capable of producing simulation programs of practical relevance to finance and mgt. Programs can be run by anyone with internet access Software is free and has international support www.r-project.org/ Info re these particular programs weldon@sfu.ca and www.stat.sfu.ca/~weldon