For the nerds in you! TDEE estimation, with graphs :)

Hi there again!

I'm a hopeless data lover - I believe the best way to deal with a problem is to study and understand it, because then you can control it, and I've been approaching weight loss the same way - by weighing myself daily and keeping an accurate journal (to the best of my abilities).

I've already posted some graphs on daily weight fluctuations, plateaus etc., and if you're still upset with your scales or get discouraged by what they show, you might want to check that post: http://www.myfitnesspal.com/topics/show/1098806-newbie-loss-plateaus-and-weight-loss-math-with-graphs

Lately I've been trying to avoid work, so I turned to my weight loss data again, and produced a lot of very nerdy plots related to TDEE estimation from actual data. Hopefully it may give some of you ideas on how to kill your time, or help you figure out what's wrong if things don't work as well as planned.

So here we go. I have this excel file that looks like this:
24b4zro.png
Stuff in boldface is entered manually (daily weigh-ins, calories in, calories out, workout duration), while the rest is automatically calculated as follows:

1. Net calories = calories in - calories out

2. BMR (I used Mifflin St Jeor formula, you're free to put whichever you like) = 10*(weight in kg) + 6.25*(height in cm)-5*age+s, where s=-161 for women and +5 for men. The weight there is actually the "Expected Real weight" column defined lower. This is to compensate for the fact that BMR drops in time, as we lose weight.

3. Net Corrected = Net calories + [BMR column]/1440*[Workout duration column], where 1440 is the minutes in a day.
(This is basically to subtract the equivalent of BMR for the time of your workouts, as HMRs / MFP estimates do not do so, and you're calculating your BMR calories during workout twice)

4. TDEE sedentary (without workout) = [BMR column] * TDEE coefficient cell (which is what we're trying to calculate, I started with the default of 120%, corresponding to "sedentary")

5. Deficit = TDEE sedentary - Net Corrected

6. Expected weight loss = Deficit/7700, where 7700 is the amount of calories needed to lose 1 kg of fat

7. Expected "real" weight = (expected "real" weight of the previous day) - (expected weight loss of the previous day). The first value in this column is set manually, and as a default I took the initial weight the normal linear trend (right click -> add trendline) indicates (another small thing we can try to estimate!)

8. Expected "scale" weight = Expected "real" weight + c, where c is a constant estimating average amount of weight in your stomach. This one is really just for crazy nerds like me:P

With this setup, we can already try to see if our expected loss matches our real loss:
2l95wlg.png
By varying the TDEE coefficient we can obtain several expected weight estimates. Once you hit a line that sort of fits - that's about it! :)

But if you're nitpicky like me, or you haven't been very consistent with your net calories (you can "identify" that by looking at how "straight" the estimated "real" weight line is - mine for example is straight enough), then you can go further and get the ACTUAL relationship between expected weight and real weight, by generating an XY scatterplot:
2db4iyv.png
Add a trendline, go to "Format trendline" and tick "display equation" and "R value".
Now what you want is to get as close as possible to y(actual weight)=x(expected weight). If y > 1x+…, decrease the TDEE coeff, if y<1x+…, increase it. Play around until it hits y=1x+… If the coefficients get close but the "real" weight starts being consistently too high (or too low), readjust the initial "real" weight, to line it up as nicely as possible.
Finally, if you're really bored, you can calculate the expected "Scale" weight (what you're likely to see on the scales, not the weight of your empty body) by playing with the coefficient in column 8 until you hit y=1x+0, like this:
d49p0.png

And here's how they look on the initial graph:
2i25fp.png

There. Now I need to get back to do some real work!
«134

Replies

  • lcfairbairn74
    lcfairbairn74 Posts: 412 Member
    The geek in me is overjoyed!! :happy: Thanks for sharing this!! :drinker:
  • hannah_ryann
    hannah_ryann Posts: 259 Member
    BUMP!! You're seriously the best.
  • Ohhhh, data! :love: :love: :love:

    OK, I think I'm now ready to go figure out my own BMR and TDEE. Thank you!
  • QuietBloom
    QuietBloom Posts: 5,413 Member
    Yes! More of this! I have bookmarked your previous post and use it frequently for people experiencing 'plateaus'. :drinker:
  • Chevy_Quest
    Chevy_Quest Posts: 2,012 Member
    This is just so awesome! I love numbers!!! :drinker:
  • nelinelineli
    nelinelineli Posts: 330 Member
    I've uploaded my excel file, if anyone is interested in giving it a try. In order to see the graphs, you need to download the file and open it with MS Excel / LibraOffice.

    https://docs.google.com/file/d/0BzJL1pqFDyG4cnRiRGduQWM5Y3M/edit?usp=sharing
  • i don't understand half of this, but this is awesome.

    Go you! :smile:
  • joshdann
    joshdann Posts: 618 Member
    oh noes! you're addicted to the scale!

    *chuckle*

    good stuff! I loves me some data.
  • BreakinTheChains
    BreakinTheChains Posts: 381 Member
    this is awesome.. love me some data :)
  • nelinelineli
    nelinelineli Posts: 330 Member
    oh noes! you're addicted to the scale!

    *chuckle*

    good stuff! I loves me some data.

    Haha, oh I'm a true MFP heretic! I also eat below my BMR and net below 1200.
    Should I hide from the crowds that cry "burn the witch" ?
  • rlotze
    rlotze Posts: 29 Member
    Love it!
  • dylanafghjkl
    dylanafghjkl Posts: 76 Member
    This is beautiful!
    Thank you!



    Edit:
    Uh, I'm not very well versed in Excel, if I wanted to use your document thing as a template, I figure it'd be pretty easy to get rid of your data in the columns with bold type, but would it be possible to use an earlier starting date/later ending date and stuff???
  • livedb
    livedb Posts: 45 Member
    Great posts!! Last one lead me here. Love em all! I will download it and try to put in my info If I can.

    I go a week with just a little movement, and am told I need to eat more. I think a Plato needs to be longer than a week. :ohwell:

    In the end, I'm still kickin butt!! :wink: I only started in May.
  • XimeTheFirst
    XimeTheFirst Posts: 38 Member
    I think I just fell in love with your brain.
  • amflautist
    amflautist Posts: 902 Member
    You are seriously my type of woman. Going to fire up excel and start measuring as soon as the sun comes up. Thank you for an inspiring post!
  • amflautist
    amflautist Posts: 902 Member


    Haha, oh I'm a true MFP heretic! I also eat below my BMR and net below 1200.
    Should I hide from the crowds that cry "burn the witch" ?

    Lol, yeah! Burn me too!

    Seriously, nowadays I just flush any friends who start questioning my plan. Got tired of trying to 'splain. At 72, shouldn't have to explain anything!
  • nelinelineli
    nelinelineli Posts: 330 Member
    This is beautiful!
    Thank you!



    Edit:
    Uh, I'm not very well versed in Excel, if I wanted to use your document thing as a template, I figure it'd be pretty easy to get rid of your data in the columns with bold type, but would it be possible to use an earlier starting date/later ending date and stuff???

    Yes you can change the date as well, just insert your initial date in the first row and then drag the column down. Excel will automatically complete it :D
    If you have any issues feel free to ask me I can help you set it up.
  • gigglesinthesun
    gigglesinthesun Posts: 860 Member
    I am overjoyed, there is never enough data, however I still refuse to get on the scales the day after I had pizza :-)
  • nelinelineli
    nelinelineli Posts: 330 Member
    Bump. You made the nerd in me happy with your charts and calculations. :smile: May have to try and set up my own spreadsheet.

    You can download mine to get you started. Link just few posts up:)
  • nelinelineli
    nelinelineli Posts: 330 Member
    I am overjoyed, there is never enough data, however I still refuse to get on the scales the day after I had pizza :-)

    Haha, Well, I had 5 pizzas over that time, and only one bumped my weight up. :D
  • aalpass
    aalpass Posts: 124 Member
    I think i'm in love!! haha love getting my geek on!
  • FitterBody
    FitterBody Posts: 367 Member
    Bump to read later.
  • MariaJ98
    MariaJ98 Posts: 7 Member
    Bump
  • Qski
    Qski Posts: 246 Member
    You are awesome in your awesomeness....
    I too am a data nerd in my day job and came to a similar plan as yours the more data I'm collecting the better for me (I am also doing ww so tracking points and calories)

    But I have yet to conquer the scales in an analytical way (ie to much of a wuss to weigh every day)... And I've only just begun.

    Love your work!
  • samammay
    samammay Posts: 468
    Wow - you are SUCH a geek. That makes me a little frisky!

    Now i have to go apply your calculations to the several spreadsheets of data I have collected...
  • cwolfman13
    cwolfman13 Posts: 41,865 Member
    The accountant and financial analyst in me is loving this...
  • MallorieGreiner
    MallorieGreiner Posts: 135 Member
    I wish I had the Excel skills to do this. This is amazing.
  • Star_1234
    Star_1234 Posts: 123 Member
    lol i love this! MFP should have something similar to this so that everyone can log in their daily weight and make their own graphs. It would help with motivation and stop us from panicking when we do put on some weight.
  • nelinelineli
    nelinelineli Posts: 330 Member
    As many people mentioned before, there are very good tools such as trendweight and libra which you could use to visualize your weight trend!

    All you have to do is enter daily weigh-ins and it will calculate stuff for you, make a nice, pretty plot:P

    I'm going to quote someone from another post:
    I think graphing is the absolute best way to get real info out of the scale. I don't do it the way the OP has - too much work for me! - but instead, I use trendweight.com on the web or Libra on android. Trendweight looks like this:

    4w.png

    The beauty of this is that the moving average lets you find out what your calorie deficit is and use that to plan your weight loss.

    Osric
  • phytogurl
    phytogurl Posts: 671 Member
    Bump to check out later. I actually wanted to find out my Tdee , and i think your spreadsheet will help me out immensely. Thanks for sharing! :flowerforyou: