Create embedded formulae which generate statistical properties of the portfolio upon insertion of the weights. Observe the mean, the standard deviation, and the CV of the annual rate of return of the portfolio.   Walmart Historical Annual Stock Price Data             Year Average Stock Price Year Open Year High Year Low Year Close Annual % Change 2021 140.9952 146.5300 151.4500 127.5300 144.6900 0.37% 2020 129.6013 118.9400 152.7900 104.0500 144.1500 21.30% 2019 108.4054 93.3400 121.2800 92.8600 118.8400 27.58% 2018 92.3698 98.5900 109.5500 82.4000 93.1500 -5.67% 2017 78.9624 68.6600 99.6200 65.6600 98.7500 42.87% 2016 69.5471 61.4600 74.3000 60.8400 69.1200 12.76% 2015 72.4911 85.9000 90.4700 56.4200 61.3000 -28.62% 2014 77.3274 78.9100 87.5400 72.6600 85.8800 9.14% 2013 75.3205 69.2400 81.2100 68.3000 78.6900 15.33% 2012 67.2151 60.3300 77.1500 57.3600 68.2300 14.17% 2011 54.3535 54.5600 59.9900 48.4100 59.7600 10.81% 2010 53.0022 54.2300 55.9900 48.0000 53.9300 0.90% 2009 50.5517 57.1800 57.1800 46.4200 53.4500 -4.66% 2008 55.0489 46.9000 63.1700 45.7200 56.0600 17.95% 2007 46.9265 47.5500 51.2100 42.2700 47.5300 2.92% 2006 46.6282 46.2300 51.7500 43.0200 46.1800 -1.32% 2005 48.7378 53.3500 54.4900 42.4900 46.8000 -11.40% 2004 54.9097 52.3000 61.0500 51.3300 52.8200 -0.43% 2003 54.3115 51.6000 60.0800 46.7400 53.0500 5.03% 2002 55.3673 58.0500 63.7500 44.6000 50.5100 -12.23% 2001 51.9974 53.8800 58.4400 44.0000 57.5500 8.32%

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Question

Create embedded formulae which generate statistical properties of the portfolio upon insertion of the weights. Observe the mean, the standard deviation, and the CV of the annual rate of return of the portfolio.

 

Walmart Historical Annual Stock Price Data

 

 

 

 

 

 

Year

Average Stock Price

Year Open

Year High

Year Low

Year Close

Annual % Change

2021

140.9952

146.5300

151.4500

127.5300

144.6900

0.37%

2020

129.6013

118.9400

152.7900

104.0500

144.1500

21.30%

2019

108.4054

93.3400

121.2800

92.8600

118.8400

27.58%

2018

92.3698

98.5900

109.5500

82.4000

93.1500

-5.67%

2017

78.9624

68.6600

99.6200

65.6600

98.7500

42.87%

2016

69.5471

61.4600

74.3000

60.8400

69.1200

12.76%

2015

72.4911

85.9000

90.4700

56.4200

61.3000

-28.62%

2014

77.3274

78.9100

87.5400

72.6600

85.8800

9.14%

2013

75.3205

69.2400

81.2100

68.3000

78.6900

15.33%

2012

67.2151

60.3300

77.1500

57.3600

68.2300

14.17%

2011

54.3535

54.5600

59.9900

48.4100

59.7600

10.81%

2010

53.0022

54.2300

55.9900

48.0000

53.9300

0.90%

2009

50.5517

57.1800

57.1800

46.4200

53.4500

-4.66%

2008

55.0489

46.9000

63.1700

45.7200

56.0600

17.95%

2007

46.9265

47.5500

51.2100

42.2700

47.5300

2.92%

2006

46.6282

46.2300

51.7500

43.0200

46.1800

-1.32%

2005

48.7378

53.3500

54.4900

42.4900

46.8000

-11.40%

2004

54.9097

52.3000

61.0500

51.3300

52.8200

-0.43%

2003

54.3115

51.6000

60.0800

46.7400

53.0500

5.03%

2002

55.3673

58.0500

63.7500

44.6000

50.5100

-12.23%

2001

51.9974

53.8800

58.4400

44.0000

57.5500

8.32%

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman