{"id":1857,"date":"2024-10-20T12:11:15","date_gmt":"2024-10-20T16:11:15","guid":{"rendered":"https:\/\/pressbooks.bccampus.ca\/eweguide\/?post_type=chapter&#038;p=1857"},"modified":"2024-10-20T12:14:27","modified_gmt":"2024-10-20T16:14:27","slug":"monte-carlo","status":"publish","type":"chapter","link":"https:\/\/pressbooks.bccampus.ca\/eweguide\/chapter\/monte-carlo\/","title":{"raw":"Monte Carlo","rendered":"Monte Carlo"},"content":{"raw":"<div style=\"font-weight: 400\">\r\n\r\nEcosim includes a Monte Carlo approach to search for Ecopath parameter-combinations that improve the fit of the model totime series data (i.e., reduce the weighted sum of squared deviations, SS; see Time series fitting in Ecosim). The Monte Carlo approach can also be used to test for sensitivity of Ecosim\u2019s outputs to Ecopath input parameters.\r\n\r\nTo use the Monte Carlo interface, open the <em>Monte Carlo run <\/em>form (<em>Ecosim &gt; Output &gt; Tools &gt; Monte Carlo runs)<\/em>.\r\n<h2>Monte Carlo inputs<\/h2>\r\n<h3>Number of simulation trials<\/h3>\r\nSet the number of trials. Each trial represents an Ecosim run with a randomly-selected set of Ecopath parameters (B, P\/B, EE, BA) foreach group. Parameters are drawn from a uniform distribution centred on the base Ecopath value with coefficient of variation (c.v.), which may be derived from pedigree.\r\n<h3>Show biomass trajectories on Ecosim plot<\/h3>\r\nDisplays Ecosim results on the <em>Biomass plot <\/em>tab in the lower panel of the form.\r\n<h3>Apply time series<\/h3>\r\nOpens a dialogue box where you can apply time series that have been loaded into Ecosim (i.e., you do not have to return to the Time series form to apply time series). You can also remove time series from the analysis using this dialogue box. See Time series for moreinformation about loading time series in Ecosim.\r\n\r\n<\/div>\r\n<span style=\"font-family: 'Cormorant Garamond', serif;font-size: 1.42425em;font-style: italic\">B, P\/B, EE, BA<\/span>\r\n<div style=\"font-weight: 400\">\r\n\r\nThe Ecopath parameters tabs in the lower panel show the mean, lower limit and upper limit of the distribution used to draw randomvalues for B, P\/B, EE and BA for each group in the model. The mean of the distribution is set as the base Ecopath value of the parameter. Users can set the coefficient of variation (c.v.) which is then used to calculate the upper and lower limits of the distribution (upper limit = mean + 2 * c.v. * mean; lower limit = mean - 2 * c.v. * mean). For parameters you do not wish to change, set the c.v. to zero.\r\n\r\nNote that the parameter combinations resulting from the random draw must result in a balanced Ecopath model (i.e., before running each trial, Ecosim keeps drawing new sets of parameters until a balanced Ecopath model is achieved). This means that the range of the parameter values actually used may be smaller than that set by the user. Users should check the range of the input parameters that wereactually used in the trials in the output .csv file(see below).\r\n<h2>Monte Carlo outputs<\/h2>\r\n<h3>Trial<\/h3>\r\nTracks the current trial number.\r\n<h3>Ecopath runs<\/h3>\r\nTracks the number of parameter-combinations tried until a balanced Ecopath model is achieved. Note that the maximum number of triesis 2000. If a trial reaches 2000 Ecopath runs then a balanced model could not be achieved with any parameter combinations and the simulation trial is run with an unbalanced model.\r\n\r\nThis may indicate that the cv's have been set too large, reducing the likelihood of finding parameter values that combine to produce a balanced model.\r\n<h3>SS measures<\/h3>\r\nAt the top right-hand side of the form, the original (i.e., before the simulation) weighted sum of squared deviations (SS) is shown.Current SS shows the value of SS achieved for the current trial. Best SS shows the lowest SS achieved for any of the runs.\r\n<h3>Data from best fitting trial<\/h3>\r\nAfter all trials have been completed, the parameter-values that resulted in the lowest SS are shown on the second-last tab in the lower panel of the form. When the trials are complete, the software automatically displays this tab.\r\n<h3>Biomass plot<\/h3>\r\nIf the <em>Show biomass trajectories <\/em>on Ecosim plot box is checked, biomass trajectories are displayed for each trial on the <em>Biomass plot <\/em>tab. This tab is automatically displayed when you click <em>Run trials<\/em>.\r\n\r\nYou can choose to overlay trajectories for each trial, switch from monthly to annual output and scale the results using check boxes.<em>Show\/hide groups<\/em>, highlighting of trajectories for a single group and viewing of layers is also enabled, with the same functionality as for the Run Ecosim form.\r\n\r\nThe <em>Apply best fits <\/em>button applies the parameter-values that resulted in the lowest SS (shown on the <em>Data from best fitting trial <\/em>tab) to your Ecopath model (i.e., overwrites the original values).\r\n<div class=\"textbox shaded\">\r\n<p style=\"font-weight: 400\">Warning: it is a good idea to save a backup of your model using <em>Save as <\/em>on the File menu before you overwrite your original parameters using <em>Apply best fits<\/em>!<\/p>\r\n\r\n<\/div>\r\n<\/div>\r\n&nbsp;\r\n<div>\r\n<div class=\"textbox shaded\">\r\n\r\nAttribution\r\n\r\nThis chapter is in part adapted from the unpublished EwE User Guide: Christensen V, C Walters, D Pauly, R Forrest. Ecopath with Ecosim. User Guide. November 2008.\r\n\r\n<\/div>\r\n&nbsp;\r\n\r\n<\/div>","rendered":"<div style=\"font-weight: 400\">\n<p>Ecosim includes a Monte Carlo approach to search for Ecopath parameter-combinations that improve the fit of the model totime series data (i.e., reduce the weighted sum of squared deviations, SS; see Time series fitting in Ecosim). The Monte Carlo approach can also be used to test for sensitivity of Ecosim\u2019s outputs to Ecopath input parameters.<\/p>\n<p>To use the Monte Carlo interface, open the <em>Monte Carlo run <\/em>form (<em>Ecosim &gt; Output &gt; Tools &gt; Monte Carlo runs)<\/em>.<\/p>\n<h2>Monte Carlo inputs<\/h2>\n<h3>Number of simulation trials<\/h3>\n<p>Set the number of trials. Each trial represents an Ecosim run with a randomly-selected set of Ecopath parameters (B, P\/B, EE, BA) foreach group. Parameters are drawn from a uniform distribution centred on the base Ecopath value with coefficient of variation (c.v.), which may be derived from pedigree.<\/p>\n<h3>Show biomass trajectories on Ecosim plot<\/h3>\n<p>Displays Ecosim results on the <em>Biomass plot <\/em>tab in the lower panel of the form.<\/p>\n<h3>Apply time series<\/h3>\n<p>Opens a dialogue box where you can apply time series that have been loaded into Ecosim (i.e., you do not have to return to the Time series form to apply time series). You can also remove time series from the analysis using this dialogue box. See Time series for moreinformation about loading time series in Ecosim.<\/p>\n<\/div>\n<p><span style=\"font-family: 'Cormorant Garamond', serif;font-size: 1.42425em;font-style: italic\">B, P\/B, EE, BA<\/span><\/p>\n<div style=\"font-weight: 400\">\n<p>The Ecopath parameters tabs in the lower panel show the mean, lower limit and upper limit of the distribution used to draw randomvalues for B, P\/B, EE and BA for each group in the model. The mean of the distribution is set as the base Ecopath value of the parameter. Users can set the coefficient of variation (c.v.) which is then used to calculate the upper and lower limits of the distribution (upper limit = mean + 2 * c.v. * mean; lower limit = mean &#8211; 2 * c.v. * mean). For parameters you do not wish to change, set the c.v. to zero.<\/p>\n<p>Note that the parameter combinations resulting from the random draw must result in a balanced Ecopath model (i.e., before running each trial, Ecosim keeps drawing new sets of parameters until a balanced Ecopath model is achieved). This means that the range of the parameter values actually used may be smaller than that set by the user. Users should check the range of the input parameters that wereactually used in the trials in the output .csv file(see below).<\/p>\n<h2>Monte Carlo outputs<\/h2>\n<h3>Trial<\/h3>\n<p>Tracks the current trial number.<\/p>\n<h3>Ecopath runs<\/h3>\n<p>Tracks the number of parameter-combinations tried until a balanced Ecopath model is achieved. Note that the maximum number of triesis 2000. If a trial reaches 2000 Ecopath runs then a balanced model could not be achieved with any parameter combinations and the simulation trial is run with an unbalanced model.<\/p>\n<p>This may indicate that the cv&#8217;s have been set too large, reducing the likelihood of finding parameter values that combine to produce a balanced model.<\/p>\n<h3>SS measures<\/h3>\n<p>At the top right-hand side of the form, the original (i.e., before the simulation) weighted sum of squared deviations (SS) is shown.Current SS shows the value of SS achieved for the current trial. Best SS shows the lowest SS achieved for any of the runs.<\/p>\n<h3>Data from best fitting trial<\/h3>\n<p>After all trials have been completed, the parameter-values that resulted in the lowest SS are shown on the second-last tab in the lower panel of the form. When the trials are complete, the software automatically displays this tab.<\/p>\n<h3>Biomass plot<\/h3>\n<p>If the <em>Show biomass trajectories <\/em>on Ecosim plot box is checked, biomass trajectories are displayed for each trial on the <em>Biomass plot <\/em>tab. This tab is automatically displayed when you click <em>Run trials<\/em>.<\/p>\n<p>You can choose to overlay trajectories for each trial, switch from monthly to annual output and scale the results using check boxes.<em>Show\/hide groups<\/em>, highlighting of trajectories for a single group and viewing of layers is also enabled, with the same functionality as for the Run Ecosim form.<\/p>\n<p>The <em>Apply best fits <\/em>button applies the parameter-values that resulted in the lowest SS (shown on the <em>Data from best fitting trial <\/em>tab) to your Ecopath model (i.e., overwrites the original values).<\/p>\n<div class=\"textbox shaded\">\n<p style=\"font-weight: 400\">Warning: it is a good idea to save a backup of your model using <em>Save as <\/em>on the File menu before you overwrite your original parameters using <em>Apply best fits<\/em>!<\/p>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<div>\n<div class=\"textbox shaded\">\n<p>Attribution<\/p>\n<p>This chapter is in part adapted from the unpublished EwE User Guide: Christensen V, C Walters, D Pauly, R Forrest. Ecopath with Ecosim. User Guide. November 2008.<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<\/div>\n","protected":false},"author":1909,"menu_order":13,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-1857","chapter","type-chapter","status-publish","hentry"],"part":441,"_links":{"self":[{"href":"https:\/\/pressbooks.bccampus.ca\/eweguide\/wp-json\/pressbooks\/v2\/chapters\/1857","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.bccampus.ca\/eweguide\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.bccampus.ca\/eweguide\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/eweguide\/wp-json\/wp\/v2\/users\/1909"}],"version-history":[{"count":2,"href":"https:\/\/pressbooks.bccampus.ca\/eweguide\/wp-json\/pressbooks\/v2\/chapters\/1857\/revisions"}],"predecessor-version":[{"id":1859,"href":"https:\/\/pressbooks.bccampus.ca\/eweguide\/wp-json\/pressbooks\/v2\/chapters\/1857\/revisions\/1859"}],"part":[{"href":"https:\/\/pressbooks.bccampus.ca\/eweguide\/wp-json\/pressbooks\/v2\/parts\/441"}],"metadata":[{"href":"https:\/\/pressbooks.bccampus.ca\/eweguide\/wp-json\/pressbooks\/v2\/chapters\/1857\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.bccampus.ca\/eweguide\/wp-json\/wp\/v2\/media?parent=1857"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/eweguide\/wp-json\/pressbooks\/v2\/chapter-type?post=1857"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/eweguide\/wp-json\/wp\/v2\/contributor?post=1857"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/eweguide\/wp-json\/wp\/v2\/license?post=1857"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}