File:Lawoflargenumbers.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 540 × 360 pixels, file size: 52 KB)

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    Summary

    Description
    English: Illustration of Law of large numbers.
    Date
    Source Own work
    Author Pred
    SVG development
    InfoField
     The source code of this SVG is invalid due to an error.
     This W3C-invalid vector image was created with Python.

    Licensing

    Pred, the copyright holder of this work, hereby publishes it under the following license:
    Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
    The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

    Source code

    The logo of Python – general-purpose programming language
    The logo of Python – general-purpose programming language
    This media was created with Python (general-purpose programming language)
    Here is a listing of the source used to create this file.

    Deutsch ∙ македонски ∙ English ∙ +/−

    The plot was produced using the following Python source code

    import numpy as np
    import matplotlib.pyplot as plt
    import seaborn as sns
    np.random.seed(0)
    
    x = np.arange(1, 1001, 1)
    samples = np.random.randint(1, 7, len(x))
    averages = np.cumsum(samples)/x
    
    plt.plot((0, 1000), (3.5, 3.5), label='Theoretical mean')
    plt.plot(x, averages, label='Observed averages')
    
    plt.title('Average dice roll by number of rolls')
    plt.xlabel('Number of trials')
    plt.ylabel('Average')
    plt.ylim((1, 6))
    plt.legend()
    plt.savefig('lawoflargenumbers.svg')
    

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    6 May 2017

    53,691 byte

    360 pixel

    540 pixel

    image/svg+xml

    b8f720af4d345df42231357336279251273bbd5a

    File history

    Click on a date/time to view the file as it appeared at that time.

    Date/TimeThumbnailDimensionsUserComment
    current10:26, 6 May 2017Thumbnail for version as of 10:26, 6 May 2017540 × 360 (52 KB)wikimediacommons>PredAdd legend

    There are no pages that use this file.