跳转到内容

File:Linear regression.svg

页面内容不支持其他语言。
这个文件来自维基共享资源
维基百科,自由的百科全书
    原始文件 (SVG文件,尺寸为438 × 289像素,文件大小:71 KB)


    摘要

    描述
    Français : Un nuage de points (en bleu) peut être modélisé par une droite de régression (en rouge).
    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: 
    SVG开发
    InfoField
     本图片使用Sagemath创作。
     以及使用 Inkscape.

    许可协议

    Public domain 本作品已被作者Sewaqu释出到公有领域。这适用于全世界。
    在一些国家这可能不合法;如果是这样的话,那么:
    Sewaqu无条件地授予任何人以任何目的使用本作品的权利,除非这些条件是法律规定所必需的。

    说明

    添加一行文字以描述该文件所表现的内容
    A straight line with y-intercept 5 fitted to datapoints. A scatter plot (blue) can be rendered as a linear regression (red).

    此文件中描述的项目

    描绘内容

    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使用此文件:

    查看此文件的更多全域用途。

    元数据