Skeda:Chernoff-bound.svg

Nga testwiki
Kërceni tek navigimi Kërceni tek kërkimi
Skedari origjinal (skedë SVG, fillimisht 410 × 268 pixel, madhësia e skedës: 41 KB)

Kjo skedë është nga Wikimedia Commons dhe mund të përdoret nga projektet e tjera. Përshkrimi në faqen përshkruese të skedës është treguar më poshtë.

Përmbledhje

Përshkrimi
English: Chernoff bound (upper and lower) for the CDF of a chi-square random variable with ten degrees of freedom
Data
Burimi Puna vetjake
Autori Nicoguaro
SVG genesis
InfoField
 The SVG code is valid.
 This plot was created with Matplotlib.
Kodi burimor
InfoField

Python code

from __future__ import division
import numpy as np
from scipy.special import gammaincc
import matplotlib.pyplot as plt


plt.style.use(u"seaborn-white")


def chifunc(x, n):
    return gammaincc(n/2, x*n/2)


red = "#e41a1c"
blue = "#377eb8"
green = "#4daf4a"

M = 10
z = np.linspace(0.01, 10, 1000)
a = (1 - 2/(9*M))**3
nx = z <= a
nx2 = z >= a
chernoff = (z * np.exp(1 - z))**(M/2)

plt.figure(figsize=(5, 3))
plt.loglog(z[nx], 1 - chifunc(z[nx], M), color=red)
plt.loglog(z[nx2], chifunc(z[nx2], M), color=blue, linestyle="dashed")
plt.loglog(z, chernoff, color=green, linestyle="dotted")
plt.xlim(0.01, 10)
plt.ylim(1e-15, 10)
plt.yticks(np.logspace(-15, 0, 4))
plt.legend(["CDF", "1 - CDF", "Chernoff bound"], loc="best")
plt.xlabel(r"$z$", fontsize=15)
plt.savefig("Chernoff-bound.svg", bbox_inches="tight")

Licencim

Unë, krijuesi i kësaj pune, e publikoj këtu në bazë të licensës në vijim:
w:sq:Creative Commons
atribuim
This file is licensed under the Creative Commons Attribution 4.0 International license.
Je i lirë të:
  • ta shpërndani – ta kopjoni, rishpërndani dhe përcillni punën
  • t’i bëni “remix” – të përshtatni punën
Sipas kushteve të mëposhtme:
  • atribuim – Duhet t’i jepni meritat e duhura, të siguroni një lidhje për tek licenca dhe të tregoni nëse janë bërë ndryshime. Këtë mund ta bëni në ndonjë mënyrë të arsyeshme, por jo në ndonjë mënyrë që sugjeron se licencuesi ju del zot juve apo përdorimit tuaj.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

përshkruan

4 maj 2017

image/svg+xml

checksum anglisht

dcf53c9b891a31ea0b1cede8756a4902e00ce91f

data size anglisht

42.191 Bajti

268 pixel

410 pixel

Historiku i skedarit

Kliko mbi një datë/orë për ta parë skedarin siç është shfaqur në atë kohë.

Data/OraMiniaturaPërmasatPërdoruesiKoment
e tanishme4 maj 2017 22:10Miniaturë për versionin duke filluar nga 4 maj 2017 22:10410 × 268 (41 KB)wikimediacommons>NicoguaroUser created page with UploadWizard

faqe lidhet tek kjo skedë: