Professional Documents
Culture Documents
Mid Semester Exam Answer Sheet
Mid Semester Exam Answer Sheet
Based on the output above, the regression line equation to predict the particulate
removed from the amount of daily rainfall is y=153.175+(−6.324 x )
Estimate the amount of particulate removed when the daily rainfall is x=4,8
units.
Predct the sum of parthiculate removed when the daily rainfall is x=4,8 is
y=153.175+(−6.324 x ).
b. This is the result of input and output
Input:
#masukkan data menjadi vectors x dan vektor y
x<=c(4.3,4.5, 5.9,5.6,6.1,5.2,3.2,2.1,7.5)
y<=c(126,121,116,118,114,118,132,141)
#untuk mengeluarkan hasil uji t untuk parameter b0 dan b1, print summary.
Output:
#data yang akan diprediksi
x-test<-data.frame (x=4.8)
#hasill prediksi
predict result <-predictipers-regresi r tipes