SlideShare a Scribd company logo
1 of 1
Download to read offline
Consider the following "dataset" with a single feature x, and corresponding true label values y
are shown in the table below [16] a) Plot the data of y against x in a scatterplot [2] b) Find the
updated value of m and c up to the 2=nd iteration. [ Assume the avg line and its corresponding m
and c as the first iteration value. Assume that the learning rate =0.01. Use MSE as your cost
function here] [8] c) Find the final predicted value y hat for this dataset after 2nd iteration [3] d)
Compute the RMSE between the final predicted values obtained in (b) and true label values,
showing all work. [3]

More Related Content

More from aucmistry

Consider the data for the mean number of days with precipitation more.pdf
 Consider the data for the mean number of days with precipitation more.pdf Consider the data for the mean number of days with precipitation more.pdf
Consider the data for the mean number of days with precipitation more.pdfaucmistry
 
Consider the following documents Doc 1 pat sat on mat Doc 2 cat sa.pdf
 Consider the following documents Doc 1 pat sat on mat Doc 2 cat sa.pdf Consider the following documents Doc 1 pat sat on mat Doc 2 cat sa.pdf
Consider the following documents Doc 1 pat sat on mat Doc 2 cat sa.pdfaucmistry
 
Consider the continuous random variable, Y, with moment generating fu.pdf
 Consider the continuous random variable, Y, with moment generating fu.pdf Consider the continuous random variable, Y, with moment generating fu.pdf
Consider the continuous random variable, Y, with moment generating fu.pdfaucmistry
 
Consider the case in which query involves a single variable. Let X be.pdf
 Consider the case in which query involves a single variable. Let X be.pdf Consider the case in which query involves a single variable. Let X be.pdf
Consider the case in which query involves a single variable. Let X be.pdfaucmistry
 
Haz un resumen del siguiente pasaje y dale un t�tulo adecuado. Has.pdf
Haz un resumen del siguiente pasaje y dale un t�tulo adecuado. Has.pdfHaz un resumen del siguiente pasaje y dale un t�tulo adecuado. Has.pdf
Haz un resumen del siguiente pasaje y dale un t�tulo adecuado. Has.pdfaucmistry
 
Hay nueve filos principales descritos -Referencias - Mollusca, P.pdf
Hay nueve filos principales descritos -Referencias - Mollusca, P.pdfHay nueve filos principales descritos -Referencias - Mollusca, P.pdf
Hay nueve filos principales descritos -Referencias - Mollusca, P.pdfaucmistry
 
Have you ever driven through a rural area and thought, There is not.pdf
Have you ever driven through a rural area and thought, There is not.pdfHave you ever driven through a rural area and thought, There is not.pdf
Have you ever driven through a rural area and thought, There is not.pdfaucmistry
 
Harvey Inc. has a Current E&P balance of ($100,000) earned ratably t.pdf
Harvey Inc. has a Current E&P balance of ($100,000) earned ratably t.pdfHarvey Inc. has a Current E&P balance of ($100,000) earned ratably t.pdf
Harvey Inc. has a Current E&P balance of ($100,000) earned ratably t.pdfaucmistry
 
Harris Corporation provides the following data on a proposed capital.pdf
Harris Corporation provides the following data on a proposed capital.pdfHarris Corporation provides the following data on a proposed capital.pdf
Harris Corporation provides the following data on a proposed capital.pdfaucmistry
 
HAROUN COMPANY Comparative Year-End Balance Sheets December 31, 2021.pdf
HAROUN COMPANY Comparative Year-End Balance Sheets December 31, 2021.pdfHAROUN COMPANY Comparative Year-End Balance Sheets December 31, 2021.pdf
HAROUN COMPANY Comparative Year-End Balance Sheets December 31, 2021.pdfaucmistry
 
HAPTER 9 - Other Income, Other Deductions and Other IssuesIntroduc.pdf
HAPTER 9 - Other Income, Other Deductions and Other IssuesIntroduc.pdfHAPTER 9 - Other Income, Other Deductions and Other IssuesIntroduc.pdf
HAPTER 9 - Other Income, Other Deductions and Other IssuesIntroduc.pdfaucmistry
 
HAP 417Watch the following 4 videos and then answer the 6 question.pdf
HAP 417Watch the following 4 videos and then answer the 6 question.pdfHAP 417Watch the following 4 videos and then answer the 6 question.pdf
HAP 417Watch the following 4 videos and then answer the 6 question.pdfaucmistry
 
Hannah hired Mark to renovate her kitchen. The work was completed on.pdf
Hannah hired Mark to renovate her kitchen. The work was completed on.pdfHannah hired Mark to renovate her kitchen. The work was completed on.pdf
Hannah hired Mark to renovate her kitchen. The work was completed on.pdfaucmistry
 
Given that investment expenditure is not affected by national income.pdf
Given that investment expenditure is not affected by national income.pdfGiven that investment expenditure is not affected by national income.pdf
Given that investment expenditure is not affected by national income.pdfaucmistry
 
Given that Z is a standard normal random variable, the probability t.pdf
Given that Z is a standard normal random variable, the probability t.pdfGiven that Z is a standard normal random variable, the probability t.pdf
Given that Z is a standard normal random variable, the probability t.pdfaucmistry
 
Give your take on each of the posts below. Do you agree or disagree .pdf
Give your take on each of the posts below. Do you agree or disagree .pdfGive your take on each of the posts below. Do you agree or disagree .pdf
Give your take on each of the posts below. Do you agree or disagree .pdfaucmistry
 
Give nondeterministic finite automata that accept each of the follow.pdf
Give nondeterministic finite automata that accept each of the follow.pdfGive nondeterministic finite automata that accept each of the follow.pdf
Give nondeterministic finite automata that accept each of the follow.pdfaucmistry
 
Give a detailed example of an activity that can be performed in seve.pdf
Give a detailed example of an activity that can be performed in seve.pdfGive a detailed example of an activity that can be performed in seve.pdf
Give a detailed example of an activity that can be performed in seve.pdfaucmistry
 
Give the introduction to legal issues of information system and gi.pdf
Give the introduction to legal issues of information system and gi.pdfGive the introduction to legal issues of information system and gi.pdf
Give the introduction to legal issues of information system and gi.pdfaucmistry
 
Giorgio ha determinado que el 19 por ciento de las miles de fotos d.pdf
Giorgio ha determinado que el 19 por ciento de las miles de fotos d.pdfGiorgio ha determinado que el 19 por ciento de las miles de fotos d.pdf
Giorgio ha determinado que el 19 por ciento de las miles de fotos d.pdfaucmistry
 

More from aucmistry (20)

Consider the data for the mean number of days with precipitation more.pdf
 Consider the data for the mean number of days with precipitation more.pdf Consider the data for the mean number of days with precipitation more.pdf
Consider the data for the mean number of days with precipitation more.pdf
 
Consider the following documents Doc 1 pat sat on mat Doc 2 cat sa.pdf
 Consider the following documents Doc 1 pat sat on mat Doc 2 cat sa.pdf Consider the following documents Doc 1 pat sat on mat Doc 2 cat sa.pdf
Consider the following documents Doc 1 pat sat on mat Doc 2 cat sa.pdf
 
Consider the continuous random variable, Y, with moment generating fu.pdf
 Consider the continuous random variable, Y, with moment generating fu.pdf Consider the continuous random variable, Y, with moment generating fu.pdf
Consider the continuous random variable, Y, with moment generating fu.pdf
 
Consider the case in which query involves a single variable. Let X be.pdf
 Consider the case in which query involves a single variable. Let X be.pdf Consider the case in which query involves a single variable. Let X be.pdf
Consider the case in which query involves a single variable. Let X be.pdf
 
Haz un resumen del siguiente pasaje y dale un t�tulo adecuado. Has.pdf
Haz un resumen del siguiente pasaje y dale un t�tulo adecuado. Has.pdfHaz un resumen del siguiente pasaje y dale un t�tulo adecuado. Has.pdf
Haz un resumen del siguiente pasaje y dale un t�tulo adecuado. Has.pdf
 
Hay nueve filos principales descritos -Referencias - Mollusca, P.pdf
Hay nueve filos principales descritos -Referencias - Mollusca, P.pdfHay nueve filos principales descritos -Referencias - Mollusca, P.pdf
Hay nueve filos principales descritos -Referencias - Mollusca, P.pdf
 
Have you ever driven through a rural area and thought, There is not.pdf
Have you ever driven through a rural area and thought, There is not.pdfHave you ever driven through a rural area and thought, There is not.pdf
Have you ever driven through a rural area and thought, There is not.pdf
 
Harvey Inc. has a Current E&P balance of ($100,000) earned ratably t.pdf
Harvey Inc. has a Current E&P balance of ($100,000) earned ratably t.pdfHarvey Inc. has a Current E&P balance of ($100,000) earned ratably t.pdf
Harvey Inc. has a Current E&P balance of ($100,000) earned ratably t.pdf
 
Harris Corporation provides the following data on a proposed capital.pdf
Harris Corporation provides the following data on a proposed capital.pdfHarris Corporation provides the following data on a proposed capital.pdf
Harris Corporation provides the following data on a proposed capital.pdf
 
HAROUN COMPANY Comparative Year-End Balance Sheets December 31, 2021.pdf
HAROUN COMPANY Comparative Year-End Balance Sheets December 31, 2021.pdfHAROUN COMPANY Comparative Year-End Balance Sheets December 31, 2021.pdf
HAROUN COMPANY Comparative Year-End Balance Sheets December 31, 2021.pdf
 
HAPTER 9 - Other Income, Other Deductions and Other IssuesIntroduc.pdf
HAPTER 9 - Other Income, Other Deductions and Other IssuesIntroduc.pdfHAPTER 9 - Other Income, Other Deductions and Other IssuesIntroduc.pdf
HAPTER 9 - Other Income, Other Deductions and Other IssuesIntroduc.pdf
 
HAP 417Watch the following 4 videos and then answer the 6 question.pdf
HAP 417Watch the following 4 videos and then answer the 6 question.pdfHAP 417Watch the following 4 videos and then answer the 6 question.pdf
HAP 417Watch the following 4 videos and then answer the 6 question.pdf
 
Hannah hired Mark to renovate her kitchen. The work was completed on.pdf
Hannah hired Mark to renovate her kitchen. The work was completed on.pdfHannah hired Mark to renovate her kitchen. The work was completed on.pdf
Hannah hired Mark to renovate her kitchen. The work was completed on.pdf
 
Given that investment expenditure is not affected by national income.pdf
Given that investment expenditure is not affected by national income.pdfGiven that investment expenditure is not affected by national income.pdf
Given that investment expenditure is not affected by national income.pdf
 
Given that Z is a standard normal random variable, the probability t.pdf
Given that Z is a standard normal random variable, the probability t.pdfGiven that Z is a standard normal random variable, the probability t.pdf
Given that Z is a standard normal random variable, the probability t.pdf
 
Give your take on each of the posts below. Do you agree or disagree .pdf
Give your take on each of the posts below. Do you agree or disagree .pdfGive your take on each of the posts below. Do you agree or disagree .pdf
Give your take on each of the posts below. Do you agree or disagree .pdf
 
Give nondeterministic finite automata that accept each of the follow.pdf
Give nondeterministic finite automata that accept each of the follow.pdfGive nondeterministic finite automata that accept each of the follow.pdf
Give nondeterministic finite automata that accept each of the follow.pdf
 
Give a detailed example of an activity that can be performed in seve.pdf
Give a detailed example of an activity that can be performed in seve.pdfGive a detailed example of an activity that can be performed in seve.pdf
Give a detailed example of an activity that can be performed in seve.pdf
 
Give the introduction to legal issues of information system and gi.pdf
Give the introduction to legal issues of information system and gi.pdfGive the introduction to legal issues of information system and gi.pdf
Give the introduction to legal issues of information system and gi.pdf
 
Giorgio ha determinado que el 19 por ciento de las miles de fotos d.pdf
Giorgio ha determinado que el 19 por ciento de las miles de fotos d.pdfGiorgio ha determinado que el 19 por ciento de las miles de fotos d.pdf
Giorgio ha determinado que el 19 por ciento de las miles de fotos d.pdf
 

Recently uploaded

Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 

Recently uploaded (20)

YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 

Linear Regression Model: Plot Data, Find m & c Values, Predict y Hat, and Calculate RMSE

  • 1. Consider the following "dataset" with a single feature x, and corresponding true label values y are shown in the table below [16] a) Plot the data of y against x in a scatterplot [2] b) Find the updated value of m and c up to the 2=nd iteration. [ Assume the avg line and its corresponding m and c as the first iteration value. Assume that the learning rate =0.01. Use MSE as your cost function here] [8] c) Find the final predicted value y hat for this dataset after 2nd iteration [3] d) Compute the RMSE between the final predicted values obtained in (b) and true label values, showing all work. [3]