Fitxer:Okuns law with confidence bands.svg

De testwiki
Salta a la navegació Salta a la cerca
Fitxer original (fitxer SVG, nominalment 299 × 197 píxels, mida del fitxer: 95 Ko)

Aquest fitxer prové de Wikimedia Commons i pot ser usat per altres projectes. La descripció de la seva pàgina de descripció es mostra a continuació.

Resum

Descripció
English: Follow-up for the File:Okuns_law_quarterly_differences.svg file, additionally showing the confidence bands for the regression.
Font Treball propi
Autor Stpasha
Altres versions Okuns_law_quarterly_differences.svg

Source code (Mathematica)

Refer to the File:Okuns_law_quarterly_differences.svg to see the data set used.

n = Length[unempch];
sol = FindFit[data, \[Alpha] + \[Beta] x, {\[Alpha], \[Beta]}, x]
ts = Quantile[StudentTDistribution[n - 2], 0.975];
\[Alpha]h = \[Alpha] /. sol;
\[Beta]h = \[Beta] /. sol;
xm = Mean[unempch];
sx2 = Mean[(unempch - xm)^2];
s\[Epsilon]2 = 1/(n - 2) Total[(gdpch - \[Alpha]h - \[Beta]h unempch)^2];
s\[Beta] = Sqrt[1/n s\[Epsilon]2/sx2]; 
s\[Alpha] = s\[Beta] Sqrt[sx2 + xm^2];
sp = Sqrt[1/n s\[Epsilon]2 (1 + (x - xm)^2/sx2)];

Show[
  ListPlot[{{{-10, 0}}, {{-10, 0}}, data}, PlotMarkers->{Automatic, Small}, PlotStyle->Hue[0.6]],
  Plot[ \[Alpha]h + \[Beta]h x, {x, -1.1, 1.8}, PlotStyle->{GrayLevel[0], Thick}],
  Plot[ {\[Alpha]h + \[Beta]h x - ts sp, \[Alpha]h + \[Beta]h x + ts sp}, {x, -1.1, 1.8}, 
    Filling -> {1 -> {2}}, PlotStyle -> {Blue, Blue}],
  PlotRange -> {{-1.3, 2}, {-3, 5}},
  Axes -> False,
  Frame -> True,
  FrameLabel -> {"Quarterly change in the unemployment rate (\[CapitalDelta]%)", 
                 "Quarterly change in GDP (\[CapitalDelta]%)"},
  FrameStyle -> Directive[FontFamily -> "Arial"]
]

Llicència

Public domain Jo, el titular del copyright d'aquesta obra, l'allibero al domini públic. Això s'aplica a tot el món.
En alguns països això pot no ser legalment possible, en tal cas:
Jo faig concessió a tothom del dret d'usar aquesta obra per a qualsevol propòsit, sense cap condició llevat d'aquelles requerides per la llei.

Llegendes

Afegeix una explicació d'una línia del que representa aquest fitxer

Elements representats en aquest fitxer

representa l'entitat

Historial del fitxer

Cliqueu una data/hora per veure el fitxer tal com era aleshores.

Data/horaMiniaturaDimensionsUsuari/aComentari
actual15:33, 26 jul 2009Miniatura per a la versió del 15:33, 26 jul 2009299 × 197 (95 Ko)wikimediacommons>Stpasha{{Information |Description={{en|1=Follow-up for the File:Okuns_law_quarterly_differences.svg file, additionally showing the confidence bands for the regression.}} |Source=Own work |Author=Stpasha |Date= |Permission= |other_versions=O

La pàgina següent utilitza aquest fitxer: