File:Linear regression.svg

原始文件(SVG文件,尺寸为438 × 289像素,文件大小:71 KB)


摘要

 
本图片使用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
其他版本 此文件衍生的作品:  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:422016年3月31日 (四) 10:42版本的缩略图438 × 289(71 KB)RaphaelQStransparent background
2010年11月5日 (五) 03:182010年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使用此文件:

查看本文件的更多全域用途

元数据