Skip to content

Instantly share code, notes, and snippets.

@jakevdp
Created October 20, 2015 20:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jakevdp/ce1faeb01776f8160c32 to your computer and use it in GitHub Desktop.
Save jakevdp/ce1faeb01776f8160c32 to your computer and use it in GitHub Desktop.
Fremont Bike Counts 2015
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@barnettjacob
Copy link

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
Copy link
Author

jakevdp commented Nov 6, 2015

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

@jakevdp
Copy link
Author

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
Copy link

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