1. Homepage
  2. Programming
  3. Math 5440 Week 5 Assignment: Computing Impact States for a Given Date

Math 5440 Week 5 Assignment: Computing Impact States for a Given Date

Engage in a Conversation
PythonRMath 5440Computing Impact States for a Given DatecolumbiaHdb

Math 5440: Week 5 Assignment

Exercise Computing Impact States for a Given Date

Load the binned stock data using \ l pathToHdbFolder \ columbiaHdb CourseNana.COM

Load in memory the table for the date 2019.01.03. CourseNana.COM

  1. For a given halflife h, trade vector, adv and vol, implement a function that returns the impact state vector. One refers to the input and output types of a function as its signature. The signature of your impact function should be computeImpact : {[ trade ; adv ; vol ; h ] ...} CourseNana.COM

  2. where the function accepts both numeric atoms and vectors for trade, vol, and adv. It should only take numeric atoms for h. We say that the function is vectorized over trade, adv, and vol but not h. Vectorization circumvents the need for looping over values, speeding up computations and improving code readability. Let h = 1, 5, 30, 60 min be halflifes. Using the cross operator, create a table that duplicates each row for each halflife h. Therefore, h becomes a column of your table, and your table should have four times as many rows as previously. CourseNana.COM

  3. For each halflife h and stock, compute the impact state vector across time. Be sure to scale the model using adv and vol. CourseNana.COM

  4. Let ∆t = 1, 15, 60 min be prediction horizons. Using the cross operator, create a table that duplicates each row for each prediction horizon. For each prediction horizon, compute the corresponding returns r = Pt+∆t /Pt − 1 and differences in impact states ∆I = It+∆t − It . Alternatively, execute questions 4. and 5. for a given ∆t and loop over ∆t if the cross table is too large to fit in memory. CourseNana.COM

  5. For each stock, halflife, and prediction horizon, compute the covariance E[r∆I] and the variance E[(∆I)2 ]. CourseNana.COM

Get in Touch with Our Experts

WeChat (微信) WeChat (微信)
Whatsapp WhatsApp
Python代写,R代写,Math 5440代写,Computing Impact States for a Given Date代写,columbiaHdb代写,Python代编,R代编,Math 5440代编,Computing Impact States for a Given Date代编,columbiaHdb代编,Python代考,R代考,Math 5440代考,Computing Impact States for a Given Date代考,columbiaHdb代考,Pythonhelp,Rhelp,Math 5440help,Computing Impact States for a Given Datehelp,columbiaHdbhelp,Python作业代写,R作业代写,Math 5440作业代写,Computing Impact States for a Given Date作业代写,columbiaHdb作业代写,Python编程代写,R编程代写,Math 5440编程代写,Computing Impact States for a Given Date编程代写,columbiaHdb编程代写,Pythonprogramming help,Rprogramming help,Math 5440programming help,Computing Impact States for a Given Dateprogramming help,columbiaHdbprogramming help,Pythonassignment help,Rassignment help,Math 5440assignment help,Computing Impact States for a Given Dateassignment help,columbiaHdbassignment help,Pythonsolution,Rsolution,Math 5440solution,Computing Impact States for a Given Datesolution,columbiaHdbsolution,