File:ExpectedLog.png

From testwiki
Jump to navigation Jump to search
    Original file (427 × 349 pixels, file size: 6 KB, MIME type: image/png)

    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: Expected logarithmic score when true probability is 0.8. Matlab code given below.
    Date
    Source Own work
    Author Bscan
     Info: DrTrigonBot (talk) has evaluated this file and left hidden information. View it! For a deeper understanding of how the bot works, please consult the documentation.

    %%%Matlab Code

    %Probability given by classifier to be tested q = 0.01:.01:.99; %True probability p = 0.8;

    Expected_Surprisal = p*log(q) + (1-p)*log(1-q);

    figure; hold on; plot(q, Expected_Surprisal,'b','LineWidth',2); [minSurprisal optimalChoice] = max(Expected_Surprisal); plot(q(optimalChoice), minSurprisal,'*b') xlabel('Probability Assigned to True Event'); ylabel('Expected Logarithmic Score');

    Licensing

    I, the copyright holder of this work, hereby publish 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.

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    13 September 2012

    5,779 byte

    349 pixel

    427 pixel

    image/png

    484b6bfa3aa97ec38adb3b602b1698d664cfeb55

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current16:27, 13 September 2012Thumbnail for version as of 16:27, 13 September 2012427 × 349 (6 KB)wikimediacommons>BscanUser created page with UploadWizard

    There are no pages that use this file.