Residual vs Fitted
Linear-model diagnostic — residuals vs fitted values with LOESS overlay.
Rendering…
Make it your own.
{
"data": [
{
"type":"scatter","mode":"markers",
"x":[1.1,1.8,2.4,3.0,3.6,4.2,4.8,5.3,5.9,6.5,7.0,7.6,8.1],
"y":[0.4,-0.2,0.1,-0.5,0.6,-0.1,0.2,-0.4,0.7,-0.3,0.5,-0.6,0.1],
"marker":{"size":8,"color":"#3666ff"},
"name":"Residual"
},
{
"type":"scatter","mode":"lines",
"x":[1.1,3.0,5.0,7.0,8.1],
"y":[0.05,-0.05,0.10,-0.05,0.05],
"line":{"color":"#dc2626","width":2,"shape":"spline"},
"name":"LOESS"
},
{
"type":"scatter","mode":"lines",
"x":[1.1,8.1],"y":[0,0],
"line":{"color":"#94a3b8","dash":"dash"},
"name":"Zero"
}
],
"layout": {
"title":"Residuals vs Fitted",
"xaxis":{"title":"Fitted values"},
"yaxis":{"title":"Residual"}
}
}