Parfor vs For: Different Solutions
Show older comments
Hi, estimate function comes up with different results when we use it in for and parfor loops with ARIMA models having large parameters such as AR> 6 and MA>5. We use fmincon and change the tolerances (made it the same in each cases), and then observe that depending on the tolerance values, the results may coincide (but not in all cases). In order to understand if for or parfor gives the " correct" (more reliable) result, we give the ARIMA models to Economic Modeler. The results of the modeler are the same with results that we find by using for loop with default parameters. When we have examined each iterations of fmincon (used in estimate function), the algorithms do not stop at the same iteration even though the tolerance values have been the same (when either default or given by us). In parfor case, the algorithm iterates more and comes up with a result having higher objective value, namely, maximum likelihood, where it is a minimization problem.
In short: we would like to understand what causes that parfor and for loops come up with different results and how we can be sure that they give the same results.
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!