Question

3. {50 points} Our hypothesis function has the general form: hθ(x) = θ0 + θ1x. We...

3. {50 points} Our hypothesis function has the general form: hθ(x) = θ0 + θ1x. We give to hθ(x) values for θ0 and θ1 to approximate our output ’y’. In other words, we are trying to create a function called hθ(x) that is able to reliably map our input data (the x’s) to our output data-label (the y’s). Let us consider the
following training set: {x1, x2, x3, x4, x5}={(0,0), (1,1), (2,1), (3,2), (4,4)}.
(a) Plot all samples into a 2-dimensional Cartesian axes system
(b) {20 points} Make your initial guess about the values of the parameters θ0 and θ1. Give the corresponding hypothesis function and draw it on the Cartesian axes
(c) {10 points} Knowing the formula of the cost function, J(θ0, θ1) = 12m Pm
i=1(hθ(x(i)) − y(i))2, calculate
the error produced by your estimation
(d) {20 points} Calculate the error produced by hθ(x) having fixed the parameters θ0 = 0 and θ1 = 3

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution : given hg(x) = 8 + 8, x given data is (x,.3.),0) (12.42) - (11) (23, Y; )= (2,12 (Rys. 94) = (3,2) Cas., ): (++ ) ac) Cost function 4(0,0) = { 1,621)-4; 7 J& our estimation J(0,0) = (0.6)+(1-1+2-1)+(3-2)764-4) - ptr 2 d) 00:0, 0,33 then ho(

Add a comment
Know the answer?
Add Answer to:
3. {50 points} Our hypothesis function has the general form: hθ(x) = θ0 + θ1x. We...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1. (a) We need to calculate accurate values of the function for very large values of x. However, it is found that ju...

    1. (a) We need to calculate accurate values of the function for very large values of x. However, it is found that just programming this formula into a computer gives very poor accuracy for large x Explain why this happens, and show how to re-write the function so that it can be used reliably, even when x is large. [6 points] (b) In diffraction theory, it is sometimes necessary to evaluate the function sin θ f(x) for small to moderate...

  • 3. At the beginning of 8.6, we investigated the graph of f(x) = ? and the...

    3. At the beginning of 8.6, we investigated the graph of f(x) = ? and the graphs of several partial sums of its series 3x". You are now going to investigate the graphs of (-1)**(x - 2)", which is the series representation of the function f(x) = -centered at a = 2 a. Find the radius and interval of convergence (x - 2)". Show all your work. (3 points) b. Find the first five terms of Sn for Ž (-1)**(x-2)",...

  • You will be writing a simple Java program that implements an ancient form of encryption known...

    You will be writing a simple Java program that implements an ancient form of encryption known as a substitution cipher or a Caesar cipher (after Julius Caesar, who reportedly used it to send messages to his armies) or a shift cipher. In a Caesar cipher, the letters in a message are replaced by the letters of a "shifted" alphabet. So for example if we had a shift of 3 we might have the following replacements: Original alphabet: A B C...

  • How can we assess whether a project is a success or a failure? This case presents...

    How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT