File:Linear regression.svg

原始檔案(SVG 檔案,表面大小:438 × 289 像素,檔案大小:71 KB)


摘要

 
本image使用SageMath創作。
描述
English: 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')
日期
來源 自己的作品
作者 Sewaqu
其他版本 Derivative works of this file:  Sedm zakladnich nastroju zlepsovani kvality cz.svg

授權條款

Public domain 我,此作品的版權所有人,釋出此作品至公共領域。此授權條款在全世界均適用。
這可能在某些國家不合法,如果是的話:
我授予任何人有權利使用此作品於任何用途,除受法律約束外,不受任何限制。

說明

添加單行說明來描述出檔案所代表的內容
A straight line with y-intercept 5 fitted to datapoints

在此檔案描寫的項目

描繪內容

image/svg+xml

檔案歷史

點選日期/時間以檢視該時間的檔案版本。

日期/時間縮⁠圖尺寸使用者備⁠註
目前2016年3月31日 (四) 10:42於 2016年3月31日 (四) 10:42 版本的縮圖438 × 289(71 KB)RaphaelQStransparent background
2010年11月5日 (五) 03:18於 2010年11月5日 (五) 03:18 版本的縮圖438 × 289(42 KB)Sewaqu{{Information |Description={{en|1=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

全域檔案使用狀況

以下其他 wiki 使用了這個檔案:

檢視此檔案的更多全域使用狀況

詮釋資料