
Python for Finance

print()
?pow()
a built-in function? How do we use it?Here PV is the present value, C is the cash flow of the next period, g is a growth rate, and R is the discount rate. If the first cash flow is $12.50, the constant growth rate is 2.5 percent, and the discount rate is 8.5 percent. What is the present value of this growing perpetuity?
Here is the daily variance and is
is the daily standard deviation (volatility). If the volatility (daily standard deviation) of a stock is 0.2, what is its 10-day volatility?
sub()
is from a Python module. Find out how many functions are contained in that module.Here is the portfolio mean return,
is the mean risk-free rate and σ is the risk of the portfolio. Again, at this moment, it is perfectly fine that a reader does not understand the economic meaning of this ratio since the Sharpe ratio will be discussed in more detail in Chapter 7,
Multifactor Models and Performance Measures.
Change the font size
Change margin width
Change background colour