Know Your Place: How we ranked areas in England, Scotland and Wales
Here is how we created a ranking of the top and bottom places to be young in Britain.
Gathering the data
For each of Britain's local authorities (LAs) we gathered data on 11 measures, listed below, that are relevant to young people.
To make sure that the measures are important to young people, we carried out a poll of 1,038 British 16-24 year-olds.
Data for rent, buses and mental health was not available in Northern Ireland, so we were not able to include Northern Ireland in our analysis.
The raw data for each LA was standardised to correct for the fact that some LAs are larger or have more people living in them than others.
For example, many young people move to Manchester so the raw numbers for youth internal migration to Manchester look very high. But we divided this number by Manchester's existing population to make it more comparable to other LAs.
Data sources
Mental health targets are different in each nation. In England the target is that 75% of people will be seen within six weeks. In Wales it's 80% within four weeks and in Scotland it's 90% within 18 weeks.
Turning the data into scores
For each measure, the LAs' standardised data was transformed to fit on a scale from zero to 10, where a lower score means a poorer performance on that measure.
This was done in a way that prevented one unusually good (or bad) measure from dominating a local authority's score.
For those who like the details, the transformation involved centring and scaling each measure, squishing outliers with a sigmoid function, and rescaling the resulting scores so that the best and worst scores for each measure were 10 and zero.
So for example, a score of zero doesn't mean that a local authority has no bars, pubs or clubs - it means that it has the lowest number of venues per unit area.
Each LA's total score is the average of its scores on each individual measure.
Although an LA can score between zero and 10 on any single measure, most authorities are a mixture of high and low scores so the average scores for LAs are bunched between three and seven.
When you enter your preferences to find your best place, we use a different technique to find the local authority that is closest to perfect for you.
We defined "closest to perfect" as having the smallest weighted Euclidean distance from a 10 on every measure, with the weights defined by the preferences you enter.
Because our map is based on one technique (the highest average score) and our preference calculator is based on another technique (the closest to perfect for your preferences), they don't always agree on the top three.
Know Your Place is a joint project by BBC Radio 1 Newsbeat and BBC Visual Journalism.
Follow Newsbeat on Instagram ↗, Facebook ↗ and Twitter ↗.
Listen to Newsbeat live at 12:45 and 17:45 every weekday on BBC Radio 1 and 1Xtra - if you miss us you can listen back here.