<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Correlation with timeshift in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/m-p/2488723#M101704</link>
    <description>&lt;P&gt;Maybe what you need is a Time Series instead.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What exactly are you trying to achieve? What business question are you answering?&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2024 13:07:35 GMT</pubDate>
    <dc:creator>igoralcantara</dc:creator>
    <dc:date>2024-10-23T13:07:35Z</dc:date>
    <item>
      <title>Correlation with timeshift</title>
      <link>https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/m-p/2488146#M101629</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;I want to calculate the correlation of two variables but I know that there exists a timeshift/delay between them.&lt;BR /&gt;An example data is the following:&lt;/P&gt;
&lt;TABLE width="209"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="75"&gt;DAY&lt;/TD&gt;
&lt;TD width="70"&gt;VAR1&lt;/TD&gt;
&lt;TD width="64"&gt;VAR2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;01/01/2002&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;02/01/2002&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;03/01/2002&lt;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;TD&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&l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t;TD&gt;25/01/2002&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pdimitrakis_0-1729505527234.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173197i9DA533042E8E68BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pdimitrakis_0-1729505527234.png" alt="pdimitrakis_0-1729505527234.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I use the traditional correlation, the outcome is 0.67 but i know that if i shift the first var by one day, the correlation will be 1.&lt;BR /&gt;&lt;BR /&gt;Is there a way to calculate the "real" correlation (meaning 1) without knowing the time shift?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Panagiotis&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 10:14:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/m-p/2488146#M101629</guid>
      <dc:creator>pdimitrakis</dc:creator>
      <dc:date>2024-10-21T10:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation with timeshift</title>
      <link>https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/m-p/2488213#M101642</link>
      <description>&lt;P&gt;That sounds like a topic for you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/29224"&gt;@igoralcantara&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Mark Costa&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 13:59:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/m-p/2488213#M101642</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2024-10-21T13:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation with timeshift</title>
      <link>https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/m-p/2488219#M101643</link>
      <description>&lt;P&gt;In that case I would use a technique called Cross-Correlation. You can also find the Optimal Shift, the shift that produces the highest correlation.&lt;/P&gt;
&lt;P&gt;This is easily done in Python. In Qlik Script is not so simple, but in the UI, there are some ways. From the top of my head, remembering when I did this years ago, you can try something like:&lt;BR /&gt;&lt;BR /&gt;Use Above(VAR1, 1) to shift VAR1 by one day backward.&lt;BR /&gt;Calculate the correlation between this shifted VAR1 and VAR2.&lt;BR /&gt;Repeat for different shifts until you find the maximum correlation.&lt;BR /&gt;&lt;BR /&gt;This explains what a cross-correlation is:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.investopedia.com/terms/c/crosscorrelation.asp" target="_blank"&gt;What Is Cross-Correlation? Definition, How It's Used, and Example&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 14:11:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/m-p/2488219#M101643</guid>
      <dc:creator>igoralcantara</dc:creator>
      <dc:date>2024-10-21T14:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation with timeshift</title>
      <link>https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/m-p/2488590#M101696</link>
      <description>&lt;P&gt;Thanks a lot!&lt;BR /&gt;&lt;BR /&gt;The Above() function works great in both the visualisation for visual overview and the correlation evaluation.&lt;/P&gt;
&lt;P&gt;If the time shift is known it is the optimal solution.&lt;/P&gt;
&lt;P&gt;As I understand If the time shift is unknown, there is not automatic solution inside Qlik.&lt;/P&gt;
&lt;P&gt;We have to either test possible values and see the best result or do calculations before loading to Qlik, either by testing the values or calculating the&amp;nbsp;&lt;SPAN&gt;Cross-Correlation, and feed the ready result to Qlik.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Am I right or is there another workaround?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;What bothers me is that the two timeseries may be irrelevant in general but follow the above pattern only for a month. If we select that month as a timespan, the pre-calculated time-shift or&amp;nbsp;&lt;SPAN&gt;Cross-Correlation will not be able to capture the temporal behaviour.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 06:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/m-p/2488590#M101696</guid>
      <dc:creator>pdimitrakis</dc:creator>
      <dc:date>2024-10-23T06:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation with timeshift</title>
      <link>https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/m-p/2488723#M101704</link>
      <description>&lt;P&gt;Maybe what you need is a Time Series instead.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What exactly are you trying to achieve? What business question are you answering?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 13:07:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/m-p/2488723#M101704</guid>
      <dc:creator>igoralcantara</dc:creator>
      <dc:date>2024-10-23T13:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation with timeshift</title>
      <link>https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/m-p/2488803#M101711</link>
      <description>&lt;P&gt;I am looking into data including social media posts information and show viewership.&lt;/P&gt;
&lt;P&gt;I want to check if a certain "kind" of posts drives the changes to viewership.&lt;/P&gt;
&lt;P&gt;In a simplified example, whenever I post with positive reviews, the show viewership goes up and when I post with negative reviews, the viewership goes down.&lt;/P&gt;
&lt;P&gt;But the effect of my reviews is not instant but comes with an unknown delay.&lt;BR /&gt;&lt;BR /&gt;I want to check if there is a connection between various kinds of posts and show viewership, product sales etc.&lt;BR /&gt;The effect may be temporal (i.e. a certain campaign) and that is why I would prefer the analysis to be dynamic and not static (in python before loading to Qlik).&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 17:24:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/m-p/2488803#M101711</guid>
      <dc:creator>pdimitrakis</dc:creator>
      <dc:date>2024-10-23T17:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation with timeshift</title>
      <link>https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/m-p/2488829#M101724</link>
      <description>&lt;P&gt;Oh, I see. This sounds like an A/B Testing or maybe a Multi-Armed Bandits if it is an ongoing campaign. Check Data Voyagers, I wrote a couple articles about it, using Qlik.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 20:02:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/m-p/2488829#M101724</guid>
      <dc:creator>igoralcantara</dc:creator>
      <dc:date>2024-10-23T20:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation with timeshift</title>
      <link>https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/m-p/2488832#M101725</link>
      <description>&lt;P&gt;Hi im no champ in stats, but i would say if you see you have a linear relation&amp;nbsp;VAR2 = k × VAR1 + b kind of y=mx+c we use it for linear geometry, if you could figure out constants k and b then you could do something like below:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data:&lt;BR /&gt;LOAD DAY, &lt;BR /&gt;VAR1, &lt;BR /&gt;VAR2&lt;BR /&gt;FROM&lt;BR /&gt;[&lt;A href="https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/td-p/2488146" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/td-p/2488146&lt;/A&gt;]&lt;BR /&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;// Define constants for k and b&lt;BR /&gt;LET k = 2; // Example multiplier&lt;BR /&gt;LET b = 1; // Example bias&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;// Creating Var3 based on the formula&lt;BR /&gt;Qualify *;&lt;BR /&gt;d:&lt;BR /&gt;LOAD&lt;BR /&gt;DAY,&lt;BR /&gt;VAR1,&lt;BR /&gt;VAR2,&lt;BR /&gt;$(k) * VAR1 + $(b) AS VAR3 // This calculates Var3 as k * VAR1 + b&lt;BR /&gt;RESIDENT Data;&lt;/P&gt;
&lt;P&gt;when you dont know the constansts(linear relation) You could reverse engineer to find of constants:&lt;/P&gt;
&lt;DIV&gt;Finding out constanst from the given data, basic technique&lt;/DIV&gt;
&lt;DIV&gt;From the equation VAR3=k×VAR1+b&lt;/DIV&gt;
&lt;DIV&gt;we can create the following equations from the data:&lt;/DIV&gt;
&lt;DIV&gt;1. For the first row:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; 3=k×1+b (1)&lt;/DIV&gt;
&lt;DIV&gt;2. For the second row:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; 5=k×2+b (2)&lt;/DIV&gt;
&lt;DIV&gt;3. For the third row:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;7=k×3+b (3)&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;Solving the Equations&lt;/DIV&gt;
&lt;DIV&gt;You can solve these equations to find the values of k and b.&lt;/DIV&gt;
&lt;DIV&gt;1. From Equation (1):&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;b=3−k (4)&lt;/DIV&gt;
&lt;DIV&gt;2. Substituting (4) into Equation (2):&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;5=2k+(3−k)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Simplifying:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; 5=2k+3−k&lt;/DIV&gt;
&lt;DIV&gt;3. Using (4) to find b:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Substitute k back into Equation (4):&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; b=3−2=1&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Result&lt;/DIV&gt;
&lt;DIV&gt;Thus, the constants are:&lt;/DIV&gt;
&lt;DIV&gt;• k=2&lt;/DIV&gt;
&lt;DIV&gt;• b=1&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2488146 - Correlation with timeshift.PNG" style="width: 990px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173353iE2F1074759ECA776/image-size/large?v=v2&amp;amp;px=999" role="button" title="2488146 - Correlation with timeshift.PNG" alt="2488146 - Correlation with timeshift.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;im sure it would be much more complex in real scenarios, but this gives u a basic understanding.&lt;/P&gt;
&lt;P&gt;If you want to explore cross-correlation at various lags, &lt;BR /&gt;you might need a more complex setup (like creating lagged versions of your variables). &lt;BR /&gt;for simplicity:&lt;/P&gt;
&lt;P&gt;Lagged Variables (if necessary): &lt;BR /&gt;If you were to create lagged versions of your variables (e.g., VAR1 shifted by one time period), you could do something like this in the script:&lt;/P&gt;
&lt;P&gt;DataWithLag:&lt;BR /&gt;LOAD&lt;BR /&gt;DAY,&lt;BR /&gt;VAR1,&lt;BR /&gt;VAR3,&lt;BR /&gt;Previous(d.VAR1) AS d.Lagged_VAR1&lt;BR /&gt;RESIDENT d;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 20:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/m-p/2488832#M101725</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2024-10-23T20:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation with timeshift</title>
      <link>https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/m-p/2488894#M101730</link>
      <description>&lt;P&gt;Very nice article and explanation of&amp;nbsp;&lt;SPAN&gt;Multi-Armed Bandits.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I see great value in it after deciding the evaluation metric of each post or type of post (analogue to ad in your example).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 07:13:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/m-p/2488894#M101730</guid>
      <dc:creator>pdimitrakis</dc:creator>
      <dc:date>2024-10-24T07:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation with timeshift</title>
      <link>https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/m-p/2488896#M101731</link>
      <description>&lt;P&gt;Great and very analytic answer.&lt;/P&gt;
&lt;P&gt;Solving the system of equations to find the time and scale shift is plausible outside Qlik and if that is the case, processing the data with a python library to calculate the actual Cross-Correlation coefficient like in signal theory would cover the real scenario.&lt;/P&gt;
&lt;P&gt;Your idea of creating&amp;nbsp;l&lt;SPAN&gt;agged Variables a priori is a way to go if the python processing is out of the question. Like a simplified Cross-Correlation, creating 10 (or more) different lagged versions of VAR1:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;VAR1_1 = Above(VAR1, 1)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;VAR1_2 = Above(VAR1, 2)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;etc&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; and selecting as the Cross-Correlation approximation the higher correlation of VAR1_i to VAR2&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 07:30:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/m-p/2488896#M101731</guid>
      <dc:creator>pdimitrakis</dc:creator>
      <dc:date>2024-10-24T07:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation with timeshift</title>
      <link>https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/m-p/2489060#M101750</link>
      <description>&lt;P&gt;Yeah i would prefer python over qlik if you dont have any UI calcs. Also in qlik you dont need to create&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;VAR1_1 = Above(VAR1, 1)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;VAR1_2 = Above(VAR1, 2)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;you write a little for loop with n, nbeing the number lagged variables and it creats as many lagged fields as you want.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 01:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/m-p/2489060#M101750</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2024-10-25T01:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation with timeshift</title>
      <link>https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/m-p/2489110#M101758</link>
      <description>&lt;P&gt;The only drawback of python processing is that we are consuming the Qlik analytics through an html mashup and the users accessing it will not be from our team.&lt;/P&gt;
&lt;P&gt;So the actual Cross Correlation is something we can test in python but the final users will only have access to the approximation using specific time shifts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Multiple time shift variables using a loop with a high number of n will improve the approximation error. And also we might try to select smaller time intervals for the shifts, i.e. hours instead of days.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 07:41:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Correlation-with-timeshift/m-p/2489110#M101758</guid>
      <dc:creator>pdimitrakis</dc:creator>
      <dc:date>2024-10-25T07:41:31Z</dc:date>
    </item>
  </channel>
</rss>

