+ Reply to Thread
Results 1 to 2 of 2

HELP: Calculate serial covariance on Excel with bid-ask spread

  1. #1
    Registered User
    Join Date
    11-27-2018
    Location
    NL
    MS-Off Ver
    2016
    Posts
    2

    HELP: Calculate serial covariance on Excel with bid-ask spread

    Hi,

    I have a dataset with date, time, high/low price transaction price every minute, closing price every minute, for several different companies. The transaction prices are given for one particular day for all the firms. There may also be missing time stamps for some companies.

    Based on the Roll Model in finance for calculating the bid-ask spread, I have to calculate the covariance between closing price at t, and closing price at t-1. How can I create a formula for this on excel?



    Thank you!

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: HELP: Calculate serial covariance on Excel with bid-ask spread

    As explained in the old thread that you posted in (https://www.excelforum.com/excel-for...ovariance.html ), the Excel side of the answer seems to be to use one of Excel's build in COVARIANCE functions (COVAR() or COVARIANCE.P() or COVARIANCE.S()). The big unanswered question from the old thread was how to determine exactly what two ranges should go into the covariance function. I have no familiarity with Roll's method, so I have no idea how one determines what ranges to feed into the chosen covariance function. My guess at "covariance between close at t and close at t-1" might be COVAR(A3:A10,A2:A9), but that is just a guess.

    As also explained in the other thread, we are good with Excel, but we are not always good at the specific financial model under consideration. If you can help us understand enough about Roll's method, we should be able to help you program that into Excel. At this point, all I can say is that I expect it to involve one of the covariance functions.

    Help file for the COVARIANCE.S() function (note that the syntax of all three of Excel's covariance function is the same): https://support.office.com/en-us/art...f-1f5320314977
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] First-order serial covariance
    By Mantask in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 01-02-2021, 03:15 AM
  2. Calculate Covariance in a single cell
    By JimmyWilliams in forum Excel General
    Replies: 4
    Last Post: 09-24-2018, 11:29 AM
  3. [SOLVED] Covariance Matrix in excel
    By olli.excel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-27-2017, 10:39 PM
  4. How to calculate the Covariance for my Excel File?
    By albert_teo77 in forum Excel General
    Replies: 1
    Last Post: 02-16-2014, 10:33 AM
  5. Replies: 6
    Last Post: 09-30-2013, 10:14 AM
  6. [SOLVED] calculate serial No and Business type result in C:C excel formula..
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-01-2013, 02:00 PM
  7. COVARIANCE.S to build a covariance matrix
    By steve.lorimer in forum Excel General
    Replies: 6
    Last Post: 06-05-2011, 09:37 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1