Compute simple total returns and dividend yields
Suppose Amazon paid a $0.10 per share cash dividend at the end of October. Compute the monthly simple total return on Amazon and the monthly dividend yield.
This exercise is part of the course
Intro to Computational Finance with R
Exercise instructions
- Assign to
DA
the cash dividend per share. - Compute the monthly simple total return and assign it to
RA_total
. - Compute the monthly dividend yield and assign it to
DY
.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# The prices for Amazon (PA) are still in your workspace
# Cash dividend per share
DA <-
# Simple total return
RA_total <-
# Dividend yield
DY <-