Linear Regression

Linear Regression

Random data points and their linear regression. Created with the following Sage (http://sagemath.org) commands: X = RealDistribution('uniform', [-20, 60]) Y = RealDistribution('gaussian', 1.5) f(x) = 3*x/20 + 5 xvals = [X.get_random_element() for _ in range(100)] data = [(x, f(x) + Y.get_random_element()) for x in xvals] m, b = var('m b') g(x) = m*x + b g(x) = g(x).subs(find_fit(data, g, solution_dict=True)) p = list_plot(data) + plot(g, (x, -20, 60), color='red') p.save('linear_regression.svg')

Admin

@admin

0

Downloads

3

Views

0

Likes

CategoryIcons
LicenseFree Use
UploadedMay 9, 2026

Related Vectors

0102721 Bhojshala and Kamal Maula mosque site, Dhar Madhya Pradesh 008
⬇ 0♥ 0

0102721 Bhojshala and Kamal Maula mosque site, Dhar Madhya Pradesh 008

by

Sri Lelawangsa icon
⬇ 0♥ 0

Sri Lelawangsa icon

by

Flag Of Minsk, Belarus
⬇ 0♥ 0

Flag Of Minsk, Belarus

by

Flag Of Kyōtamba, Kyoto
⬇ 0♥ 0

Flag Of Kyōtamba, Kyoto

by

0102721 Bhojshala and Kamal Maula mosque site, Dhar Madhya Pradesh 104
⬇ 0♥ 0

0102721 Bhojshala and Kamal Maula mosque site, Dhar Madhya Pradesh 104

by

0102721 Bhojshala and Kamal Maula mosque site, Dhar Madhya Pradesh 019
⬇ 0♥ 0

0102721 Bhojshala and Kamal Maula mosque site, Dhar Madhya Pradesh 019

by

0102721 Bhojshala and Kamal Maula mosque site, Dhar Madhya Pradesh 071
⬇ 0♥ 0

0102721 Bhojshala and Kamal Maula mosque site, Dhar Madhya Pradesh 071

by

0102721 Bhojshala and Kamal Maula mosque site, Dhar Madhya Pradesh 049
⬇ 0♥ 0

0102721 Bhojshala and Kamal Maula mosque site, Dhar Madhya Pradesh 049

by

Dad and son in the park
⬇ 0♥ 0

Dad and son in the park

by

Inner way in Door
⬇ 0♥ 0

Inner way in Door

by

5 Crossing hexa-tori / 交差する5個の六芒星環
⬇ 0♥ 0

5 Crossing hexa-tori / 交差する5個の六芒星環

by

3 Tori / 3つの輪環
⬇ 0♥ 0

3 Tori / 3つの輪環

by

Rock / 塊
⬇ 0♥ 0

Rock / 塊

by

5 Knots / 5つの結び目
⬇ 0♥ 0

5 Knots / 5つの結び目

by

Radar icon
⬇ 0♥ 0

Radar icon

by

Jabar Kereta Cepat Feeder icon
⬇ 0♥ 0

Jabar Kereta Cepat Feeder icon

by

Jakarta LRT Northern Line
⬇ 0♥ 0

Jakarta LRT Northern Line

by

OOjs UI Icon Notice Destructive
⬇ 0♥ 0

OOjs UI Icon Notice Destructive

by

OOjs UI Icon ArrowPrevious Ltr
⬇ 0♥ 0

OOjs UI Icon ArrowPrevious Ltr

by

ISO 639 Icon Cnr
⬇ 0♥ 0

ISO 639 Icon Cnr

by

Icon S Blue
⬇ 0♥ 0

Icon S Blue

by

Icon Folder
⬇ 0♥ 0

Icon Folder

by

OOjs UI Icon Chem
⬇ 0♥ 0

OOjs UI Icon Chem

by

Play Pause Icon 2283501
⬇ 0♥ 0

Play Pause Icon 2283501

by

Color Icon Blue
⬇ 0♥ 0

Color Icon Blue

by

Broom Icon 1
⬇ 0♥ 0

Broom Icon 1

by

Search Icon 72a7cf
⬇ 0♥ 0

Search Icon 72a7cf

by

CPU Z Icon
⬇ 0♥ 0

CPU Z Icon

by

Icon Tools
⬇ 0♥ 0

Icon Tools

by

Codex Icon ArrowNext Color Base
⬇ 0♥ 0

Codex Icon ArrowNext Color Base

by

Codex Icon ListBullet Color Progressive
⬇ 0♥ 0

Codex Icon ListBullet Color Progressive

by

Codex Icon Die Color Progressive
⬇ 0♥ 0

Codex Icon Die Color Progressive

by

OOjs UI Icon Highlight Progressive
⬇ 0♥ 0

OOjs UI Icon Highlight Progressive

by

Yandex Browser Icon
⬇ 0♥ 0

Yandex Browser Icon

by

JS Icon Edit White
⬇ 0♥ 0

JS Icon Edit White

by

Xcode Test Case Success Green
⬇ 0♥ 0

Xcode Test Case Success Green

by

Comments (0)

Login to comment