Professional Documents
Culture Documents
Data Science Internship Technical Exercise Resolved
Data Science Internship Technical Exercise Resolved
Data Science Internship Technical Exercise Resolved
● Steps:
1. Figures in thousands
2. "Predicted Number of Children" is the number for age group 0-4 given by the "ONS population proje
a more accurate prediction, based on the figures from year 2018 from the “Provision for Children unde
2. “Number of Staff Needed” is the number of needed staff, taking in consideration the minimum staffi
Tyne and
Wear (Met
E11000007 County) 62.4 29.328
E08000037 Gateshead 11.2 5.264
Newcastle
E08000021 upon Tyne 17.0 7.99
North
E08000022 Tyneside 11.2 5.264
South
E08000023 Tyneside 8.2 3.854
E08000024 Sunderland 14.9 7.003
E12000002 North West 434.4 204.168
Blackburn
E06000008 with Darwen 10.6 4.982
E06000009 Blackpool 8.2 3.854
Cheshire
E06000049 East 19.9 9.353
Cheshire
West and
E06000050 Chester 18.3 8.601
E06000006 Halton 7.7 3.619
E06000007 Warrington 12.2 5.734
E10000006 Cumbria 24.1 11.327
E07000026 Allerdale 4.6 2.162
Barrow-in-
E07000027 Furness 3.7 1.739
E07000028 Carlisle 6.0 2.82
E07000029 Copeland 3.6 1.692
E07000030 Eden 2.2 1.034
South
E07000031 Lakeland 4.1 1.927
Greater
Manchester
(Met
E11000001 County) 184.5 86.715
E08000001 Bolton 19.0 8.93
E08000002 Bury 12.0 5.64
E08000003 Manchester 39.2 18.424
E08000004 Oldham 16.8 7.896
E08000005 Rochdale 14.8 6.956
E08000006 Salford 17.5 8.225
E08000007 Stockport 17.8 8.366
E08000008 Tameside 14.3 6.721
E08000009 Trafford 14.8 6.956
E08000010 Wigan 18.2 8.554
E10000017 Lancashire 67.0 31.49
E07000117 Burnley 5.7 2.679
E07000118 Chorley 6.5 3.055
E07000119 Fylde 3.3 1.551
E07000120 Hyndburn 5.2 2.444
E07000121 Lancaster 7.6 3.572
E07000122 Pendle 6.2 2.914
E07000123 Preston 9.2 4.324
Merseyside
(Met
E11000002 County) 82.0 38.54
E08000011 Knowsley 9.7 4.559
E08000012 Liverpool 29.4 13.818
E08000014 Sefton 14.5 6.815
E08000013 St. Helens 10.1 4.747
E08000015 Wirral 18.4 8.648
Yorkshire
and The
E12000003 Humber 323.0 151.81
East Riding
E06000011 of Yorkshire 15.4 7.238
Kingston
upon Hull,
E06000010 City of 17.2 8.084
North East
E06000012 Lincolnshire 9.4 4.418
North
E06000013 Lincolnshire 9.1 4.277
E06000014 York 10.2 4.794
North
E10000023 Yorkshire 29.7 13.959
E07000163 Craven 2.5 1.175
E07000164 Hambleton 4.2 1.974
E07000165 Harrogate 7.8 3.666
Richmondshi
E07000166 re 2.7 1.269
E07000167 Ryedale 2.5 1.175
South
Yorkshire
(Met
E11000003 County) 80.9 38.023
E08000016 Barnsley 14.1 6.627
E08000017 Doncaster 18.0 8.46
E08000018 Rotherham 15.7 7.379
E08000019 Sheffield 33.1 15.557
West
Yorkshire
(Met
E11000006 County) 151.0 70.97
E08000032 Bradford 39.5 18.565
E08000033 Calderdale 12.7 5.969
E08000034 Kirklees 27.4 12.878
E08000035 Leeds 51.1 24.017
E08000036 Wakefield 20.3 9.541
East
E12000004 Midlands 273.5 128.545
E06000015 Derby 16.9 7.943
E06000016 Leicester 25.7 12.079
Hinckley and
E07000132 Bosworth 5.9 2.773
E07000133 Melton 2.6 1.222
North West
Leicestershir
E07000134 e 5.3 2.491
Oadby and
E07000135 Wigston 3.0 1.41
E10000019 Lincolnshire 39.8 18.706
E07000136 Boston 4.2 1.974
East
Northampto
E07000152 nshire 4.9 2.303
E07000153 Kettering 6.3 2.961
Northampto
E07000154 n 16.1 7.567
South
Northampto
E07000155 nshire 4.9 2.303
Wellingboro
E07000156 ugh 5.1 2.397
Nottinghams
E10000024 hire 44.8 21.056
E07000170 Ashfield 7.4 3.478
E07000171 Bassetlaw 6.2 2.914
E07000172 Broxtowe 6.1 2.867
E07000173 Gedling 6.4 3.008
E07000174 Mansfield 6.5 3.055
Newark and
E07000175 Sherwood 6.5 3.055
E07000176 Rushcliffe 5.9 2.773
West
E12000005 Midlands 358.9 168.683
Herefordshir
E06000019 e, County of 9.3 4.371
E06000051 Shropshire 14.7 6.909
Stoke-on-
E06000021 Trent 17.3 8.131
Telford and
E06000020 Wrekin 10.8 5.076
East
E07000193 Staffordshire 7.2 3.384
E07000194 Lichfield 4.9 2.303
Newcastle-
E07000195 under-Lyme 6.3 2.961
South
E07000196 Staffordshire 4.9 2.303
E07000197 Stafford 6.6 3.102
Staffordshire
E07000198 Moorlands 4.3 2.021
E07000199 Tamworth 4.5 2.115
Warwickshir
E10000031 e 30.7 14.429
North
Warwickshir
E07000218 e 3.2 1.504
Nuneaton
and
E07000219 Bedworth 7.8 3.666
E07000220 Rugby 6.4 3.008
Stratford-on-
E07000221 Avon 5.8 2.726
E07000222 Warwick 7.3 3.431
West
Midlands
(Met
E11000005 County) 201.0 94.47
Central
E06000056 Bedfordshire 17.8 8.366
E06000032 Luton 17.8 8.366
Peterboroug
E06000031 h 15.8 7.426
Southend-
E06000033 on-Sea 11.2 5.264
E06000034 Thurrock 12.8 6.016
Cambridgesh
E10000003 ire 37.5 17.625
E07000008 Cambridge 6.7 3.149
East
Cambridgesh
E07000009 ire 5.3 2.491
E07000010 Fenland 5.9 2.773
Huntingdons
E07000011 hire 10.4 4.888
South
Cambridgesh
E07000012 ire 9.3 4.371
E10000012 Essex 85.8 40.326
E07000066 Basildon 12.7 5.969
E07000067 Braintree 8.5 3.995
E07000068 Brentwood 4.5 2.115
E07000069 Castle Point 4.5 2.115
E07000070 Chelmsford 10.0 4.7
E07000071 Colchester 11.7 5.499
Epping
E07000072 Forest 8.1 3.807
E07000073 Harlow 6.5 3.055
E07000074 Maldon 3.0 1.41
E07000075 Rochford 4.1 1.927
E07000076 Tendring 7.1 3.337
E07000077 Uttlesford 5.2 2.444
Hertfordshir
E10000015 e 76.1 35.767
E07000095 Broxbourne 6.4 3.008
E07000096 Dacorum 9.9 4.653
East
Hertfordshir
E07000242 e 8.5 3.995
E07000098 Hertsmere 6.9 3.243
North
Hertfordshir
E07000099 e 8.2 3.854
E07000240 St Albans 9.9 4.653
E07000243 Stevenage 5.9 2.773
King's Lynn
and West
E07000146 Norfolk 8.3 3.901
North
E07000147 Norfolk 4.1 1.927
E07000148 Norwich 8.4 3.948
South
E07000149 Norfolk 7.0 3.29
E10000029 Suffolk 41.1 19.317
E07000200 Babergh 4.3 2.021
St
Edmundsbur
E07000204 y 6.0 2.82
Suffolk
E07000205 Coastal 5.6 2.632
E07000206 Waveney 6.0 2.82
E12000007 London 623.1 292.857
E09000007 Camden 14.0 6.58
City of
E09000001 London 0.4 0.188
E09000012 Hackney 20.8 9.776
Hammersmit
h and
E09000013 Fulham 10.8 5.076
E09000014 Haringey 18.9 8.883
E09000019 Islington 13.2 6.204
Kensington
E09000020 and Chelsea 8.1 3.807
E09000022 Lambeth 20.0 9.4
E09000023 Lewisham 22.5 10.575
E09000025 Newham 28.9 13.583
E09000028 Southwark 21.2 9.964
Tower
E09000030 Hamlets 22.1 10.387
Kingston
upon
E09000021 Thames 11.7 5.499
E09000024 Merton 15.5 7.285
E09000026 Redbridge 23.0 10.81
Richmond
upon
E09000027 Thames 13.0 6.11
E09000029 Sutton 14.1 6.627
Waltham
E09000031 Forest 21.9 10.293
E12000008 South East 531.1 249.617
Bracknell
E06000036 Forest 7.6 3.572
Brighton and
E06000043 Hove 14.4 6.768
Windsor and
E06000040 Maidenhead 8.7 4.089
Basingstoke
E07000084 and Deane 11.2 5.264
East
E07000085 Hampshire 6.0 2.82
E07000086 Eastleigh 7.5 3.525
E07000087 Fareham 5.7 2.679
E07000088 Gosport 4.7 2.209
E07000089 Hart 5.3 2.491
E07000090 Havant 6.6 3.102
E07000091 New Forest 7.9 3.713
E07000092 Rushmoor 6.5 3.055
E07000093 Test Valley 7.1 3.337
E07000094 Winchester 6.4 3.008
E10000016 Kent 90.4 42.488
E07000105 Ashford 7.9 3.713
E07000106 Canterbury 7.6 3.572
E07000107 Dartford 7.6 3.572
E07000108 Dover 5.9 2.773
E07000109 Gravesham 7.2 3.384
E07000110 Maidstone 10.2 4.794
E07000111 Sevenoaks 7.1 3.337
E07000112 Shepway 5.6 2.632
E07000113 Swale 9.1 4.277
E07000114 Thanet 8.2 3.854
Tonbridge
E07000115 and Malling 7.6 3.572
Tunbridge
E07000116 Wells 6.5 3.055
E10000025 Oxfordshire 39.2 18.424
E07000177 Cherwell 9.1 4.277
E07000178 Oxford 8.7 4.089
South
E07000179 Oxfordshire 8.0 3.76
Vale of
E07000180 White Horse 7.5 3.525
West
E07000181 Oxfordshire 6.0 2.82
E10000030 Surrey 71.0 33.37
E07000207 Elmbridge 9.3 4.371
Epsom and
E07000208 Ewell 5.0 2.35
E07000209 Guildford 7.9 3.713
E07000210 Mole Valley 4.3 2.021
Reigate and
E07000211 Banstead 9.6 4.512
E07000212 Runnymede 5.0 2.35
E07000213 Spelthorne 6.3 2.961
South
Gloucestersh
E06000025 ire 16.3 7.661
E06000030 Swindon 14.4 6.768
E06000027 Torbay 7.1 3.337
E06000054 Wiltshire 27.5 12.925
E10000008 Devon 37.7 17.719
E07000040 East Devon 6.6 3.102
E07000041 Exeter 6.6 3.102
E07000042 Mid Devon 4.1 1.927
Weymouth
E07000053 and Portland 3.2 1.504
Gloucestersh
E10000013 ire 34.7 16.309
1. The age group 0-4 has five ages (0, 1, 2, 3, 4). We make
divided between these 5 ages. Therefore, knowing how m
Number of Staff Needed = Absorbed Prediction * 17 / 60
0 years forecast)
bed Prediction and Number of Staff Needed 2. From the "Provision for Children unde 5 years of age", u
Number of Children participating in early education and c
ted Number of Children * 47 / 100 projections" tables says that in the year 2018 there will be
47% of the projection so we generalize this for every year
roup 0-4 has five ages (0, 1, 2, 3, 4). We make the assumption that the total population of the age group 0-4 is equally
ween these 5 ages. Therefore, knowing how many children of each age an adult can look after, we obtain the formula:
taff Needed = Absorbed Prediction * 17 / 60
"Provision for Children unde 5 years of age", using basic arithmetics, we come to the conclusion that the Predicted
Children participating in early education and childcare in 2018 is 1,581,854. The prediction from the "ONS population
tables says that in the year 2018 there will be 3,362,400 children aged 0-4. We see that the actual number is almost
rojection so we generalize this for every year from our model.
3.5821833333
0.7324166667
0.6525166667
1.1985
1.7844333333
0.8922166667
1.5047833333
8.0432666667
1.4515166667
2.2638333333
1.4115666667
1.0120666667
1.9042833333
55.9033666667
1.2784
0.99875
2.5701166667
2.397
0.9454833333
1.598
2.9563
0.5726166667
0.43945
0.7457333333
0.4261333333
0.27965
0.5060333333
23.9966333333
2.4103166667
1.55805
5.2734
2.1573
1.8510166667
2.3304166667
2.397
1.8110666667
1.9442333333
2.2638333333
8.3895
0.67915
0.8789
0.4261333333
0.6125666667
0.9454833333
0.7191
1.1186
0.3329166667
0.5060333333
0.75905
0.75905
0.6525166667
10.7731833333
1.2650833333
4.0482666667
1.87765
1.2917166667
2.2904666667
41.3748833333
1.9442333333
2.1573
1.1052833333
1.1319166667
1.3716166667
3.7553
0.3196
0.5459833333
0.9588
0.3329166667
0.3462333333
0.6125666667
0.6525166667
10.6932833333
1.8510166667
2.19725
2.0241333333
4.6342
19.2292666667
4.7806833333
1.598
3.5289166667
6.75155
2.5834333333
36.1148
2.19725
3.4090666667
2.7965
0.2130666667
5.3266666667
0.8256333333
0.5593
0.7057833333
0.3861833333
0.8522666667
0.5859333333
0.6392
0.7856833333
5.0869666667
0.7856833333
1.3716166667
0.6525166667
0.799
0.3462333333
0.75905
0.3728666667
5.0337
0.5060333333
0.75905
0.7057833333
0.799
0.6392
0.9854333333
0.6392
5.9658666667
0.6658333333
0.5593
0.6258833333
0.8256333333
2.0108166667
0.6525166667
0.6258833333
6.0990333333
0.99875
0.7856833333
0.8522666667
0.8922166667
0.83895
0.8922166667
0.83895
48.0065833333
1.2118166667
1.8909666667
2.19725
1.3849333333
5.6862166667
0.6525166667
0.9055333333
0.6392
0.8655833333
0.6525166667
0.8655833333
0.5593
0.5459833333
4.0615833333
0.4261333333
1.0253833333
0.83895
0.75905
1.0253833333
27.4323333333
11.7586166667
3.6754
2.4635833333
3.0495166667
1.6912166667
2.51685
2.27715
4.1414833333
0.7191
0.43945
0.6392
0.8256333333
0.8256333333
0.6924666667
49.0719166667
1.4248833333
2.43695
2.19725
1.9176
1.47815
1.6912166667
4.67415
0.7457333333
0.6924666667
0.7324166667
1.3316666667
1.1985
11.6654
1.7311666667
1.1052833333
0.6392
0.6125666667
1.3449833333
1.63795
1.1186
0.8256333333
0.4128166667
0.5726166667
0.9454833333
0.7191
10.1339833333
0.83895
1.3316666667
1.1718666667
0.8789
1.0919666667
1.3316666667
0.7723666667
0.7457333333
0.91885
1.0387
6.1389833333
0.9721166667
0.8256333333
0.6525166667
1.0387
0.5326666667
1.1186
0.9854333333
5.3266666667
0.5593
0.7057833333
1.1851833333
0.6258833333
0.75905
0.7191
0.7723666667
80.8454833333
1.79775
0.0266333333
2.8897166667
1.2517666667
2.4236333333
1.8243833333
0.9055333333
2.7299166667
3.1294166667
3.6754
2.9030333333
2.99625
2.9429833333
1.598
2.67665
3.4223833333
2.3171
2.8098166667
3.0362
3.6487666667
2.8897166667
3.23595
3.0095666667
2.1040333333
2.4635833333
2.91635
2.43695
1.55805
1.9708666667
3.0228833333
1.63795
1.8110666667
2.7831833333
69.2733
0.9854333333
1.9975
0.8123166667
2.4902166667
2.43695
1.7311666667
1.47815
1.4515166667
2.1040333333
1.15855
1.07865
1.2917166667
4.3811833333
1.7578
0.67915
0.5326666667
1.39825
3.6754
0.6924666667
0.7057833333
0.67915
0.5326666667
1.0653333333
9.86765
1.4248833333
0.7856833333
1.0120666667
0.7856833333
0.59925
0.67915
0.8789
1.0520166667
0.799
0.9721166667
0.8789
11.985
1.0653333333
1.0120666667
1.0387
0.7457333333
0.9321666667
1.3716166667
0.9588
0.6924666667
1.1985
1.0520166667
1.0387
0.8256333333
4.9005333333
1.1319166667
1.0120666667
1.0253833333
0.9721166667
0.7723666667
9.2950333333
1.1985
0.67915
1.0919666667
0.5726166667
1.2517666667
0.6924666667
0.799
0.6258833333
0.6658333333
0.9055333333
0.8256333333
6.1523
0.4927166667
1.0387
0.75905
0.9721166667
0.9588
1.1718666667
0.75905
40.2562833333
1.3849333333
1.3583
4.5676166667
3.7686166667
0.0133166667
1.63795
1.9042833333
1.0387
2.397
1.7844333333
0.9055333333
3.5289166667
5.1269166667
0.91885
0.9321666667
0.5593
0.6125666667
0.4794
0.8922166667
0.4261333333
0.3196
2.4103166667
0.27965
0.5060333333
0.4261333333
0.2663333333
0.5459833333
0.3861833333
4.6475166667
0.8256333333
0.5326666667
0.5726166667
1.15855
0.83895
0.7191
3.79525
0.7856833333
0.9055333333
1.1052833333
0.83895
0.1598