python help please

A type-Z option has the following payoff function: { K[1+sin(2*pi*St/(K))] if St=K1. Write a Python function with the following definition: def f(ST,K):which calculates the payoff of a type-Z option.Write a Python function with the following definition:def plotTypeZPayoff (K,STMax):which plots the payoff function of the type-Z option as a function of ST for given K. The range of the horizontal axis should be [0,STMax] and vertical axis [0,2.1K]. Include this graph in your written work for the case K = 20,STMax = 100.2. Write a loop based binomial options pricing function with the definition: def binomOption(payoff ,steps ,T,sigma,S0,r): where payoff is a function of one variable. The variable sigma ( ) is the volatility, related to u and d by u=exp( sqrt( t)) and d=exp( sqrt( t)). Write a factory function with the definition:def makeZPayoff(K):which returns a type-Z payoff function with fixed K.3. Fix T = 1,r = 0.05,K = 20,S0 = 15,steps = 200. Calculate the value of the type-Z option for {0.01, 0.1, 0.2, 0.3}. Produce a two column table of values and the corresponding option values in your written work. Explain why increasing increases the value of the option in this example. What do you expect to happen as and why? If S0 = K, what would be the effect of increasing and why?Fix T = 1,r = 0.05,K = 20,S0 = 15,steps = 200. Produce a graph of the type-Z option s value at t = 0 as a function of S0 for S0 [0,100] for each of the following values of : {0.01, 0.1, 0.2, 0.3}. Show all four graphs on the same axes and include it in your written work. What effect does increasing volatility have on the price graph and why?Fix T = 1,r = 0.05,K = 20,S0 = 15,steps = 200 and suppose the option s value is V0 = 2.0. Write a root finding function to calculate the volatility correct to 6 significant figures. Include the result in your written work.

Related Posts

Quality Writing Features

Price Start $10
  • 24/7 Customer Support
  • All Subject Areas
  • Money-Back Guarantee
  • Timely Delivery
  • Originality report
  • Confidentiality guaranteed

Ordering Homework Writing Service

You can get our ideal online homework help services with four easy steps. All you have to do is inform us of your requirements. Immediately we will match with a specialist in your academic discipline. After that, we will track your order, review it to ensure it meets your requirements, and submit it to your email.


Submit Requirements

Fill in your assignment instructions on the order form


Writer match

Immediately you contact us for homework help; we will assign your assignment to an academic expert.


Quality review

We have a team of editors, who will thoroughly review your assignment, ensuring there are no errors before submission


Get Your Completed Paper

Once we have completed the assignment, we will deliver it to your account. Additionally, we will send a notification to your email.



Budget-friendly writing services



We don’t share our client’s information with a third party



We write every assignment from scratch

Amazing Homework Writing Features

Once you consult us for homework help online services, you will attest to why we are among the USA's best essay writing services.

Read on and find out some of the features that make our services superlative.

Free Homework Writing Services

Free plagiarism checker

You can confirm that the content you get is original for free using our plagiarism checker.

Free samples

We offer unlimited access to our essay homework samples.

Free title page and bibliography

Once you place an order, we format it accordingly without demanding additional charges.

Free unlimited revisions

We offer free unlimited revisions until your assignment is of your desired quality..

Free editing and proofreading

We have a team of specialized editors who review your assignment before submission.

Free customer support

You can track the progress of your homework for free.

Request for Homework Writing Service Today!

We have over 500 homework writing experts, ready and waiting to help you improve your writing skills