<?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>
									NM DEV Forum - Recent Posts				            </title>
            <link>https://nm.dev/forums/</link>
            <description>NM DEV Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 10 Mar 2026 01:16:27 +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/#post-84</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/"></category>                        <dc:creator>Anonymous</dc:creator>
                        <guid isPermaLink="true">https://nm.dev/forums/nmdev-discussion/how-to-calculate-the-akaike-information-criterion-aic/#post-84</guid>
                    </item>
				                    <item>
                        <title>RE: 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/#post-82</link>
                        <pubDate>Tue, 30 Jul 2024 16:07:47 +0000</pubDate>
                        <description><![CDATA[I think I found a way like this:
ADFDistribution dist = TrendType.NO_CONSTANT.getDistribution(data.Length);
Thank you!]]></description>
                        <content:encoded><![CDATA[<p>I think I found a way like this:<br /><br /></p>
<pre contenteditable="false">ADFDistribution dist = TrendType.NO_CONSTANT.getDistribution(data.Length);</pre>
<p>Thank you!</p>]]></content:encoded>
						                            <category domain="https://nm.dev/forums/"></category>                        <dc:creator>Anonymous</dc:creator>
                        <guid isPermaLink="true">https://nm.dev/forums/nmdev-discussion/how-to-declare-adfdistribution-for-augmenteddickeyfuller-in-c-code/#post-82</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/#post-81</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/"></category>                        <dc:creator>Anonymous</dc:creator>
                        <guid isPermaLink="true">https://nm.dev/forums/nmdev-discussion/how-to-declare-adfdistribution-for-augmenteddickeyfuller-in-c-code/#post-81</guid>
                    </item>
				                    <item>
                        <title>RE: Using the library in an open source project</title>
                        <link>https://nm.dev/forums/nmdev-discussion/using-the-library-in-an-open-source-project/#post-80</link>
                        <pubDate>Tue, 21 Feb 2023 11:36:50 +0000</pubDate>
                        <description><![CDATA[@haksunli thanks for the info and will look a bit more into it. Noticed indeed that Matrix operations in SuanShu have some inherit performance overhead (access patterns cause some level of i...]]></description>
                        <content:encoded><![CDATA[<p>@haksunli thanks for the info and will look a bit more into it. <br /><br />Noticed indeed that Matrix operations in SuanShu have some inherit performance overhead (access patterns cause some level of indirections), but nothing that is too hard to fix for me I would imagine. Especially since mostly interested in DenseMatrix and the abstraction in SuanShu allow for easy refactoring. Of course, bugs are very undesirable. </p>]]></content:encoded>
						                            <category domain="https://nm.dev/forums/"></category>                        <dc:creator>Anonymous</dc:creator>
                        <guid isPermaLink="true">https://nm.dev/forums/nmdev-discussion/using-the-library-in-an-open-source-project/#post-80</guid>
                    </item>
				                    <item>
                        <title>RE: Using the library in an open source project</title>
                        <link>https://nm.dev/forums/nmdev-discussion/using-the-library-in-an-open-source-project/#post-79</link>
                        <pubDate>Mon, 20 Feb 2023 04:24:06 +0000</pubDate>
                        <description><![CDATA[Peter,
Thank you for reaching out.
The open-source version of SuanShu is rather old. It was our first attempt at making a comprehensive library. It has subtle bugs and performance issues, ...]]></description>
                        <content:encoded><![CDATA[<p>Peter,</p>
<p>Thank you for reaching out.</p>
<p>The open-source version of SuanShu is rather old. It was our first attempt at making a comprehensive library. It has subtle bugs and performance issues, e.g., matrix multiplication, that has since been improved in the new nm dev library.</p>
<p>NM Dev supports a library of trading strategies that may be of interest to you. They are in the packages prefixed by "tech.nmfin".</p>
<p>The models are supported by NM FinTech.</p>
<p>https://nmfin.tech/products/algoquant/quantitative-trading-models/</p>
<p> </p>
<p>If your business model is only open-source and free, maybe you can use SuanShu in your product.</p>
<p>If you have a for-fee model, maybe there is a synergy between nmdev and the quantitative trading models in our library.</p>
<p> </p>
<p> </p>
<p> </p>
<div id="wpfa-34359" class="wpforo-attached-file"><a class="wpforo-default-attachment" href="//nm.dev/wp-content/uploads/wpforo/default_attachments/1676867046-tech_nmfin.png" target="_blank" title="tech_nmfin.png"><i class="fas fa-paperclip"></i>&nbsp;tech_nmfin.png</a></div>]]></content:encoded>
						                            <category domain="https://nm.dev/forums/"></category>                        <dc:creator>haksunli</dc:creator>
                        <guid isPermaLink="true">https://nm.dev/forums/nmdev-discussion/using-the-library-in-an-open-source-project/#post-79</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/#post-78</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/"></category>                        <dc:creator>Anonymous</dc:creator>
                        <guid isPermaLink="true">https://nm.dev/forums/nmdev-discussion/using-the-library-in-an-open-source-project/#post-78</guid>
                    </item>
				                    <item>
                        <title>RE: quantitative analyst</title>
                        <link>https://nm.dev/forums/jobs/quantitative-analyst/#post-71</link>
                        <pubDate>Tue, 03 Jan 2023 09:11:44 +0000</pubDate>
                        <description><![CDATA[bawcxzwaczxdawdas]]></description>
                        <content:encoded><![CDATA[<p>bawcxzwaczxdawdas</p>]]></content:encoded>
						                            <category domain="https://nm.dev/forums/"></category>                        <dc:creator>Anonymous</dc:creator>
                        <guid isPermaLink="true">https://nm.dev/forums/jobs/quantitative-analyst/#post-71</guid>
                    </item>
				                    <item>
                        <title>RE: quantitative analyst</title>
                        <link>https://nm.dev/forums/jobs/quantitative-analyst/#post-70</link>
                        <pubDate>Tue, 03 Jan 2023 09:11:36 +0000</pubDate>
                        <description><![CDATA[bracxzdwadzcxz]]></description>
                        <content:encoded><![CDATA[<p>bracxzdwadzcxz</p>]]></content:encoded>
						                            <category domain="https://nm.dev/forums/"></category>                        <dc:creator>Anonymous</dc:creator>
                        <guid isPermaLink="true">https://nm.dev/forums/jobs/quantitative-analyst/#post-70</guid>
                    </item>
				                    <item>
                        <title>RE: quantitative analyst</title>
                        <link>https://nm.dev/forums/jobs/quantitative-analyst/#post-69</link>
                        <pubDate>Tue, 03 Jan 2023 09:11:27 +0000</pubDate>
                        <description><![CDATA[dadaczvw]]></description>
                        <content:encoded><![CDATA[<p>dadaczvw</p>]]></content:encoded>
						                            <category domain="https://nm.dev/forums/"></category>                        <dc:creator>Anonymous</dc:creator>
                        <guid isPermaLink="true">https://nm.dev/forums/jobs/quantitative-analyst/#post-69</guid>
                    </item>
				                    <item>
                        <title>RE: quantitative analyst</title>
                        <link>https://nm.dev/forums/jobs/quantitative-analyst/#post-68</link>
                        <pubDate>Tue, 03 Jan 2023 09:11:20 +0000</pubDate>
                        <description><![CDATA[Forum contains no unread posts]]></description>
                        <content:encoded><![CDATA[<p><span> Forum contains no unread posts</span></p>]]></content:encoded>
						                            <category domain="https://nm.dev/forums/"></category>                        <dc:creator>Anonymous</dc:creator>
                        <guid isPermaLink="true">https://nm.dev/forums/jobs/quantitative-analyst/#post-68</guid>
                    </item>
							        </channel>
        </rss>
		