Sol:
let the data be
productionvolume totalcost
400 4000
450 5000
550 5400
600 5900
700 6400
750 7000
production volume,x
total cost,y
Plot a scatteplot in R
df1 =read.table(header = TRUE, text ="
productionvolume totalcost
400 4000
450 5000
550 5400
600 5900
700 6400
750 7000
"
)
df1
plot(totalcost ~ productionvolume,data=df1,pch=16)
output:
to get the correlation coeffcient in R type
cor(df1$productionvolume,df1$totalcost)
0.9791271
r=0.9791271
there exists a strong positive relationship between production volume and total cost .
Form:linear
strength:strong
Direction:positive
Get Answers For Free
Most questions answered within 1 hours.