SlideShare une entreprise Scribd logo
1  sur  17
Télécharger pour lire hors ligne
Speed Limits, Accidents and
Assignment
Mike Maher
University College London
ITS Leeds, 12 December 2016
Overview of the talk
• Describing two pieces of recent work
• First: two projects on speed limits
– effect of 20 mph speed limits
– effect on accidents of increase in HGV speed limits
– both being carried out by Atkins
– both being done for DfT
– my role is providing statistical analysis guidance
– no data as yet on 20 mph limits
• Second: a novel assignment problem
– but not as we generally know it!
HGV speed limit increase
• Increases came into force at start of April 2015
• From 40mph to 50 mph on single carriageways ..
• .. and from 50mph to 60mph on duals
• DfT want to know if any impact on accidents
• Quarterly accident data on affected roads
– for 10 years before the change ..
– .. and then up to three years after
• So far only data for two quarters after
– so just an illustration of what is to be done
– and the modelling to be applied
Time series model (1)
• average 400 accs / month
• average 100 FSCs / month
• 41 obs’ns before
• Clear trend and seasonality
• Fit SARIMA model
• Use auto.arima function
in R
• d = 1, D = 1
• AR(1) term
log(all accidents)
actual (blue), fitted (red)
Time series model (2)
• Then fit an intervention model
– using all quarterly data (43 observations)
– include a regressor variable: before / after dummy
– = 0 in before period, and = 1 in after period
– coefficient β estimates step change in mean of
log(accidents) following speed limit increase
– allowing for trend and seasonality
– so β < 0 implies a reduction in accidents
– accident rate then factored by exp(β)
Results
• All accidents
– 𝛽 = -0.276 (se = 0.088), so a reduction in accidents
– 95% CI on change: (-36%, -10%)
• FSCs
– 𝛽 = -0.212 (se = 0.110), so a reduction in FSCs
– 95% CI on change: (-35%, 0%)
• But clearly very limited amount of after data so far
– further work to be done in early 2017
Tennis assignment problem
• Midweek men’s doubles group in North Berwick
– around 20 men: retired, semi-retired etc
– each lets me know when available next week ..
– .. and how much they’d like / be willing to play
– pattern changes from week to week
– I put together the groups of four (or eight)
– maximise number of matches, satisfying the constraints
• Used to do it manually: pen and paper
– but wrote an algorithm to automate the process
– integer linear programming problem
– makes it easier for me and fair to everyone
– article in June issue of Mathematics Today
Names Mon Tues Wed Thurs Fri Times
Barry T 0 0 1 1 0 2
Tom B 1 1 0 1 0 3
Gordon B 0 0 0 0 1 1
Peter W 1 1 0 0 0 2
Colin C 1 0 0 1 0 2
Mike M 0 1 1 1 1 3
Keith I 0 1 1 0 0 1
Alan C 1 0 0 1 0 2
John S 0 1 0 0 0 1
Keith B 1 0 1 0 0 2
George StC 1 1 1 1 0 1
Michael L 0 0 1 0 0 1
Phil M 0 1 0 0 0 1
Brian F 1 1 0 0 0 2
Peter K 0 1 0 1 0 2
Willie McM 0 0 0 1 0 1
Ken L 0 1 0 0 0 1
Availability matrix: A
The basic model
Solve in R using the MILP solver lp (part of the lpSolve package)
Generally, many equally-optimal solutions
𝑥𝑖𝑗 = 1 if man 𝑖 plays on day 𝑗 and if 𝐴𝑖𝑗 = 1
𝑔𝑗 = number of 4 − man groups on day 𝑗
𝑗
𝑥𝑖𝑗 ≤ 𝑇𝑖 ∀ 𝑖
𝑖
𝑥𝑖𝑗 − 4𝑔𝑗 = 0 ∀ 𝑗
Maximise 𝑧 =
𝑖𝑗
𝑥𝑖𝑗 (or number of matches in the week)
Equity issues
}
𝐺1 and 𝐺2 act as secondary criteria, after no. matches
𝑚𝑖 = 𝑗 𝑥𝑖𝑗 = number of matches played by man 𝑖
Solution 1: 𝑚 𝐴 = 1 and 𝑚 𝐵 = 1
Solution 2: 𝑚 𝐴 = 2 and 𝑚 𝐵 = 0
𝑦𝑖
(𝑘)
= 1 if man 𝑖 gets at least 𝑘 matches in the week
𝐺 𝑘 = 𝑖 𝑦𝑖
(𝑘)
= number getting at least 𝑘 matches
solution 1 fairer
If – then constraints
If 𝑚𝑖 ≥ 𝑘 then 𝑦𝑖
𝑘
= 1 non − linear but imposed by
𝑘𝑦𝑖
(𝑘)
≤ 𝑚𝑖 ≤ 𝑘 − 𝜀 1 − 𝑦𝑖
(𝑘)
+ 5𝑦𝑖
(𝑘)
Maximise 𝑧 = 𝑖𝑗 𝑥𝑖𝑗 + 𝛼1 𝐺1 + 𝛼2 𝐺2
𝛼1 = 0.01 and 𝛼2 = 0.0001
𝐺1 = 16 𝐺2 = 8
Solution: assigned groups
Day Players
Monday Peter W, Colin C, Keith B, Brian F
Tuesday Tom B, Peter W, Mike M, John S, Phil M, Brian F, Peter K, Ken L
Wednesday Barry T, Keith I, Keith B, Michael L
Thursday Barry T, Tom B, Colin C, Mike M, Alan C, George StC, Peter K, Willie McM
Copy and paste into email message to group members
Two devices in the optimisation
• Integer linear programing problem
– mix of binary and integer variables
• “If-then” conditions: if 𝑚𝑖 ≥ 𝑘 then 𝑦𝑖
𝑘
= 1
– intrinsically non-linear
– but implemented via linear constraints
• Hierarchy of criteria: 𝑖𝑗 𝑥𝑖𝑗, 𝐺1, 𝐺2
– but combined into one objective function
– 𝑧 = 𝑖𝑗 𝑥𝑖𝑗 + 𝛼1 𝐺1 + 𝛼2 𝐺2
Summary
• Efficient and fair
– algorithm makes life much easier for me
– no favouritism: random permutation of names
• Article in Mathematics Today
– or at http://discovery.ucl.ac.uki/1522020
• Algorithm now produced as a Shiny App
– https://mikemaher.shinyapps.io/TennisApp
• So no need for R or knowledge of the algorithm
– just need to upload the availability matrix
Thank you!
Any questions?

Contenu connexe

En vedette

Critical issues in estimating human exposure to traffic related air pollution...
Critical issues in estimating human exposure to traffic related air pollution...Critical issues in estimating human exposure to traffic related air pollution...
Critical issues in estimating human exposure to traffic related air pollution...Institute for Transport Studies (ITS)
 
Autonomous Vehicles
Autonomous VehiclesAutonomous Vehicles
Autonomous VehiclesIoT613
 
Study HERE SBD - How autonomous vehicles could relieve or worsen traffic cong...
Study HERE SBD - How autonomous vehicles could relieve or worsen traffic cong...Study HERE SBD - How autonomous vehicles could relieve or worsen traffic cong...
Study HERE SBD - How autonomous vehicles could relieve or worsen traffic cong...Ludovic Privat
 
2016- A Year in Review of the Development of Autonomous vehicles
2016- A Year in Review of the Development of Autonomous vehicles2016- A Year in Review of the Development of Autonomous vehicles
2016- A Year in Review of the Development of Autonomous vehiclesJen Rossi
 
Millennials on the move - life transitions and Australian millennials
Millennials on the move - life transitions and Australian millennialsMillennials on the move - life transitions and Australian millennials
Millennials on the move - life transitions and Australian millennialsInstitute for Transport Studies (ITS)
 
Connected & Autonomous vehicles: cybersecurity on a grand scale v1
Connected & Autonomous vehicles: cybersecurity on a grand scale v1Connected & Autonomous vehicles: cybersecurity on a grand scale v1
Connected & Autonomous vehicles: cybersecurity on a grand scale v1Bill Harpley
 
Autonomous Vehicles: the Intersection of Robotics and Artificial Intelligence
Autonomous Vehicles: the Intersection of Robotics and Artificial IntelligenceAutonomous Vehicles: the Intersection of Robotics and Artificial Intelligence
Autonomous Vehicles: the Intersection of Robotics and Artificial IntelligenceWiley Jones
 
Wenyuan xu Minrui yan can you trust autonomous vehicles_slides_liu_final
Wenyuan xu Minrui yan can you trust autonomous vehicles_slides_liu_finalWenyuan xu Minrui yan can you trust autonomous vehicles_slides_liu_final
Wenyuan xu Minrui yan can you trust autonomous vehicles_slides_liu_finalPacSecJP
 
Designing Roads for AVs (autonomous vehicles)
Designing Roads for AVs (autonomous vehicles)Designing Roads for AVs (autonomous vehicles)
Designing Roads for AVs (autonomous vehicles)Jeffrey Funk
 
MEMS and Sensors in Automotive Applications on the Road to Autonomous Vehicle...
MEMS and Sensors in Automotive Applications on the Road to Autonomous Vehicle...MEMS and Sensors in Automotive Applications on the Road to Autonomous Vehicle...
MEMS and Sensors in Automotive Applications on the Road to Autonomous Vehicle...MicroVision
 
Smart infrastructure for autonomous vehicles
Smart infrastructure for autonomous vehicles Smart infrastructure for autonomous vehicles
Smart infrastructure for autonomous vehicles Jeffrey Funk
 
Autonomous Vehicles: Technologies, Economics, and Opportunities
Autonomous Vehicles: Technologies, Economics, and OpportunitiesAutonomous Vehicles: Technologies, Economics, and Opportunities
Autonomous Vehicles: Technologies, Economics, and OpportunitiesJeffrey Funk
 
The Future Development of Traffic Signals and the Impact of Autonomous Vehicles
The Future Development of Traffic Signals and the Impact of Autonomous VehiclesThe Future Development of Traffic Signals and the Impact of Autonomous Vehicles
The Future Development of Traffic Signals and the Impact of Autonomous VehiclesJumpingJaq
 

En vedette (19)

Critical issues in estimating human exposure to traffic related air pollution...
Critical issues in estimating human exposure to traffic related air pollution...Critical issues in estimating human exposure to traffic related air pollution...
Critical issues in estimating human exposure to traffic related air pollution...
 
Creative industries flexibility of work and travel
Creative industries flexibility of work and travelCreative industries flexibility of work and travel
Creative industries flexibility of work and travel
 
Autonomous Vehicles
Autonomous VehiclesAutonomous Vehicles
Autonomous Vehicles
 
2014 MATC Spring Lecture Series: Chris Schwarz
2014 MATC Spring Lecture Series: Chris Schwarz2014 MATC Spring Lecture Series: Chris Schwarz
2014 MATC Spring Lecture Series: Chris Schwarz
 
Study HERE SBD - How autonomous vehicles could relieve or worsen traffic cong...
Study HERE SBD - How autonomous vehicles could relieve or worsen traffic cong...Study HERE SBD - How autonomous vehicles could relieve or worsen traffic cong...
Study HERE SBD - How autonomous vehicles could relieve or worsen traffic cong...
 
2016- A Year in Review of the Development of Autonomous vehicles
2016- A Year in Review of the Development of Autonomous vehicles2016- A Year in Review of the Development of Autonomous vehicles
2016- A Year in Review of the Development of Autonomous vehicles
 
Autonomous Vehicles and Reducing GHG
Autonomous Vehicles and Reducing GHGAutonomous Vehicles and Reducing GHG
Autonomous Vehicles and Reducing GHG
 
Millennials on the move - life transitions and Australian millennials
Millennials on the move - life transitions and Australian millennialsMillennials on the move - life transitions and Australian millennials
Millennials on the move - life transitions and Australian millennials
 
Connected & Autonomous vehicles: cybersecurity on a grand scale v1
Connected & Autonomous vehicles: cybersecurity on a grand scale v1Connected & Autonomous vehicles: cybersecurity on a grand scale v1
Connected & Autonomous vehicles: cybersecurity on a grand scale v1
 
Autonomous Vehicles: the Intersection of Robotics and Artificial Intelligence
Autonomous Vehicles: the Intersection of Robotics and Artificial IntelligenceAutonomous Vehicles: the Intersection of Robotics and Artificial Intelligence
Autonomous Vehicles: the Intersection of Robotics and Artificial Intelligence
 
Wenyuan xu Minrui yan can you trust autonomous vehicles_slides_liu_final
Wenyuan xu Minrui yan can you trust autonomous vehicles_slides_liu_finalWenyuan xu Minrui yan can you trust autonomous vehicles_slides_liu_final
Wenyuan xu Minrui yan can you trust autonomous vehicles_slides_liu_final
 
Designing Roads for AVs (autonomous vehicles)
Designing Roads for AVs (autonomous vehicles)Designing Roads for AVs (autonomous vehicles)
Designing Roads for AVs (autonomous vehicles)
 
MEMS and Sensors in Automotive Applications on the Road to Autonomous Vehicle...
MEMS and Sensors in Automotive Applications on the Road to Autonomous Vehicle...MEMS and Sensors in Automotive Applications on the Road to Autonomous Vehicle...
MEMS and Sensors in Automotive Applications on the Road to Autonomous Vehicle...
 
Connected and Autonomous Vehicles: The Enabling Technologies
Connected and Autonomous Vehicles: The Enabling TechnologiesConnected and Autonomous Vehicles: The Enabling Technologies
Connected and Autonomous Vehicles: The Enabling Technologies
 
Smart infrastructure for autonomous vehicles
Smart infrastructure for autonomous vehicles Smart infrastructure for autonomous vehicles
Smart infrastructure for autonomous vehicles
 
Autonomous vehicles
Autonomous vehiclesAutonomous vehicles
Autonomous vehicles
 
Autonomous Vehicles: Technologies, Economics, and Opportunities
Autonomous Vehicles: Technologies, Economics, and OpportunitiesAutonomous Vehicles: Technologies, Economics, and Opportunities
Autonomous Vehicles: Technologies, Economics, and Opportunities
 
The Future Development of Traffic Signals and the Impact of Autonomous Vehicles
The Future Development of Traffic Signals and the Impact of Autonomous VehiclesThe Future Development of Traffic Signals and the Impact of Autonomous Vehicles
The Future Development of Traffic Signals and the Impact of Autonomous Vehicles
 
TpM2016: How to effectively manage autonomous vehicles ? A reflection on the ...
TpM2016: How to effectively manage autonomous vehicles ? A reflection on the ...TpM2016: How to effectively manage autonomous vehicles ? A reflection on the ...
TpM2016: How to effectively manage autonomous vehicles ? A reflection on the ...
 

Plus de Institute for Transport Studies (ITS)

Transport Projects Aimed at Fostering Economic Growth – experience in the UK ...
Transport Projects Aimed at Fostering Economic Growth – experience in the UK ...Transport Projects Aimed at Fostering Economic Growth – experience in the UK ...
Transport Projects Aimed at Fostering Economic Growth – experience in the UK ...Institute for Transport Studies (ITS)
 
London's Crossrail Scheme - its evolution, governance, financing and challenges
London's Crossrail Scheme  - its evolution, governance, financing and challengesLondon's Crossrail Scheme  - its evolution, governance, financing and challenges
London's Crossrail Scheme - its evolution, governance, financing and challengesInstitute for Transport Studies (ITS)
 
A clustering method based on repeated trip behaviour to identify road user cl...
A clustering method based on repeated trip behaviour to identify road user cl...A clustering method based on repeated trip behaviour to identify road user cl...
A clustering method based on repeated trip behaviour to identify road user cl...Institute for Transport Studies (ITS)
 
Social networks, activities, and travel - building links to understand behaviour
Social networks, activities, and travel - building links to understand behaviourSocial networks, activities, and travel - building links to understand behaviour
Social networks, activities, and travel - building links to understand behaviourInstitute for Transport Studies (ITS)
 
Shipping by the crowd - empirical analysis of operations and behavior
Shipping by the crowd - empirical analysis of operations and behaviorShipping by the crowd - empirical analysis of operations and behavior
Shipping by the crowd - empirical analysis of operations and behaviorInstitute for Transport Studies (ITS)
 
Towards an effective transitioning of public transport system in Ghana
Towards an effective transitioning of public transport system in GhanaTowards an effective transitioning of public transport system in Ghana
Towards an effective transitioning of public transport system in GhanaInstitute for Transport Studies (ITS)
 
Mobility in deprived settlements - walking and the built environment
Mobility in deprived settlements - walking and the built environmentMobility in deprived settlements - walking and the built environment
Mobility in deprived settlements - walking and the built environmentInstitute for Transport Studies (ITS)
 
Managing the introduction of electric vehicles into the car fleet of Scotland
Managing the introduction of electric vehicles into the car fleet of ScotlandManaging the introduction of electric vehicles into the car fleet of Scotland
Managing the introduction of electric vehicles into the car fleet of ScotlandInstitute for Transport Studies (ITS)
 

Plus de Institute for Transport Studies (ITS) (20)

Transport Projects Aimed at Fostering Economic Growth – experience in the UK ...
Transport Projects Aimed at Fostering Economic Growth – experience in the UK ...Transport Projects Aimed at Fostering Economic Growth – experience in the UK ...
Transport Projects Aimed at Fostering Economic Growth – experience in the UK ...
 
BA Geography with Transport Studies at the University of Leeds
BA Geography with Transport Studies at the University of LeedsBA Geography with Transport Studies at the University of Leeds
BA Geography with Transport Studies at the University of Leeds
 
Highways Benchmarking - Accelerating Impact
Highways Benchmarking - Accelerating ImpactHighways Benchmarking - Accelerating Impact
Highways Benchmarking - Accelerating Impact
 
Using telematics data to research traffic related air pollution
Using telematics data to research traffic related air pollutionUsing telematics data to research traffic related air pollution
Using telematics data to research traffic related air pollution
 
Masters Dissertation Posters 2017
Masters Dissertation Posters 2017Masters Dissertation Posters 2017
Masters Dissertation Posters 2017
 
Institute for Transport Studies - Masters Open Day 2017
Institute for Transport Studies - Masters Open Day 2017Institute for Transport Studies - Masters Open Day 2017
Institute for Transport Studies - Masters Open Day 2017
 
London's Crossrail Scheme - its evolution, governance, financing and challenges
London's Crossrail Scheme  - its evolution, governance, financing and challengesLondon's Crossrail Scheme  - its evolution, governance, financing and challenges
London's Crossrail Scheme - its evolution, governance, financing and challenges
 
Secretary of State Visit
Secretary of State VisitSecretary of State Visit
Secretary of State Visit
 
Business model innovation for electrical vehicle futures
Business model innovation for electrical vehicle futuresBusiness model innovation for electrical vehicle futures
Business model innovation for electrical vehicle futures
 
A clustering method based on repeated trip behaviour to identify road user cl...
A clustering method based on repeated trip behaviour to identify road user cl...A clustering method based on repeated trip behaviour to identify road user cl...
A clustering method based on repeated trip behaviour to identify road user cl...
 
Cars cars everywhere
Cars cars everywhereCars cars everywhere
Cars cars everywhere
 
Annual Review 2015-16 - University of leeds
Annual Review 2015-16 - University of leedsAnnual Review 2015-16 - University of leeds
Annual Review 2015-16 - University of leeds
 
Social networks, activities, and travel - building links to understand behaviour
Social networks, activities, and travel - building links to understand behaviourSocial networks, activities, and travel - building links to understand behaviour
Social networks, activities, and travel - building links to understand behaviour
 
Rail freight in Japan - track access
Rail freight in Japan - track accessRail freight in Japan - track access
Rail freight in Japan - track access
 
Shipping by the crowd - empirical analysis of operations and behavior
Shipping by the crowd - empirical analysis of operations and behaviorShipping by the crowd - empirical analysis of operations and behavior
Shipping by the crowd - empirical analysis of operations and behavior
 
Towards an effective transitioning of public transport system in Ghana
Towards an effective transitioning of public transport system in GhanaTowards an effective transitioning of public transport system in Ghana
Towards an effective transitioning of public transport system in Ghana
 
City regions, transport and devolution
City regions, transport and devolutionCity regions, transport and devolution
City regions, transport and devolution
 
Mobility in deprived settlements - walking and the built environment
Mobility in deprived settlements - walking and the built environmentMobility in deprived settlements - walking and the built environment
Mobility in deprived settlements - walking and the built environment
 
Incorporating social influence into hybrid choice models
Incorporating social influence into hybrid choice modelsIncorporating social influence into hybrid choice models
Incorporating social influence into hybrid choice models
 
Managing the introduction of electric vehicles into the car fleet of Scotland
Managing the introduction of electric vehicles into the car fleet of ScotlandManaging the introduction of electric vehicles into the car fleet of Scotland
Managing the introduction of electric vehicles into the car fleet of Scotland
 

Dernier

John Deere 7430 7530 Tractors Diagnostic Service Manual W.pdf
John Deere 7430 7530 Tractors Diagnostic Service Manual W.pdfJohn Deere 7430 7530 Tractors Diagnostic Service Manual W.pdf
John Deere 7430 7530 Tractors Diagnostic Service Manual W.pdfExcavator
 
Dubai Call Girls Size E6 (O525547819) Call Girls In Dubai
Dubai Call Girls  Size E6 (O525547819) Call Girls In DubaiDubai Call Girls  Size E6 (O525547819) Call Girls In Dubai
Dubai Call Girls Size E6 (O525547819) Call Girls In Dubaikojalkojal131
 
Vip Hot Call Girls 🫤 Mahipalpur ➡️ 9711199171 ➡️ Delhi 🫦 Whatsapp Number
Vip Hot Call Girls 🫤 Mahipalpur ➡️ 9711199171 ➡️ Delhi 🫦 Whatsapp NumberVip Hot Call Girls 🫤 Mahipalpur ➡️ 9711199171 ➡️ Delhi 🫦 Whatsapp Number
Vip Hot Call Girls 🫤 Mahipalpur ➡️ 9711199171 ➡️ Delhi 🫦 Whatsapp Numberkumarajju5765
 
Bandra Escorts, (*Pooja 09892124323), Bandra Call Girls Services
Bandra Escorts, (*Pooja 09892124323), Bandra Call Girls ServicesBandra Escorts, (*Pooja 09892124323), Bandra Call Girls Services
Bandra Escorts, (*Pooja 09892124323), Bandra Call Girls ServicesPooja Nehwal
 
9990611130 Find & Book Russian Call Girls In Vijay Nagar
9990611130 Find & Book Russian Call Girls In Vijay Nagar9990611130 Find & Book Russian Call Girls In Vijay Nagar
9990611130 Find & Book Russian Call Girls In Vijay NagarGenuineGirls
 
Delhi Call Girls Mayur Vihar 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Mayur Vihar 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Mayur Vihar 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Mayur Vihar 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
John Deere Tractors 6130M 6140M Diagnostic Manual
John Deere Tractors  6130M 6140M Diagnostic ManualJohn Deere Tractors  6130M 6140M Diagnostic Manual
John Deere Tractors 6130M 6140M Diagnostic ManualExcavator
 
如何办理美国西雅图大学毕业证(Seattle毕业证书)成绩单(学位证)原版一比一
如何办理美国西雅图大学毕业证(Seattle毕业证书)成绩单(学位证)原版一比一如何办理美国西雅图大学毕业证(Seattle毕业证书)成绩单(学位证)原版一比一
如何办理美国西雅图大学毕业证(Seattle毕业证书)成绩单(学位证)原版一比一meq5nzfnk
 
Call Girls in Malviya Nagar Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts Ser...
Call Girls in Malviya Nagar Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts Ser...Call Girls in Malviya Nagar Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts Ser...
Call Girls in Malviya Nagar Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts Ser...Delhi Call girls
 
Innovating Manufacturing with CNC Technology
Innovating Manufacturing with CNC TechnologyInnovating Manufacturing with CNC Technology
Innovating Manufacturing with CNC Technologyquickpartslimitlessm
 
Vip Mumbai Call Girls Mumbai Call On 9920725232 With Body to body massage wit...
Vip Mumbai Call Girls Mumbai Call On 9920725232 With Body to body massage wit...Vip Mumbai Call Girls Mumbai Call On 9920725232 With Body to body massage wit...
Vip Mumbai Call Girls Mumbai Call On 9920725232 With Body to body massage wit...amitlee9823
 
Delhi Call Girls Safdarjung 9711199171 ☎✔👌✔Body to body massage with sex
Delhi Call Girls Safdarjung 9711199171 ☎✔👌✔Body to body massage with sexDelhi Call Girls Safdarjung 9711199171 ☎✔👌✔Body to body massage with sex
Delhi Call Girls Safdarjung 9711199171 ☎✔👌✔Body to body massage with sexshivangimorya083
 
꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi **✿❀7042364481❀✿**Escorts ServiCes C...
꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi **✿❀7042364481❀✿**Escorts ServiCes C...꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi **✿❀7042364481❀✿**Escorts ServiCes C...
꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi **✿❀7042364481❀✿**Escorts ServiCes C...Hot Call Girls In Sector 58 (Noida)
 
Delhi Call Girls East Of Kailash 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls East Of Kailash 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls East Of Kailash 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls East Of Kailash 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Alina 7042364481 Call Girls Service Pochanpur Colony - independent Pochanpur ...
Alina 7042364481 Call Girls Service Pochanpur Colony - independent Pochanpur ...Alina 7042364481 Call Girls Service Pochanpur Colony - independent Pochanpur ...
Alina 7042364481 Call Girls Service Pochanpur Colony - independent Pochanpur ...Hot Call Girls In Sector 58 (Noida)
 
Chapter-1.3-Four-Basic-Computer-periods.pptx
Chapter-1.3-Four-Basic-Computer-periods.pptxChapter-1.3-Four-Basic-Computer-periods.pptx
Chapter-1.3-Four-Basic-Computer-periods.pptxAnjieVillarba1
 
Production documentary.ppt. x
Production documentary.ppt.               xProduction documentary.ppt.               x
Production documentary.ppt. x21005760
 
How To Troubleshoot Mercedes Blind Spot Assist Inoperative Error
How To Troubleshoot Mercedes Blind Spot Assist Inoperative ErrorHow To Troubleshoot Mercedes Blind Spot Assist Inoperative Error
How To Troubleshoot Mercedes Blind Spot Assist Inoperative ErrorAndres Auto Service
 
Greenery-Palette Pitch Deck by Slidesgo.pptx
Greenery-Palette Pitch Deck by Slidesgo.pptxGreenery-Palette Pitch Deck by Slidesgo.pptx
Greenery-Palette Pitch Deck by Slidesgo.pptxzohiiimughal286
 

Dernier (20)

John Deere 7430 7530 Tractors Diagnostic Service Manual W.pdf
John Deere 7430 7530 Tractors Diagnostic Service Manual W.pdfJohn Deere 7430 7530 Tractors Diagnostic Service Manual W.pdf
John Deere 7430 7530 Tractors Diagnostic Service Manual W.pdf
 
Dubai Call Girls Size E6 (O525547819) Call Girls In Dubai
Dubai Call Girls  Size E6 (O525547819) Call Girls In DubaiDubai Call Girls  Size E6 (O525547819) Call Girls In Dubai
Dubai Call Girls Size E6 (O525547819) Call Girls In Dubai
 
Vip Hot Call Girls 🫤 Mahipalpur ➡️ 9711199171 ➡️ Delhi 🫦 Whatsapp Number
Vip Hot Call Girls 🫤 Mahipalpur ➡️ 9711199171 ➡️ Delhi 🫦 Whatsapp NumberVip Hot Call Girls 🫤 Mahipalpur ➡️ 9711199171 ➡️ Delhi 🫦 Whatsapp Number
Vip Hot Call Girls 🫤 Mahipalpur ➡️ 9711199171 ➡️ Delhi 🫦 Whatsapp Number
 
Bandra Escorts, (*Pooja 09892124323), Bandra Call Girls Services
Bandra Escorts, (*Pooja 09892124323), Bandra Call Girls ServicesBandra Escorts, (*Pooja 09892124323), Bandra Call Girls Services
Bandra Escorts, (*Pooja 09892124323), Bandra Call Girls Services
 
Call Girls In Kirti Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In Kirti Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICECall Girls In Kirti Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In Kirti Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
 
9990611130 Find & Book Russian Call Girls In Vijay Nagar
9990611130 Find & Book Russian Call Girls In Vijay Nagar9990611130 Find & Book Russian Call Girls In Vijay Nagar
9990611130 Find & Book Russian Call Girls In Vijay Nagar
 
Delhi Call Girls Mayur Vihar 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Mayur Vihar 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Mayur Vihar 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Mayur Vihar 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
John Deere Tractors 6130M 6140M Diagnostic Manual
John Deere Tractors  6130M 6140M Diagnostic ManualJohn Deere Tractors  6130M 6140M Diagnostic Manual
John Deere Tractors 6130M 6140M Diagnostic Manual
 
如何办理美国西雅图大学毕业证(Seattle毕业证书)成绩单(学位证)原版一比一
如何办理美国西雅图大学毕业证(Seattle毕业证书)成绩单(学位证)原版一比一如何办理美国西雅图大学毕业证(Seattle毕业证书)成绩单(学位证)原版一比一
如何办理美国西雅图大学毕业证(Seattle毕业证书)成绩单(学位证)原版一比一
 
Call Girls in Malviya Nagar Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts Ser...
Call Girls in Malviya Nagar Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts Ser...Call Girls in Malviya Nagar Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts Ser...
Call Girls in Malviya Nagar Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts Ser...
 
Innovating Manufacturing with CNC Technology
Innovating Manufacturing with CNC TechnologyInnovating Manufacturing with CNC Technology
Innovating Manufacturing with CNC Technology
 
Vip Mumbai Call Girls Mumbai Call On 9920725232 With Body to body massage wit...
Vip Mumbai Call Girls Mumbai Call On 9920725232 With Body to body massage wit...Vip Mumbai Call Girls Mumbai Call On 9920725232 With Body to body massage wit...
Vip Mumbai Call Girls Mumbai Call On 9920725232 With Body to body massage wit...
 
Delhi Call Girls Safdarjung 9711199171 ☎✔👌✔Body to body massage with sex
Delhi Call Girls Safdarjung 9711199171 ☎✔👌✔Body to body massage with sexDelhi Call Girls Safdarjung 9711199171 ☎✔👌✔Body to body massage with sex
Delhi Call Girls Safdarjung 9711199171 ☎✔👌✔Body to body massage with sex
 
꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi **✿❀7042364481❀✿**Escorts ServiCes C...
꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi **✿❀7042364481❀✿**Escorts ServiCes C...꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi **✿❀7042364481❀✿**Escorts ServiCes C...
꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi **✿❀7042364481❀✿**Escorts ServiCes C...
 
Delhi Call Girls East Of Kailash 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls East Of Kailash 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls East Of Kailash 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls East Of Kailash 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Alina 7042364481 Call Girls Service Pochanpur Colony - independent Pochanpur ...
Alina 7042364481 Call Girls Service Pochanpur Colony - independent Pochanpur ...Alina 7042364481 Call Girls Service Pochanpur Colony - independent Pochanpur ...
Alina 7042364481 Call Girls Service Pochanpur Colony - independent Pochanpur ...
 
Chapter-1.3-Four-Basic-Computer-periods.pptx
Chapter-1.3-Four-Basic-Computer-periods.pptxChapter-1.3-Four-Basic-Computer-periods.pptx
Chapter-1.3-Four-Basic-Computer-periods.pptx
 
Production documentary.ppt. x
Production documentary.ppt.               xProduction documentary.ppt.               x
Production documentary.ppt. x
 
How To Troubleshoot Mercedes Blind Spot Assist Inoperative Error
How To Troubleshoot Mercedes Blind Spot Assist Inoperative ErrorHow To Troubleshoot Mercedes Blind Spot Assist Inoperative Error
How To Troubleshoot Mercedes Blind Spot Assist Inoperative Error
 
Greenery-Palette Pitch Deck by Slidesgo.pptx
Greenery-Palette Pitch Deck by Slidesgo.pptxGreenery-Palette Pitch Deck by Slidesgo.pptx
Greenery-Palette Pitch Deck by Slidesgo.pptx
 

Speed limits accidents and assignment

  • 1. Speed Limits, Accidents and Assignment Mike Maher University College London ITS Leeds, 12 December 2016
  • 2. Overview of the talk • Describing two pieces of recent work • First: two projects on speed limits – effect of 20 mph speed limits – effect on accidents of increase in HGV speed limits – both being carried out by Atkins – both being done for DfT – my role is providing statistical analysis guidance – no data as yet on 20 mph limits • Second: a novel assignment problem – but not as we generally know it!
  • 3.
  • 4. HGV speed limit increase • Increases came into force at start of April 2015 • From 40mph to 50 mph on single carriageways .. • .. and from 50mph to 60mph on duals • DfT want to know if any impact on accidents • Quarterly accident data on affected roads – for 10 years before the change .. – .. and then up to three years after • So far only data for two quarters after – so just an illustration of what is to be done – and the modelling to be applied
  • 5. Time series model (1) • average 400 accs / month • average 100 FSCs / month • 41 obs’ns before • Clear trend and seasonality • Fit SARIMA model • Use auto.arima function in R • d = 1, D = 1 • AR(1) term log(all accidents) actual (blue), fitted (red)
  • 6. Time series model (2) • Then fit an intervention model – using all quarterly data (43 observations) – include a regressor variable: before / after dummy – = 0 in before period, and = 1 in after period – coefficient β estimates step change in mean of log(accidents) following speed limit increase – allowing for trend and seasonality – so β < 0 implies a reduction in accidents – accident rate then factored by exp(β)
  • 7. Results • All accidents – 𝛽 = -0.276 (se = 0.088), so a reduction in accidents – 95% CI on change: (-36%, -10%) • FSCs – 𝛽 = -0.212 (se = 0.110), so a reduction in FSCs – 95% CI on change: (-35%, 0%) • But clearly very limited amount of after data so far – further work to be done in early 2017
  • 8.
  • 9. Tennis assignment problem • Midweek men’s doubles group in North Berwick – around 20 men: retired, semi-retired etc – each lets me know when available next week .. – .. and how much they’d like / be willing to play – pattern changes from week to week – I put together the groups of four (or eight) – maximise number of matches, satisfying the constraints • Used to do it manually: pen and paper – but wrote an algorithm to automate the process – integer linear programming problem – makes it easier for me and fair to everyone – article in June issue of Mathematics Today
  • 10. Names Mon Tues Wed Thurs Fri Times Barry T 0 0 1 1 0 2 Tom B 1 1 0 1 0 3 Gordon B 0 0 0 0 1 1 Peter W 1 1 0 0 0 2 Colin C 1 0 0 1 0 2 Mike M 0 1 1 1 1 3 Keith I 0 1 1 0 0 1 Alan C 1 0 0 1 0 2 John S 0 1 0 0 0 1 Keith B 1 0 1 0 0 2 George StC 1 1 1 1 0 1 Michael L 0 0 1 0 0 1 Phil M 0 1 0 0 0 1 Brian F 1 1 0 0 0 2 Peter K 0 1 0 1 0 2 Willie McM 0 0 0 1 0 1 Ken L 0 1 0 0 0 1 Availability matrix: A
  • 11. The basic model Solve in R using the MILP solver lp (part of the lpSolve package) Generally, many equally-optimal solutions 𝑥𝑖𝑗 = 1 if man 𝑖 plays on day 𝑗 and if 𝐴𝑖𝑗 = 1 𝑔𝑗 = number of 4 − man groups on day 𝑗 𝑗 𝑥𝑖𝑗 ≤ 𝑇𝑖 ∀ 𝑖 𝑖 𝑥𝑖𝑗 − 4𝑔𝑗 = 0 ∀ 𝑗 Maximise 𝑧 = 𝑖𝑗 𝑥𝑖𝑗 (or number of matches in the week)
  • 12. Equity issues } 𝐺1 and 𝐺2 act as secondary criteria, after no. matches 𝑚𝑖 = 𝑗 𝑥𝑖𝑗 = number of matches played by man 𝑖 Solution 1: 𝑚 𝐴 = 1 and 𝑚 𝐵 = 1 Solution 2: 𝑚 𝐴 = 2 and 𝑚 𝐵 = 0 𝑦𝑖 (𝑘) = 1 if man 𝑖 gets at least 𝑘 matches in the week 𝐺 𝑘 = 𝑖 𝑦𝑖 (𝑘) = number getting at least 𝑘 matches solution 1 fairer
  • 13. If – then constraints If 𝑚𝑖 ≥ 𝑘 then 𝑦𝑖 𝑘 = 1 non − linear but imposed by 𝑘𝑦𝑖 (𝑘) ≤ 𝑚𝑖 ≤ 𝑘 − 𝜀 1 − 𝑦𝑖 (𝑘) + 5𝑦𝑖 (𝑘) Maximise 𝑧 = 𝑖𝑗 𝑥𝑖𝑗 + 𝛼1 𝐺1 + 𝛼2 𝐺2 𝛼1 = 0.01 and 𝛼2 = 0.0001 𝐺1 = 16 𝐺2 = 8
  • 14. Solution: assigned groups Day Players Monday Peter W, Colin C, Keith B, Brian F Tuesday Tom B, Peter W, Mike M, John S, Phil M, Brian F, Peter K, Ken L Wednesday Barry T, Keith I, Keith B, Michael L Thursday Barry T, Tom B, Colin C, Mike M, Alan C, George StC, Peter K, Willie McM Copy and paste into email message to group members
  • 15. Two devices in the optimisation • Integer linear programing problem – mix of binary and integer variables • “If-then” conditions: if 𝑚𝑖 ≥ 𝑘 then 𝑦𝑖 𝑘 = 1 – intrinsically non-linear – but implemented via linear constraints • Hierarchy of criteria: 𝑖𝑗 𝑥𝑖𝑗, 𝐺1, 𝐺2 – but combined into one objective function – 𝑧 = 𝑖𝑗 𝑥𝑖𝑗 + 𝛼1 𝐺1 + 𝛼2 𝐺2
  • 16. Summary • Efficient and fair – algorithm makes life much easier for me – no favouritism: random permutation of names • Article in Mathematics Today – or at http://discovery.ucl.ac.uki/1522020 • Algorithm now produced as a Shiny App – https://mikemaher.shinyapps.io/TennisApp • So no need for R or knowledge of the algorithm – just need to upload the availability matrix