FINANCIAL STATEMENT ANALYSIS¶
Scenario: You are a Data Scientist working for a consulting firm. One of your colleagues from the Auditing department has asked you to help them assess the financial statement of organisation X. You have been supplied with two vectors of data: monthly revenue and monthly expenses for the financial year in question. Your task is to calculate the following financial metrics
profit for each month
- profit after tax for each month (the tax rate is 30%)
- profit margin for each month - equals to profit after tax divided by revenue
- good months - where the profit after tax was greater than the mean for the year
- bad months - where the profit after tax was less than the mean for the year
- the best month - where the profit after tax was max for the year
- the worst month - where the profit after tax was min for the year
- All results need to be presented as vectors.
- Results for dollar values need to be calculated with $0.01 precision
but need to be presented in Units of $1,000 (i.e. 1k) with no decimal points.¶
Results for the profit margin ratio need to be presented in units of % with no¶
decimal points.
Note: Your colleague has warned you that it is okay for tax for any given month to be negative (in accounting terms, negative tax translates into a deferred tax asset).¶
In [2]:
mi
Out[2]:
In [3]:
me
Out[3]:
In [7]:
# proft for month in list
mp = list([]) # declarining empty list
for i in range (0, len(mi)):
mp.append(mi[i] - me[i])
mp
Out[7]:
In [9]:
mpat=list([])
for i in range(0,len(mp)):
mpat.append(mp[i]-mp[i]*0.3)
mpat
Out[9]:
In [31]:
# profut margin
mpm=list([])
for i in range(0,len(mpat)):
mpm.append((mpat[i]/mi[i] ) * 100)
mpm
Out[31]:
In [32]:
mpm = [round(i,2) for i in mpm]
mpm
Out[32]:
In [35]:
mean_mpat=sum(mpat)/len(mpat)
mean_mpat
Out[35]:
In [ ]:
#goodmonts
No comments:
Post a Comment