Question: Write a investment function that receives the values of p, r, n, and computes a p(1 +r)^n for each year at the end of

Write a investment function that receives the values of p, r, n, and computes a p(1 +r)^n for each year at the end of the year 1 to 30. The investment function should return a list with the computed values. In [5]: # Write the function code here In [6]: # Write a program that calls the function and display the returned results. Question 4 Write a mystatistics function that computes the mean, variance, and standard deviation for a list of numbers according to the provided equations. The function should return the three statistics like return [mean, variance, standard deviation]. For comparison, use the built-in functions in the provided snippet. # of subjects Mean Variance Standard deviation N H= 0; 6 = N N . (x 1) N (x-) N
Step by Step Solution
3.39 Rating (140 Votes )
There are 3 Steps involved in it
def mystatisticsnumbers compute mean mean sumnumbers lennumbers compute va... View full answer
Get step-by-step solutions from verified subject matter experts
