KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums KX Academy Capstone project 4.7

  • Capstone project 4.7

    Posted by Akash on March 3, 2025 at 9:11 am

    Hello Team,

    The question defined process is passed but getting the format is failed again and again, exercise4.7 Fail “edgeCor Has Correct Format” “” error. I’m getting this format error for exercise 4.7, I’ve modified the code many times but still getting the same error. I’ve tried the below codes for getting this format error, please help me to resolve this issue.

    Exercise 4.7 question,

    Finally, using timeSeries (or otherwise) calculate the correlation between the 15 minute timeseries for edge with each of qty and numTrds. Store this in a dictionary called edgeCor with edge, qty and numTrds as the keys and the values as their correlation with the edge series. Thus the value for edge should be 1.

    Sample codes I’ve tried,

    corrEdgeQty: cor[timeSeries[`edge], timeSeries[`qty]]
    corrEdgeNumTrds: cor[timeSeries[`edge], timeSeries[`numTrds]]
    edgeCor: `edge`qty`numTrds ! 1, corrEdgeQty, corrEdgeNumTrds</code><p><br></p><p>edgeCor: `edge`qty`numTrds!1, cor[timeSeries`edge; timeSeries`qty], cor[timeSeries`edge; timeSeries`numTrds]


    megan_mcp replied 1 week, 1 day ago 2 Members · 1 Reply
  • 1 Reply
  • megan_mcp

    Administrator
    March 3, 2025 at 1:13 pm

    Hi Akash,

    The incorrect format comes from hardcoding the “1” value for edge. If you apply the same logic that you have used for qty and numTrds, it should pass the test.

    Let me know if this works for you!

    Thanks,

    Megan

Log in to reply.