I don't know if you know this but Facebook knows a lot about you.

It knows a lot about your neighbours, the shops you buy your groceries from, your family, the town you're from and your relationship. In fact, they can even predict if you're about to go into a relationship, or if you're cheating on your partner. If that sounds scary - it doesn't need to.

In fact, all of the data you put into Facebook is the reason it's free to use. If there was no way for them to earn money, all those spam stories you've probably read, maybe even shared over the years about Facebook introducing a charge, would have come to reality - and nobody wants that.

So what exactly does Facebook do with this information? They allow marketers - like myself - and other members of the public to target advertisements, posts and other content at you when you're actively looking to be engaged, and that's priceless. Think about it. Have you ever visited Domino's website and looked at the ice cream, only to decide that you'll stick with your healthy eating plan after all? Then, all of a sudden, you get hit by a post where someone is eating that oh so delicious ice cream? That's Facebook at work. In fact, it's what I hope to achieve for my clients alongside a whole host of more traditional PR.

What else can be done with this data? Well, it can work as an almost up to the minute census of just what's going on in your city, country or continent. What sort of information can we gather from this? We can work out the most popular content producers in cities across Scotland, we can investigate the education levels in different cities for different genders and age brackets. We can even monitor relationships.

So what does this data say about Scotland? Let's have a look.

Well, we know that compared to the rest of the UK Scots are 7% less likely to be single, with most Scots in a relationship at some level. But worry not all you singletons, at least 27% of you are in the same boat.

And what of education? The data shows Scots are less likely than the rest of the UK to attend university or complete a postgraduate degree.

Where do Scots get their news, weather and sport? Turns out it's from three main sources: STV News, Windy Wilson Weather and Road Reports, and the Daily Record.

As interesting as that information is - we can delve even further and compare city to city. So let's do just that. What are Scotland's cities like in terms of relationship status?

Edinburgh is the city of broken hearts and singletons, with marriage and engagements 26% less likely than the rest of the UK and the level of people single a whole 12% higher.

Aberdeen is pretty average, with most people being in a relationship, although 30% of the population have yet to meet their match.

Dundee is a surprise though.

Facebook users from Dundee are 17% more likely than the rest of the UK to be in a relationship but 13% less likely to be married. Does that make Dundee the city of Casanovas, Scotland's love capital? I'm sure Dundonians would love to say so!

It's not all just romance and hotel rooms mind, there are some pretty interesting insights into where Scotland falls in relation to the rest of the UK in education levels.

If you live in Edinburgh, you're less likely to have only a high school pass to your name and in fact much more likely to have attended university, with a whopping 73% of Edinburgh residents having achieved a degree or a postgrad. This could be skewed due to the fact that Edinburgh is a big university town. So how does Glasgow compare?

Well, it's not great for the academics.

If you live in Glasgow, you're almost 10% more likely to only have attended high school than the rest of the UK taken together. Dundee, the city of innovation, must have a large university degree ratio compared to rest of the UK, right?

In fact, despite 71% of the Facebook population holding a degree of some form, Dundee is pretty average.

Almost 75% of Aberdeen residents hold a degree or postgrad. As Scotland's oil capital did you expect any less?

You'll notice that the levels of education for the cities is quite high - the same can't be said for rural communities and small towns up and down Scotland. There's real scope for academics to use this data and if you're interested, I'd be happy to help. I can teach you how to be just as nosey as I am.

We'll give Isa from Still Game a run for her money.

Kenny Murray is a digital strategist for Edinburgh-based public relations agency Holyrood PR. His specialisms include social media and data analysis. Follow him on Twitter at @kennymurray.