<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									General Discussion - NM DEV Forum				            </title>
            <link>https://nm.dev/forums/nmdev-discussion/</link>
            <description>NM DEV Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Sat, 11 Apr 2026 01:26:17 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>How to calculate the Akaike Information Criterion (AIC)</title>
                        <link>https://nm.dev/forums/nmdev-discussion/how-to-calculate-the-akaike-information-criterion-aic/</link>
                        <pubDate>Tue, 30 Jul 2024 16:51:25 +0000</pubDate>
                        <description><![CDATA[In below code I return the &quot;pValue&quot; in the &quot;AugmentedDickeyFuller&quot;. Now we can use different LagOrder parameters where it is important to choose the &quot;best&quot; possible lagOrder to return as acc...]]></description>
                        <content:encoded><![CDATA[<p>In below code I return the "pValue" in the "AugmentedDickeyFuller". <br />Now we can use different LagOrder parameters where it is important to choose the "best" possible lagOrder to return as accurate "pValue" as possible.<br /><br />Normally a good way to determine what LagOrder value to choose is by calculate the <br /><strong>Akaike Information Criterion (AIC)</strong>.<br /><br />Where the lowest found AIC would be a good pValue to choose.<br /><br />I am not sure how to calculate the AIC with the library in this context?<br />Below line is just pseudo code and that function do not exist but show the intent.<br /><br />Thank you!</p>
<pre contenteditable="false">CalculateAIC(statistic, lagOrder)</pre>
<pre contenteditable="false">TrendType P_1 = TrendType.CONSTANT;
ADFDistribution dist = P_1.getDistribution(array_MSFT.Length);

double minAIC = double.MaxValue;
int bestLagOrder = 0;

int maxLagOrder = 20;
for (int lagOrder = 0; lagOrder &lt;= maxLagOrder; lagOrder++) {
    AugmentedDickeyFuller ADFtest = new AugmentedDickeyFuller(array_MSFT, P_1, lagOrder, dist);
    double pValue = ADFtest.pValue();
    double statistic = ADFtest.statistics();

    //How to Implement AIC calculation? (Pseudo Code)
    double aic = CalculateAIC(statistic, lagOrder); 
    
    if (aic &lt; minAIC) {
        minAIC = aic;
        bestLagOrder = lagOrder;
    }
}</pre>]]></content:encoded>
						                            <category domain="https://nm.dev/forums/nmdev-discussion/">General Discussion</category>                        <dc:creator>Anonymous</dc:creator>
                        <guid isPermaLink="true">https://nm.dev/forums/nmdev-discussion/how-to-calculate-the-akaike-information-criterion-aic/</guid>
                    </item>
				                    <item>
                        <title>How to declare ADFDistribution for AugmentedDickeyFuller in C# code</title>
                        <link>https://nm.dev/forums/nmdev-discussion/how-to-declare-adfdistribution-for-augmenteddickeyfuller-in-c-code/</link>
                        <pubDate>Mon, 29 Jul 2024 01:06:42 +0000</pubDate>
                        <description><![CDATA[Hello,I am trying to understand how to create the: AugmentedDickeyFullerThe parameter I have problem to declare is the below ADFDistribution
ADFDistribution ADF_dist
How to implement that ...]]></description>
                        <content:encoded><![CDATA[<p>Hello,<br /><br />I am trying to understand how to create the: AugmentedDickeyFuller<br /><br />The parameter I have problem to declare is the below ADFDistribution</p>
<pre contenteditable="false">ADFDistribution ADF_dist</pre>
<p><br /><br />How to implement that correctly for this C# code?</p>
<p>Thank you!<br /><br /></p>
<pre contenteditable="false">            double[] array_MSFT = new double { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
            int lagOrder = 0;
            ADFDistribution ADF_dist = new ???
            AugmentedDickeyFuller ADFtest = new AugmentedDickeyFuller(array_MSFT, TrendType.CONSTANT, lagOrder, ADF_dist);

            double pValue = ADFtest.pValue();
            double statistic = ADFtest.statistics();
            MessageBox.Show(pValue + "__" + statistic);</pre>]]></content:encoded>
						                            <category domain="https://nm.dev/forums/nmdev-discussion/">General Discussion</category>                        <dc:creator>Anonymous</dc:creator>
                        <guid isPermaLink="true">https://nm.dev/forums/nmdev-discussion/how-to-declare-adfdistribution-for-augmenteddickeyfuller-in-c-code/</guid>
                    </item>
				                    <item>
                        <title>Using the library in an open source project</title>
                        <link>https://nm.dev/forums/nmdev-discussion/using-the-library-in-an-open-source-project/</link>
                        <pubDate>Sun, 19 Feb 2023 12:12:16 +0000</pubDate>
                        <description><![CDATA[I&#039;m the main developer of an open source algo-trading platform and SuanShu or NMDev seems to be a good library to base some more advanced strategies upon. As far as I can tell, only SuanShu ...]]></description>
                        <content:encoded><![CDATA[<p>I'm the main developer of an open source algo-trading platform and SuanShu or NMDev seems to be a good library to base some more advanced strategies upon. <br /><br />As far as I can tell, only SuanShu (2012 release as available on GitHub) comes under the open source Apace license that would allow me to modify and redistribute it. Already great that this version has been open sourced 👍. <br /><br />NM Dev om the other hand requires a commercial license by the <strong>end user</strong>. That would prohibit me from releasing my own software for free since if I include nm.dev library (even if I pay for it and only include the binary), I cannot redistribute it.<br /><br />Any insights (especially if I'm wrong), would be very welcome? Thanks in advance for any help!!!</p>
<p><br />For those interested in the open source algo-trading project, checkout <a href="http://roboquant" target="_blank" rel="noopener">http://roboquant.org</a> <br /><br /></p>
<p>Kind regards,</p>
<p>Peter</p>]]></content:encoded>
						                            <category domain="https://nm.dev/forums/nmdev-discussion/">General Discussion</category>                        <dc:creator>Anonymous</dc:creator>
                        <guid isPermaLink="true">https://nm.dev/forums/nmdev-discussion/using-the-library-in-an-open-source-project/</guid>
                    </item>
				                    <item>
                        <title>nmdev, the numerical method Java library, version 1.2.4 has been released</title>
                        <link>https://nm.dev/forums/nmdev-discussion/nmdev-the-numerical-method-java-library-version-1-2-4-has-been-released/</link>
                        <pubDate>Fri, 04 Nov 2022 10:39:13 +0000</pubDate>
                        <description><![CDATA[nmdev version 1.2.4 has been released. This is a minor version update and small bug fixes.]]></description>
                        <content:encoded><![CDATA[<p>nmdev version 1.2.4 has been released. This is a minor version update and small bug fixes.</p>]]></content:encoded>
						                            <category domain="https://nm.dev/forums/nmdev-discussion/">General Discussion</category>                        <dc:creator>haksunli</dc:creator>
                        <guid isPermaLink="true">https://nm.dev/forums/nmdev-discussion/nmdev-the-numerical-method-java-library-version-1-2-4-has-been-released/</guid>
                    </item>
				                    <item>
                        <title>Purpose of buying Numerical Methods using java....</title>
                        <link>https://nm.dev/forums/nmdev-discussion/purpose-of-buying-numerical-methods-using-java/</link>
                        <pubDate>Thu, 15 Sep 2022 23:17:32 +0000</pubDate>
                        <description><![CDATA[Hi
What&#039;t the purpose of buying the book &#039;Numerical Methods using java...&#039; when the free version is a different librarie which isn&#039;t usable (chapter 5) or when the nmdev-1.0.0 download has ...]]></description>
                        <content:encoded><![CDATA[<p>Hi</p>
<p>What't the purpose of buying the book 'Numerical Methods using java...' when the free version (<a href="https://github.com/nmltd/SuanShu/tree/master/20120606%20src/src/main/java/com/numericalmethod/suanshu" target="_blank" rel="noopener">https://github.com/nmltd/SuanShu/tree/master/20120606%20src/src/main/java/com/numericalmethod/suanshu</a>) is a different librarie which isn't usable (chapter 5) or when the nmdev-1.0.0 download has a licence which is expired at 2020-05-12</p>
<p>Can you give a new trial-licence for nmdev-1.0.0</p>
<p>Kind regards</p>
<p>Arnoud</p>]]></content:encoded>
						                            <category domain="https://nm.dev/forums/nmdev-discussion/">General Discussion</category>                        <dc:creator>citroenie</dc:creator>
                        <guid isPermaLink="true">https://nm.dev/forums/nmdev-discussion/purpose-of-buying-numerical-methods-using-java/</guid>
                    </item>
				                    <item>
                        <title>How to be sure that two series are cointegrated with CointegrationMLE and JohansenTest</title>
                        <link>https://nm.dev/forums/nmdev-discussion/how-to-be-sure-that-two-series-are-cointegrated-with-cointegrationmle-and-johansentest/</link>
                        <pubDate>Tue, 28 Jun 2022 08:58:39 +0000</pubDate>
                        <description><![CDATA[Hello everyone!I am working on my current java-based project where i have to do assumption is two series cointegrated or not. And i faced with problem that there are not enough duscussions a...]]></description>
                        <content:encoded><![CDATA[<p>Hello everyone!<br />I am working on my current java-based project where i have to do assumption is two series cointegrated or not. And i faced with problem that there are not enough duscussions and community-envolving about nm-dev library.<br />If i used Engle-Granger cointegration test, then i just calculated P-value, T-value, C-value. So i can apply only one condition to bu sure series are cointegrated if <strong>(P-value &lt; 0.5 &amp;&amp; T-value &lt; C-value)</strong>.<br />It is very easy to do with python library "statsmodels" just importing "coint" function that returns all three variables above.</p>
<p>So i need your helping with better understanding how Johanson test works and how can i apply it to my series to do exactly conclusion about cointegration.</p>
<p> </p>
<p>So, i have initialized an instance of the class CointegrationMLE</p>
<pre contenteditable="false">CointegrationMLE cointegrationMLE = new CointegrationMLE(timeSeries, false);</pre>
<p> </p>
<p>And i have numerous parameters, such as</p>
<pre contenteditable="false">n: 198
rank: 2
eigen values: 
alpha: 2x2
 
 -0,087240, 0,001106,
 0,175470, 0,002975,
1-th cointegrating factor: 
2-th cointegrating factor: [1,000000, -0,051580</pre>
<p> </p>
<p>Are these parameters sufficient to make an assumption about series cointegration? And what is the final rule for it?  Do I need to additionally use JohansenTest?</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://nm.dev/forums/nmdev-discussion/">General Discussion</category>                        <dc:creator>Anonymous</dc:creator>
                        <guid isPermaLink="true">https://nm.dev/forums/nmdev-discussion/how-to-be-sure-that-two-series-are-cointegrated-with-cointegrationmle-and-johansentest/</guid>
                    </item>
							        </channel>
        </rss>
		