Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dcorking/school-perf-rank
Demo of using Ruby standard library to rank government school tables
https://github.com/dcorking/school-perf-rank
csv-reading open-data opendata schools statistics
Last synced: 11 days ago
JSON representation
Demo of using Ruby standard library to rank government school tables
- Host: GitHub
- URL: https://github.com/dcorking/school-perf-rank
- Owner: dcorking
- License: mit
- Created: 2014-07-21T21:00:56.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-11-10T21:21:23.000Z (about 6 years ago)
- Last Synced: 2024-10-18T20:43:50.563Z (3 months ago)
- Topics: csv-reading, open-data, opendata, schools, statistics
- Language: Ruby
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## Take care
This is just a demo. Not only is there no warranty, but I don't
maintain it.See the LICENSE.txt for disclaimer and permission to copy.
## Purpose
To rank the top ten secondary schools in England according to 2
popular measures recorded by national government:
1. Percentage of pupils achieving 5+ A*-C or equivalents
2. Total average (capped) point score per pupil. (The points are allocated by the Government according to GCSE exam grades.)The program combines the two Government measures to make its ranking
measures in a couple of very arbitrary ways.## To use
Download some school data from the government website with
ruby ./download.rb
_The script downloads data for the most recent year, for Bath and
North East Somerset (BANES), and for England_Rank the BANES data
ruby -I. ./rank.rb data/800_ks4.csv
Rank the England data
ruby -I. ./rank.rb data/england_ks4.csv
Download other data for England from the [Department for Education](http://www.education.gov.uk/schools/performance/2013/download_data.html)
## Sample output
```
ruby -I./ rank.rb data/england_ks4.csv
Read 5392 rows.
Counted 4125 mainstream rows.
Filtered 2902 rows that are both mainstream and comprehensive.The top ten schools by our first, crude GCSE scoring method:
1. Thomas Telford School, Telford
2. Watford Grammar School for Girls, Watford
3. Hockerill Anglo-European College, Bishop's Stortford
4. West Park School, Derby
5. Dame Alice Owen's School, Potters Bar
6. Walsall Academy, Walsall
7. Parkside Academy, Crook
8. The Priory Academy LSST, Lincoln
9. Arden, Solihull
10. King David High School, LiverpoolThe top ten schools by our second, deviation-based method of combining GCSE data:
1. Thomas Telford School, Telford
2. West Park School, Derby
3. Parkside Academy, Crook
4. Arden, Solihull
5. The Priory Academy LSST, Lincoln
6. St Andrew's Catholic School, Leatherhead
7. Hockerill Anglo-European College, Bishop's Stortford
8. Walsall Academy, Walsall
9. Toot Hill School, Nottingham
10. Barr Beacon School, Walsall
```
## DetailsThe program ranks only mainstream schools that have non-selective admissions policy, whose data it can find in the official tables. At its best, it is only as good as the official tables.
## Bugs and known issues
1. It is really slow, because it does far more calculations than are
strictly needed. Don't run this on a production server, unless you
want to be unpopular with production users. There is lots of scope
for optimization.
2. Ties are ranked arbitrarily
3. The Department for Education only covers England. We don't try to
get data for Scotland, Wales or Northern Ireland.