Regression Confidence Band
val xs = listOf(
-3.0, -2.8, -2.7, -2.6, -2.6, -2.5, -2.2, -3.1, -1.5,
-0.2, 2.0, 1.2, 2.6, 2.1, 0.1, 1.2, 1.7, 0.0, 2.8,
2.5, 0.2, 1.3, 2.5
)
val ys = listOf(
-1.4, -1.2, -1.4, -1.3, -1.2, -1.1, 1.5, 2.4, 1.1, -0.9,
3.5, 1.6, -0.7, 1.2, 0.1, 3.4, 2.8, 4.2, 1.16, 4.1, 2.2,
1.4, 5.1
)
plot {
statSmooth(xs, ys) {
line {
x(Stat.x)
y(Stat.y)
width = 2.0
color = Color.BLUE
}
ribbon {
x(Stat.x)
yMin(Stat.yMin)
yMax(Stat.yMax)
borderLine.width = 0.0
}
}
}
Last modified: 15 July 2024