The places in that table do not tell us much on their own. Considering that wick has several areas listed in the Scottish Index of multiple deprivation. Or that some places like Edinburgh have higher numbers of various levels of private schools where affluence buys more education.

Income levels may also point to other influences and Highland has below average income levels.

There are many other factors affecting the outcomes in schools.

The bare results in exams are just one table.