+ Reply to Thread
Results 1 to 3 of 3

Formula to identify streaks from a Data Set of Results

  1. #1
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London England
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    157

    Question Formula to identify streaks from a Data Set of Results

    I have geared a spreadsheet to generate predictions for a Sports League based on Least Squares Regression of previous results and Poisson Random Variables (Team Scores that seem to fit as Random Variables).

    I am trying to refine the data, to remove or identify results that aren't as likely as predicted. One factor I am looking at considering is streaks (e.g. Team A has won its last two games, Team B has lost its last two, hence I can decide that Team A is more likely to win a close game).

    Columns I have in the table are:

    A - Round (think of it as week 1, week 2 etc.)
    B - Date (I'm not sure if this is formatted as a date)
    C - Time of Game
    D - Home Team
    E - Home Goals
    F - Away Team
    G - Away Goals
    H - Home Margin of Victory (E - G so it will be negative for a loss)
    The other columns on the table hold other irrelevant data

    I'm thinking I could probably do this with a COUNTIF formula, and may need to generate a winning team cell e.g. (=IF(H31>0,D31,F31) first, but I'm really not quite sure of where to go with this (or would I need to generate some kind of lookup table first - to almost count the current streak).

    I would really appreciate any advice anyone may be able to offer.

    Thanks,

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Formula to identify streaks from a Data Set of Results

    Hi mrbp,

    I've worked on tables like this and think your table above can be improved. Instead of Home Team and Away Team being different columns, have a single column for TEAM and another for Home/Away letter of A or H. Then Goals Scored and Goals Given away. You would then enter both teams that played and reverse the H and A letters and goal numbers. I'd also put in a column for Win/Lost.

    For the consecutive streak column, I'd use a countif formula that counts the number of team names the same as the above with a Win. This might take two helper columns.

    If you attach a file of what you already have it is much easier to explain and help.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London England
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    157

    Re: Formula to identify streaks from a Data Set of Results

    Hi Marvin,

    I'm not sure that would work, as I have columns D and F on that sheet geared to a Solver model and a VLOOKUP table (I'm thinking though that I could just set this up as a separate worksheet for streak analysis as a way round this?).

    I've attached the sheet that I'm interested in doing this on - as an FYI the Probabilities tab is rough working at the moment as is the Data Sheet tab.

    I'm quite happy to bounce something back and forth (I hope this gives you an idea of where I am going with this).
    Attached Files Attached Files
    Last edited by mrvp; 01-31-2012 at 06:51 PM. Reason: typo

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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