Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fremont Bike Counts 2015
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@barnettjacob

This comment has been minimized.

Copy link

@barnettjacob barnettjacob commented Nov 6, 2015

Jake, I was trying to work out how the annual model worked but if I run the notebook locally, I get a very different looking annual curve (see below) - guessing it's a minor issue! Any ideas - I'd love to get my head round how it works. Thanks.

ps, looks like they might have fixed the dodgy data :-)

image

@jakevdp

This comment has been minimized.

Copy link
Owner Author

@jakevdp jakevdp commented Nov 6, 2015

Yep, looks like the dataset was updated, and they cleaned the results somehow. Thanks for pointing it out!

@jakevdp

This comment has been minimized.

Copy link
Owner Author

@jakevdp jakevdp commented Nov 6, 2015

Oh, and the annual model is just fitting the phase and amplitude of a sine wave: y(x) = Asin(x) + Bcos(x). Not sure why you're getting a flat line, though...

@barnettjacob

This comment has been minimized.

Copy link

@barnettjacob barnettjacob commented Nov 11, 2015

Weird, I'll take a another look. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment