4. Implementing Gradient Descent. In this question you will implement gradient descent for an easy problem:...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
4. Implementing Gradient Descent. In this question you will implement gradient descent for an easy problem: convex quadratic functions. Consider the problem: min: f(x) = =¹Qx+q¹x. where Q is a (strictly) positive definite matrix, i.e., it is symmetric and all its eigenvalues are strictly positive. (a) Compute the gradient: Vf(x). (b) Implement gradient descent using three stepsize choices: n=1/t, me=1/√t, and = n (in other words, the last one is for fixed n). (c) Randomly generate data (make sure that your matrix Q is symmetric and strictly posi- tive definite) and plot your results for the first two choices. For the third, find values of n for which gradient descent converges, and for which it diverges. 4. Implementing Gradient Descent. In this question you will implement gradient descent for an easy problem: convex quadratic functions. Consider the problem: min: f(x) = =¹Qx+q¹x. where Q is a (strictly) positive definite matrix, i.e., it is symmetric and all its eigenvalues are strictly positive. (a) Compute the gradient: Vf(x). (b) Implement gradient descent using three stepsize choices: n=1/t, me=1/√t, and = n (in other words, the last one is for fixed n). (c) Randomly generate data (make sure that your matrix Q is symmetric and strictly posi- tive definite) and plot your results for the first two choices. For the third, find values of n for which gradient descent converges, and for which it diverges.
Expert Answer:
Answer rating: 100% (QA)
a Compute the Gradient The gradient of the function fxxTQxqTx is given by the partial derivatives wi... View the full answer
Related Book For
Numerical Methods With Chemical Engineering Applications
ISBN: 9781107135116
1st Edition
Authors: Kevin D. Dorfman, Prodromos Daoutidis
Posted Date:
Students also viewed these computer network questions
-
A business has a cost of equity of 9.5 percent and a pretax cost of debt of 5.4 percent. The debt-equity ratio is 1.15 and the tax rate is 25 percent. What is the unlevered cost of capital?
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
How can technology and innovation be leveraged to support sustainable whale watching practices and enhance the visitor experience
-
2. C. b. d. e. a. A proposed public project would produce the following pattern of individual benefits and costs. Revise only the cost shares of individuals C and E to meet the Pareto Criterion. (7...
-
Suppose your friend, Pat, approaches you with a plan to get in on the solar panel leasing business. Pat has identified an opportunity to acquire panels sufficient to power 25 homes. On average, Pat...
-
Suppose that the demand function for movies is Q 1 = 120 - p for college students and Q 2 = 60 - 0.5p for other town residents. What is the towns total demand function (Q = Q 1 + Q 2 as a function of...
-
Estimate the rate (in gal/hr) that your car uses gasoline when it is being driven on an interstate highway. Determine how long it would take to empty a 12-oz soft-drink container at this flowrate....
-
The first case at the end of this chapter and numerous subsequent chapters is a series of integrative cases involving Wal-Mart Stores, Inc. (Walmart). The series of cases applies the concepts and...
-
Find the length of the curve (t)=(9,,) for-3
-
The CitruSun Corporation ships frozen orange juice concentrate from processing plants in Eustis and Clermont to distributors in Miami, Orlando, and Tallahassee. Each plant can produce 20 tons of...
-
4. A car leaves point A and drives at 80 km/hr [60Wof N]. The car then heads north at 60 km/hr arriving at point B. If the entire trip lasts 2.5 hours, determine the car's acceleration during the...
-
Summit Systems has an equity cost of capital of 11%, will pay a dividend of $1.75 in one year and its dividends had been expected to grow by 6.5% per year. You read in the paper that Summit has...
-
Apnex, Inc., is a biotechnology firm that is about to announce the results of its clinical trials of a potential new cancer drug. If the trials were successful, Apnex stock will be worth $74 per...
-
You have just purchased a share of stock for $19.05. The company is expected to pay a dividend of $0.63 per share in exactly one year. If you want to earn a 9.2% return on your investment, what price...
-
You expect KStreet Cos trade at $98 per share right after paying a $2.25 dividend per share in one year. What is the most you would pay to buy the stock now if you want to earn at least a 12% return?
-
Your portfolio consists of 120 shares of CSH and 60 shares of EJH, which you just bought at $21 and $29 per share, respectively. a. What fraction of your portfolio is invested in CSH? In EJH? b. If...
-
Consider the following game, with a risk-neutral principal with preferences = q - w hiring an agent with preferences U = w-e.. The agent's reservation utility is given by U = 2, and the agent can...
-
Repeat Exercise 16.6 using the t-test of the coefficient of correlation. Is this result identical to the one you produced in Exercise 16.6?
-
Consider the equation (a) Write a MATLAB program that produces the phase plane. You are welcome to use any integration method you would like. The phase plane portrait that you make should be wide...
-
Perform a linear stability analysis of the system around the steady state solution. How does the approach to the steady state depend on the parameters a and b? x = ax + bx x = bx + ax
-
Write a program to solve using implicit Euler. dy dt = y/2, y(0) = 2 (4.2.39)
-
Selected transactions from the journal of Wong Consultants are presented below (amounts in thousands). Instructions a. Post the transactions to T-accounts. b. Prepare a trial balance at August 31,...
-
The order of the accounts in the ledger is: a. assets, revenues, expenses, liabilities, share capitalordinary, dividends. b. assets, liabilities, share capitalordinary, dividends, revenues, expenses....
-
The T-accounts below summarize the ledger of Negrete Landscaping at the end of the first month of operations (amounts in ). Instructions a. Prepare the complete general journal (including...
Study smarter with the SolutionInn App