Wave:GoodnessOfFit: Difference between revisions

From BlueM
Jump to navigation Jump to search
(Hydrologische Deviation)
(→‎Kling-Gupta efficiency: fix reference #120)
 
(14 intermediate revisions by 2 users not shown)
Line 2: Line 2:
<div style="float:right; margin-left:10px;">__TOC__</div>
<div style="float:right; margin-left:10px;">__TOC__</div>


==Beschreibung==
==Description==
'''GoodnessOfFit''' berechnet für zwei Zeitreihen die folgenden Indikatoren der Anpassungsgüte:
[[File:GoodnessOfFit ResultChart.png|thumb|right|Result chart for a GoodnessOfFit analysis with two simulated time series]]
'''GoodnessOfFit''' calculates various goodness of fit indicators for one or more "simulated" time series in relation to one "observed" time series.


=== Volumenfehler ===
Optionally, the analysis can be performed for individual hydrologic years.
 
The indicators "Volume error", "Nash-Sutcliffe efficiency", "Logarithmic Nash-Sutcliffe efficiency", "Kling-Gupta efficiency" and "Coefficient of correlation" are displayed in a radar chart. The full set of indicators is output to a result table.
 
== Indicators ==
 
=== Volume error ===
:<math>m = 100 \cdot \frac{\sum_{t=1}^T{(Q_m^t - Q_o^t)}}{\sum_{t=1}^T{Q_o^t}}</math>
:<math>m = 100 \cdot \frac{\sum_{t=1}^T{(Q_m^t - Q_o^t)}}{\sum_{t=1}^T{Q_o^t}}</math>


mit
with:
:<code>m</code>: Volumenfehler [%]
:<code>m</code>: Volume error [%]
:<code>Q<sub>o</sub><sup>t</sup></code>: gemessener Abfluss zum Zeitpunkt <code>t</code>
:<code>Q<sub>o</sub><sup>t</sup></code>: observed value at time <code>t</code>
:<code>Q<sub>m</sub><sup>t</sup></code>: simulierter Abfluss zum Zeitpunkt <code>t</code>
:<code>Q<sub>m</sub><sup>t</sup></code>: simulated value at time <code>t</code>


=== Summe der Fehlerquadrate ===
=== Sum of squared errors ===
:<math>F^2 = \sum_{t=1}^T{\left(Q_o^t - Q_m^t\right)^2}</math>
:<math>F^2 = \sum_{t=1}^T{\left(Q_o^t - Q_m^t\right)^2}</math>


mit
with
:<code>F²</code>: Summe der Fehlerquadrate
:<code>F²</code>: Sum of squared errors
:<code>Q<sub>o</sub><sup>t</sup></code>: gemessener Abfluss zum Zeitpunkt <code>t</code>
:<code>Q<sub>o</sub><sup>t</sup></code>: observed value at time <code>t</code>
:<code>Q<sub>m</sub><sup>t</sup></code>: simulierter Abfluss zum Zeitpunkt <code>t</code>
:<code>Q<sub>m</sub><sup>t</sup></code>: simulated value at time <code>t</code>


=== Korrelationskoeffizient / Bestimmtheitsmaß ===
=== Correlation coefficient / coefficient of determination ===
:<math>r = \frac{s_{o,m}}{s_o \cdot s_m}</math>
:<math>r = \frac{s_{o,m}}{s_o \cdot s_m}</math>


mit
with
:<math>s_{o,m} = \frac{1}{n - 1} \sum_{t=1}^T{(Q_o^t - \overline{Q_o}) \cdot (Q_m^t - \overline{Q_m})}</math>
:<math>s_{o,m} = \frac{1}{n - 1} \sum_{t=1}^T{(Q_o^t - \overline{Q_o}) \cdot (Q_m^t - \overline{Q_m})}</math>
:<math>s_o = \sqrt{\frac{1}{n - 1} \sum_{t=1}^T{(Q_o^t - \overline{Q_o})^2}}</math> (''<code>s<sub>m</sub></code> analog'')
:<math>s_o = \sqrt{\frac{1}{n - 1} \sum_{t=1}^T{(Q_o^t - \overline{Q_o})^2}}</math>
:<math>s_m = \sqrt{\frac{1}{n - 1} \sum_{t=1}^T{(Q_m^t - \overline{Q_m})^2}}</math>
 
with
:<code>r</code>: correlation coefficient (<code>-1 &le; r &le; 1</code>)
:<code>r²</code>: coefficient of determination (<code>0 &le; r² &le; 1</code>)
:<code>s<sub>o,m</sub></code>: covariance
:<code>s<sub>o</sub></code>: standard deviation of observed values
:<code>s<sub>m</sub></code>: standard deviation of simulated values
:<code>Q<sub>o</sub><sup>t</sup></code>: observed value at time <code>t</code>
:<code>Q<sub>m</sub><sup>t</sup></code>: simulated value at time <code>t</code>
:<code>n</code>: Number of values
:<code><span style="text-decoration:overline;">Q<sub>o</sub></span></code>: observed average
:<code><span style="text-decoration:overline;">Q<sub>m</sub></span></code>: simulated average


mit
====Rating====
:<code>r</code>: Korrelationskoeffizient (<code>-1 &le; r &le; 1</code>)
{|cellpadding="5" cellspacing="0" border="0" class="standard stripes"
:<code>r²</code>: Bestimmtheitsmaß (<code>0 &le; r² &le; 1</code>)
|-
:<code>s<sub>o,m</sub></code>: Kovarianz
! Coefficient of determination !! Rating
:<code>s<sub>o</sub></code>: Standardabweichung der gemessenen Werte
|-
:<code>s<sub>m</sub></code>: Standardabweichung der simulierten Werte
| < 0.2 || unsatisfactory
:<code>Q<sub>o</sub><sup>t</sup></code>: gemessener Abfluss zum Zeitpunkt <code>t</code>
|-
:<code>Q<sub>m</sub><sup>t</sup></code>: simulierter Abfluss zum Zeitpunkt <code>t</code>
| 0.2 - 0.4 || satisfactory
:<code><span style="text-decoration:overline;">Q<sub>o</sub></span></code>: Mittelwert des gemessenen Abflusses
|-
:<code><span style="text-decoration:overline;">Q<sub>m</sub></span></code>: Mittelwert des simulierten Abflusses
| 0.4 - 0.6 || good
|-
| 0.6 - 0.8 || very good
|-
| > 0.8 || excellent
|}


===Nash-Sutcliffe Effizienz===
===Nash-Sutcliffe efficiency===
:<math>E = 1-\frac{\sum_{t=1}^T\left(Q_o^t-Q_m^t\right)^2}{\sum_{t=1}^T\left(Q_o^t-\overline{Q_o}\right)^2}</math> {{:Literatur:Nash-Sutcliffe 1970|}}
:<math>E = 1-\frac{\sum_{t=1}^T\left(Q_o^t-Q_m^t\right)^2}{\sum_{t=1}^T\left(Q_o^t-\overline{Q_o}\right)^2}</math> {{:Literatur:Nash-Sutcliffe 1970|}}


mit
with
:<code>E</code>: Nash-Sutcliffe Effizienz [-]
:<code>E</code>: Nash-Sutcliffe efficiency [-]
:<code><span style="text-decoration:overline;">Q<sub>o</sub></span></code>: Mittelwert des gemessenen Abflusses
:<code><span style="text-decoration:overline;">Q<sub>o</sub></span></code>: observed average
:<code>Q<sub>o</sub><sup>t</sup></code>: gemessener Abfluss zum Zeitpunkt <code>t</code>
:<code>Q<sub>o</sub><sup>t</sup></code>: observed value at time <code>t</code>
:<code>Q<sub>m</sub><sup>t</sup></code>: simulierter Abfluss zum Zeitpunkt <code>t</code>
:<code>Q<sub>m</sub><sup>t</sup></code>: simulated value at time <code>t</code>


<blockquote>
<blockquote>
Line 53: Line 78:
:&mdash; Wikipedia<ref>'''Wikipedia contributors''': "Nash-Sutcliffe efficiency coefficient," Wikipedia, The Free Encyclopedia, http://en.wikipedia.org/w/index.php?title=Nash-Sutcliffe_efficiency_coefficient&oldid=231196847 (accessed September 18, 2008). </ref>
:&mdash; Wikipedia<ref>'''Wikipedia contributors''': "Nash-Sutcliffe efficiency coefficient," Wikipedia, The Free Encyclopedia, http://en.wikipedia.org/w/index.php?title=Nash-Sutcliffe_efficiency_coefficient&oldid=231196847 (accessed September 18, 2008). </ref>


===Hydrologische Deviation===
===Logarithmic Nash-Sutcliffe efficiency===
:<math>D = 200 \cdot \frac{\sum_{t=1}^T{|Q_m^t - Q_o^t| \cdot Q_m^t}}{n \cdot {Q_{m,max}}^2}</math>
:<math>E,ln = 1-\frac{\sum_{t=1}^T\left(ln(Q_o^t+\epsilon)-ln(Q_m^t+\epsilon)\right)^2}{\sum_{t=1}^T\left(ln(Q_o^t)-\overline{ln(Q_o+\epsilon)}\right)^2}</math>
 
with
:<code>E,ln</code>: Logarithmic Nash-Sutcliffe efficiency [-]
:<code>Q<sub>o</sub><sup>t</sup></code>: observed value at time <code>t</code>
:<code>Q<sub>m</sub><sup>t</sup></code>: simulated value at time <code>t</code>
:<code>&epsilon;</code>: small constant set to 1% of the average value of <code>Q<sub>o</sub></code> as recommended by {{:Literatur:Pushpalatha_2012}}.
 
===Kling-Gupta efficiency===
:<math>\text{KGE} = 1 - \sqrt{ (r - 1)^2 + (\beta - 1)^2 + (\gamma - 1)^2 }</math>
:with
::<code>r</code>: correlation coefficient
::<code>&beta;</code>: bias ratio
::<code>&gamma;</code>: variability ratio
 
<code>-&infin; &le; KGE &le; 1</code>. Larger is better.
 
Reference: {{:Literatur:Kling_2012|Kling et al. 2012}}
 
===Hydrologic deviation===
:<math>D = 200 \cdot \frac{\sum_{t=1}^T{|Q_m^t - Q_o^t| \cdot Q_o^t}}{n \cdot {Q_{o,max}}^2}</math>
 
mit
:<code>D</code>: Hydrologic deviation [-]
:<code>Q<sub>o</sub><sup>t</sup></code>: observed value at time <code>t</code>
:<code>Q<sub>m</sub><sup>t</sup></code>: simulated value at time <code>t</code>
:<code>n</code>: Number of values
:<code>Q<sub>o,max</sub></code>: observed maximum


<blockquote>
<blockquote>
Die hydrologische Deviation kann verstanden werden als gewogene mittlere Abweichung, angegeben in Prozent des jeweiligen Spitzenabflusses. Bei völliger Übereinstimmung der beiden Kurven würde sich somit die Deviation zu Null ergeben; bei Vorhandensein der gemessenen Kurve (in Dreiecksform) und Nichtvorhandensein der gerechneten Kurve (alle Ordinaten gleich Null) ergäbe sich eine Deviation von 50,0 -- um nur zwei Extremfälle zu nennen.
[Die hydrologische Deviation] kann verstanden werden als gewogene mittlere Abweichung, angegeben in Prozent des jeweiligen Spitzenabflusses. Bei völliger Übereinstimmung der beiden Kurven würde sich somit die Deviation zu Null ergeben; bei Vorhandensein der gemessenen Kurve (in Dreiecksform) und Nichtvorhandensein der gerechneten Kurve (alle Ordinaten gleich Null) ergäbe sich eine Deviation von 50,0 &mdash; um nur zwei Extremfälle zu nennen.
</blockquote>
</blockquote>
:&mdash; {{:Literatur:Schultz_1968|Schultz (1968), S.53}}
:&mdash; {{:Literatur:Schultz_1968|Schultz (1968), S.53}}


==Hinweise==
====Rating====
Die beiden Zeitreihen werden vor der Analyse bereinigt, d.h. die Längen werden aufeinander zugeschnitten und alle nicht-gemeinsamen Stützstellen werden entfernt. Ausserdem werden auch alle Stützstellen entfernt, bei denen eine der Reihen einen NaN-Wert aufweist.
{|cellpadding="5" cellspacing="0" border="0" class="standard stripes"
|-
! Deviation !! Rating
|-
| 0 - 3 || very good
|-
| 3 - 10 || good
|-
| 10 - 18 || usable
|}
: &mdash; {{:Literatur:Schultz_1968}}
 
==Notes==
The time series being compared are cleaned before conducting the analysis, i.e. they are cut to each other's extents and all non-coincident nodes and nodes that have a NaN value in one of the time series are discarded.


==Literaturangaben==
==Literature==
<references/>
<references/>


[[Kategorie:Wave|G]]
[[Category:BlueM.Wave|G]]
[[Category:Analysis functions|G]]

Latest revision as of 23:32, 4 October 2023

Wave.png Wave | Download | Development

Description

Result chart for a GoodnessOfFit analysis with two simulated time series

GoodnessOfFit calculates various goodness of fit indicators for one or more "simulated" time series in relation to one "observed" time series.

Optionally, the analysis can be performed for individual hydrologic years.

The indicators "Volume error", "Nash-Sutcliffe efficiency", "Logarithmic Nash-Sutcliffe efficiency", "Kling-Gupta efficiency" and "Coefficient of correlation" are displayed in a radar chart. The full set of indicators is output to a result table.

Indicators

Volume error

[math]\displaystyle{ m = 100 \cdot \frac{\sum_{t=1}^T{(Q_m^t - Q_o^t)}}{\sum_{t=1}^T{Q_o^t}} }[/math]

with:

m: Volume error [%]
Qot: observed value at time t
Qmt: simulated value at time t

Sum of squared errors

[math]\displaystyle{ F^2 = \sum_{t=1}^T{\left(Q_o^t - Q_m^t\right)^2} }[/math]

with

: Sum of squared errors
Qot: observed value at time t
Qmt: simulated value at time t

Correlation coefficient / coefficient of determination

[math]\displaystyle{ r = \frac{s_{o,m}}{s_o \cdot s_m} }[/math]

with

[math]\displaystyle{ s_{o,m} = \frac{1}{n - 1} \sum_{t=1}^T{(Q_o^t - \overline{Q_o}) \cdot (Q_m^t - \overline{Q_m})} }[/math]
[math]\displaystyle{ s_o = \sqrt{\frac{1}{n - 1} \sum_{t=1}^T{(Q_o^t - \overline{Q_o})^2}} }[/math]
[math]\displaystyle{ s_m = \sqrt{\frac{1}{n - 1} \sum_{t=1}^T{(Q_m^t - \overline{Q_m})^2}} }[/math]

with

r: correlation coefficient (-1 ≤ r ≤ 1)
: coefficient of determination (0 ≤ r² ≤ 1)
so,m: covariance
so: standard deviation of observed values
sm: standard deviation of simulated values
Qot: observed value at time t
Qmt: simulated value at time t
n: Number of values
Qo: observed average
Qm: simulated average

Rating

Coefficient of determination Rating
< 0.2 unsatisfactory
0.2 - 0.4 satisfactory
0.4 - 0.6 good
0.6 - 0.8 very good
> 0.8 excellent

Nash-Sutcliffe efficiency

[math]\displaystyle{ E = 1-\frac{\sum_{t=1}^T\left(Q_o^t-Q_m^t\right)^2}{\sum_{t=1}^T\left(Q_o^t-\overline{Q_o}\right)^2} }[/math] [1]

with

E: Nash-Sutcliffe efficiency [-]
Qo: observed average
Qot: observed value at time t
Qmt: simulated value at time t

Nash-Sutcliffe efficiencies can range from -∞ to 1. An efficiency of 1 (E=1) corresponds to a perfect match of modeled discharge to the observed data. An efficiency of 0 (E=0) indicates that the model predictions are as accurate as the mean of the observed data, whereas an efficiency less than zero (-∞<E<0) occurs when the observed mean is a better predictor than the model. Essentially, the closer the model efficiency is to 1, the more accurate the model is.

— Wikipedia[2]

Logarithmic Nash-Sutcliffe efficiency

[math]\displaystyle{ E,ln = 1-\frac{\sum_{t=1}^T\left(ln(Q_o^t+\epsilon)-ln(Q_m^t+\epsilon)\right)^2}{\sum_{t=1}^T\left(ln(Q_o^t)-\overline{ln(Q_o+\epsilon)}\right)^2} }[/math]

with

E,ln: Logarithmic Nash-Sutcliffe efficiency [-]
Qot: observed value at time t
Qmt: simulated value at time t
ε: small constant set to 1% of the average value of Qo as recommended by Pushpalatha et al. (2012)[3].

Kling-Gupta efficiency

[math]\displaystyle{ \text{KGE} = 1 - \sqrt{ (r - 1)^2 + (\beta - 1)^2 + (\gamma - 1)^2 } }[/math]
with
r: correlation coefficient
β: bias ratio
γ: variability ratio

-∞ ≤ KGE ≤ 1. Larger is better.

Reference: Kling et al. 2012[4]

Hydrologic deviation

[math]\displaystyle{ D = 200 \cdot \frac{\sum_{t=1}^T{|Q_m^t - Q_o^t| \cdot Q_o^t}}{n \cdot {Q_{o,max}}^2} }[/math]

mit

D: Hydrologic deviation [-]
Qot: observed value at time t
Qmt: simulated value at time t
n: Number of values
Qo,max: observed maximum

[Die hydrologische Deviation] kann verstanden werden als gewogene mittlere Abweichung, angegeben in Prozent des jeweiligen Spitzenabflusses. Bei völliger Übereinstimmung der beiden Kurven würde sich somit die Deviation zu Null ergeben; bei Vorhandensein der gemessenen Kurve (in Dreiecksform) und Nichtvorhandensein der gerechneten Kurve (alle Ordinaten gleich Null) ergäbe sich eine Deviation von 50,0 — um nur zwei Extremfälle zu nennen.

— Schultz (1968), S.53[5]

Rating

Deviation Rating
0 - 3 very good
3 - 10 good
10 - 18 usable
— Schultz (1968)[5]

Notes

The time series being compared are cleaned before conducting the analysis, i.e. they are cut to each other's extents and all non-coincident nodes and nodes that have a NaN value in one of the time series are discarded.

Literature

  1. Nash, J. E. and Sutcliffe, J. V. (1970): River flow forecasting through conceptual models part I — A discussion of principles, Journal of Hydrology, 10 (3), 282–290, DOI:10.1016/0022-1694(70)90255-6.
  2. Wikipedia contributors: "Nash-Sutcliffe efficiency coefficient," Wikipedia, The Free Encyclopedia, http://en.wikipedia.org/w/index.php?title=Nash-Sutcliffe_efficiency_coefficient&oldid=231196847 (accessed September 18, 2008).
  3. Pushpalatha, Raji, Perrin, Charles, Le Moine, Nicolas, Andréassian, Vazken (2012): A review of efficiency criteria suitable for evaluating low-flow simulations, Journal of Hydrology, Volumes 420–421, 2012, Pages 171-182, ISSN 0022-1694, https://doi.org/10.1016/j.jhydrol.2011.11.055.
  4. Kling, H., Fuchs, M., Paulin, M. (2012): Runoff conditions in the upper Danube basin under an ensemble of climate change scenarios, Journal of Hydrology, Volumes 424–425, Pages 264-277, ISSN 0022-1694, https://doi.org/10.1016/j.jhydrol.2012.01.011.
  5. 5.0 5.1 Schultz, G. A. (1968): Bestimmung theoretischer Abflußganglinien durch elektronische Berechnung von Niederschlagskonzentration und Retention (HYREUN-Verfahren), Versuchsanstalt für Wasserbau der Technischen Hochschule München, Bericht Nr. 11, [IHWB-Signatur: 10 WBW 11]