Skip to content

Instantly share code, notes, and snippets.

@zachlim98
Created January 7, 2021 04:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zachlim98/503914c0c98e32f9d243a0000f292b53 to your computer and use it in GitHub Desktop.
Save zachlim98/503914c0c98e32f9d243a0000f292b53 to your computer and use it in GitHub Desktop.
startrev = dcf_proj.loc["revenue",year] #get the starting revenue
allFVs = [] #create a list to store FV values
for p in range(10000): #run the simulation 10000 times
#creating projections for a 5 year dcf model
Fiveyrev = []
Fiveyinc = []
Fiveyfcf = []
for i in range(5):
startrev = startrev*(1+np.random.normal(loc=rev_change_mean, scale=rev_change_stdd))
neti = startrev*(margin_change/100)
fcf = neti*(fcf_change/100)
Fiveyrev.append(startrev)
Fiveyinc.append(neti)
Fiveyfcf.append(fcf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment