Write a investment function that receives the values of p, r, n, and computes a p(1...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
def mystatisticsnumbers compute mean mean sumnumbers lennumbers compute va... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Consider the following graph: A B C D What will be the page ranks of nodes A, B, C, and D after iteration 1 if we execute the page rank algorithm without teleportation? PageRank (A) = PageRank(B) =...
-
Telstar uses job order costing. The T-accounts below summarize its production activity for the year. Raw Materials Inventory Debit Credit 45,500 24,750 8,500 Factory Wages Payable Debit 126,500...
-
Michelle operates a food truck. Indicate the amount (if any) that she can deduct as an ordinary and necessary business deduction in each of the following situations. a. Michelle moves her food truck...
-
The following information is computed from Fast Food Chains annual report for 2006. 2006 2005 Current assets $ 2,731,020 $ 2,364,916 Property and equipment, net 10,960,286 8,516,833 Intangible...
-
Determine the x coordinate of the centroid of the volume shown. (60 mm 240 im -300 mm
-
A textile development project needs a specialized resource to work for 900 hours. The company has decided to outsource these hours. Because of internal policies, all potential service providers must...
-
Do you think it is possible to have win-win negotiations? Why or why not?
-
Calculating Profitability, index what is the profitability index for the following set of cash flows if the relevant discount rate is 10, percent what if the discount rate is 15 percent, if it is 22...
-
On January 1, 2021, Entity A Company acquired all the assets and assumed all the liabilities of Entity B Company and merged Entity B into Entity A. In exchange for the net assets of Entity B, Entity...
-
In a survey, adults were asked to answer yes or no to the question Do you regularly watch the evening TV news? Some of the results from the survey are detailed in the Venn diagram opposite. One adult...
-
2. Intercompany equipment sale (20 points) On Jan 2, 2020, a subsidiary sells to its parent equipment that had cost $40,000. The selling price was $36,000 and accumulated depreciation on that date...
-
Which of the following is correct, when ibra is recorded in the accounts? a. It shall be debited to the Murabaha Financing account. b. It shall be treated as a liability. c. It shall be taken out of...
-
The following items are included in the financial statement of Ducab for the year ended December 31, 2019. Prepare an income statement for the year ended December 31, 2019. Cost of goods sold...
-
The Quranic view of life divides mans functions into: I. Khilafah II. Hablumminannas III. Hablumminallah IV. Tawhid a. I, II, and III b. I and II c. II and III d. I, III, and IV
-
Mr Alex Lim, your neighbor who works in a conventional bank, wants to know what is meant by asset-backed and asset-based sukuk. According to him, a well-known Sharia scholar has always maintained...
-
From the following details you are to draft a statement of cash flows for D. Duncan for the year ending 31 December 2011, using the IAS 7 layout. Gross profit Add Discounts received Profit on sale of...
-
Raj is creating a portfolio of passive and active investments. His asset allocation is moderate growth with 70% invested in a global equity index fund. He has also invested 20% in an investment grade...
-
Interview managers at three companies in your area about their use of ERP. How have their experiences been similar? What accounts for the similarities and differences?
-
During 2012, Palo Fiero purchases the following property for use in his manufacturing business: Palo uses the accelerated depreciation method under MACRS, if available, and does not make the election...
-
For each of the following situations, indicate whether the taxpayer(s) is (are) required to file a tax return for 2012. Explain your answer. a. Helen is a single taxpayer with interest income in 2012...
-
Steve Jackson (age 51) is a single taxpayer living at 3215 Pacific Dr., Del Mar, CA 92014. His Social Security number is 465-88-9415. In 2012, Steve's earnings and income tax withholding as the...
-
The treatment of outflows on account of dividend and interest is highly debatable as to their activity classification. Give a serious thought to the issue and express your opinion about the best...
-
Consider the same setting as Problem 18, but suppose instead 80% of the shareholders redeem their shares, and no warrants are exercised. Data from problem 18 a. What is the amount of cash per share...
-
Reliance Industries Ltd. is the biggest private sector company in India. The following fact sheet about the company and its peer group, as extracted from Capitaline Plus database is reproduced in the...
Study smarter with the SolutionInn App