Skip to content

Commit

Permalink
Merge branch 'master' into docker
Browse files Browse the repository at this point in the history
Conflicts:
	density/config/flask_config.py
	density/density.py
  • Loading branch information
thebrianzeng committed Apr 10, 2015
2 parents c3dc1fc + 4dfed3b commit eb42cdf
Show file tree
Hide file tree
Showing 31 changed files with 16,008 additions and 274 deletions.
21 changes: 18 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

# Density

[![Build Status](https://travis-ci.org/adicu/density.svg?branch=master)](https://travis-ci.org/adicu/density)

Density
---

Density is a project to provide easy access to the Wireless Density data from Columbia.
For more details on the project, please view the [spec](SPEC.md).
Expand Down Expand Up @@ -102,9 +102,15 @@ Supported routes currently include:




## Data Sources

TODO
Data for density is provided by CUIT in coordination with ESC.






# app structure

Expand All @@ -119,6 +125,15 @@ TODO
```



# Changelog

0.1.1: Datetime formatting changed to ISO 8601.
0.1.0: Basic API up and stable.




# List of Developers

- Brian Zeng
Expand Down
Binary file added datasci/Butler_day.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasci/JJ_day.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasci/avg_day.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasci/dayofweek.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
98 changes: 98 additions & 0 deletions datasci/density_blog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
![alt text](http://library.columbia.edu/content/libraryweb/locations/business/_jcr_content/layout_featuredcontent/image.img.jpg/1369336790208.jpg)
#What do we know about Density's data?

---

##[CUIT](https://cuit.columbia.edu/) has supplied us with the following data set:

![alt text](https://github.com/adicu/density/blob/master/density/static/favicon.png?raw=true)

###We receive device counts from specific routers aggregated into 15 minute intervals

Devices connect to wifi routers across Columbia's campus. CUIT aggregates device collection data by building and by floor and supplies with a live count of the number of devices connected at each location every 15 minutes.

---

#What spaces do we have?

###We have various libraries, John Jay, and Lerner.

---

#Just how full is a study space?



![alt text](http://www.hercampus.com/sites/default/files/2013/12/02/4192655241_df21ba1706.jpg)


There's an obvious difference beteween a space that is unusually crowded like during orgo night, and a typical busy day.

![alt text](http://library.columbia.edu/content/libraryweb/locations/butler/_jcr_content/layout_featuredcontent/image.img.jpg/1368472856821.jpg)

Density assumes that capacity is relative to fullness on an average day, not on outlier days. How do we do that? By considering what the average day like at each space.

###On an average day at Columbia, device count grows until it stablizes for the day

![alt text](avg_day.png)
#Capacity is the level at which population growth stabilizes

###For the capacity of whole campus of Columbia, it would be 2248

---

#Different spaces have different properties

##For example, Butler library behaves very differently from John Jay:

###This is Butler:

![alt text](Butler_day.png)

People tend to come in after lunch, take a break for dinner, and work late into the night.

###This is John Jay:
![alt text](JJ_day.png)

The dining halls are most crowded around mealtimes.

---

#How does campus population vary over time?

###We can find differences in population based on changes in semesters, exams, and holidays
![alt text](dev_series.png)
There's a clear weekly cycle in the number of devices connected across campus. Let's remove the weekly cycle by grouping the data into weeks. Smoothing out the data by grouping by week allows us to see differences in semesters and holidays more clearly e.g. the big drop around Thanksgiving and the following spike for Finals.
![alt text](weekly_count.png)
Aggregating the data by week allows us to see that there's a jump in the number of devices when the semester starts. We also see a dip for fall break and Thanksgiving and a spike for finals. Winter break is also visible following the dramatic drop in device count.

---

##How does day of the week affect study habits?

###People don't study on weekends:

![alt text](dayofweek.png)

---

##We can also find days with unusually high number of devices

Our plots show the days with the max. number of devices recorded at any time at that location. Using these graphs, we can identify special days during the school year.

##Like NSOP
![alt text](nsop.png)

We see multiple spikes in Roone Arledge Auditorium around the same time as orientation.

##And Orgo Night!
![alt text](orgonight.png)

Notice the spike in Butler 2 around midnight.

##For more tools with the Density API, check out Chris Mulligan's [Relative Density App!](https://chmullig.shinyapps.io/relative_density/)


#To see the code that generated our visuals check out our [ipython notebook!](http://nbviewer.ipython.org/github/jzf2101/density/blob/master/datasci/density_demo.ipynb)

#Check out our [API](http://density.adicu.com/docs) to use our data!
Loading

0 comments on commit eb42cdf

Please sign in to comment.