Tag Archives: Statistics

Course Review: Spatial Analysis of Ecological Data using R

Based on my previous statistical rantings, it might not surprise many of you that my idea of a holiday involves a stats course.  But let me at least try to defend this…

Back in April, Phil and I took a “working holiday” home to Europe.  A ‘holiday’ because we got to see our families, attend a wedding, get engaged ourselves, etc etc…  But a ‘working’ one because we respectively had French work meetings to attend and a PhD to finish.  Just when we were deciding what date to fly over, we both received a glowing advertisement for a statistics course on the West Coast of Scotland.  With no hesitation whatsoever, we booked our flights a week earlier than planned and got instantly psyched up for a week of geeky fun!

The course was called “Spatial Analysis of Ecological Data using R (SPAE)“, run by PR Statistics.  If the title alone wasn’t enough to entice you, it promised to investigate analyses relevant to different types of data (transect, grid, point), examine species distributions, determine environmental drivers, and quantify uncertainty.  With your statistical appetite thoroughly whetted, you would then learn above applying the results of these methods to wildlife conservation and resource management.  Altogether, a biologist’s dream.

The Teaching

IMG_3200

Learning in action!

We hadn’t come across PR Statistics before, so were um-ing and ah-ing about how good the course would be.  But what really swung it for us was the instructor – Prof Jason Matthiopoulos.  As well as being an esteemed biostatistician, Jason was one of our professors back on the Masters course in St Andrews – so once we saw he was the primary instructor we couldn’t wait to get back in his classroom!  As it turned out, we were beyond lucky with all regards to this course.  As well as Jason, the other two instructors – Helen Wade and James Grecian – were fabulous.  Full of information and willing to help, I really enjoyed the opportunity to soak up their R knowledge and brain-storm my own data with them.

The Company

PR Statistics is a relatively new company, founded by Oliver Hooker during his PhD back in 2014.  Oliver’s aim was to draw on the experience of academic scientists with strong statistical backgrounds and assist them in providing high-quality ecology-based courses.  Since delivering the first workshop, PR Statistics now offers 12 courses, covering everything from spatial ecology to bioinformatics, genetic analysis  to Bayesian modelling, using a mix of R, Python and Linux.  A full list of the courses available are listed here.

The Experience

Can statistical knowledge improve your Jenga prowess?  Jason puts it to the test...

Can statistical knowledge improve your Jenga prowess? Jason puts it to the test…

Throughout my undergrad, I experienced a few wet and dreary field trips in Scotland, so was unsure what to expect at the Millport Field Station, located on the small island of Cumbrae.  But the accommodation was fabulous – clean, warm and brand-new twin ensuite rooms just across the courtyard from the teaching facilities.  I enjoyed most of the meals provided in the canteen (although there were some dark mutterings from those previously unacquainted with the idea of Lorne sausages and haggis for breakfast), plus there was a games room and “adults only” bar lounge to facilitate some fierce pool games and Jenga battles in the evening.  I wish we’d had this during undergrad!

The course lasted for seven days, with the first five days focused on a series of lectures and practicals, and the final two days based on discussion groups.  Jason has a remarkable ability to take the fear out of statistical modelling; he explains all concepts in an easy-to-understand manner, and his enthusiasm for the subject convinces you that this really is amazingly interesting stuff!  The lectures were short enough to be digestible, with an emphasis on getting to the practicals to put these new skills to use.  During the two discussion days, we broke into smaller groups to discuss problems specific to our particular research projects.  After six years in Australia, I’ve become used to a different research culture – everyone here seems more closed about their research, scared of sharing ideas for fear of theft, much more ‘us’ and ‘them’.  So being in a group of people keen to share ideas, help each other problem-solve, and have open discussions about their work was amazing.

The people were one of the best things about this course.  As well as Oliver and the teaching team being super friendly and helpful, the students were a lovely bunch – keen to help each other in class and socialise in the evenings.  My 30th birthday fell mid-course, and I had been a bit worried about having it with a load of strangers on a wee island…  But Phil secretly went into cahoots with Oliver to organise a great celebration – booze, cake, and a quiz night!  A very personalised, memorable birthday 🙂  My birthday also coincidentally fell on a “half day”, so a bunch of us went kayaking around the island in the afternoon.  Getting up close with the local harbour and grey seals was awesome.  We’d been watching these guys from afar, as the classroom’s sea-ward wall consisted of a series of windows, allowing us to keep an eye out for porpoises, seals and otters throughout the day.  In the evenings, groups of us would go out otter-hunting, and on the final day one was spotted from the classroom window – cue 25 biologists running from the classroom and haring across the woodland, to follow the otter as it foraged around the coast!  Definitely people with a similar mind frame!

The SPAE April 2016 Team!

The SPAE April 2016 Team!

So, all in all, I thoroughly recommend checking out the PR Statistics courses.  Not only will you come away with bounds of new knowledge and ideas for your own research, but you’ll have the chance to spend a week in a wonderful location meeting a great bunch of people.  Statistics at its best 🙂

Advertisement

Why statistics is not “just maths”

Stats are comingEarlier today, a colleague and I were talking about a paper that we’re working on regarding fish acoustics.  He was asking if I would have time to do some statistical modelling of presence in regard to several environmental variables, and I hinted that I am a bit time-poor at the moment.  While we were discussing who else in the department could help with the statistics, I rattled off a fellow PhD student’s name.

What, them?  But they doesn’t know how to do programming!” said my physics-, engineering-, maths-background colleague in dismay.

But it’s not programming as you think of it,” I replied.  “It’s statistics.

*sarcastic look*

What’s the difference?” he asked.

Well, the answer is that there is a pretty big difference…

Theory vs. Applied

When I was at secondary school, in our final year we had the choice of choosing Advanced Mathematics or Applied Mathematics (aka statistics).

The Advanced Mathematics course taught you how to “select and apply complex mathematical techniques in a variety of mathematical situations”.  This included units such as algebra, calculus, geometry, and equations.

The Applied Mathematics (Statistics) course taught how to “make sense of inherent natural variation in a wide variety of contexts through the collection, analysis and interpretation of data”.  This included units such as hypothesis testing, data analysis, data modelling, and statistical inference.

So basically, one course gave you a year of studying complex, in-depth equations and formulas whilst the other course gave you a year of mathematical problem-solving.  By that time I had already been accepted into studying Zoology, so was strongly encouraged to take this opportunity to get familiar with statistics.  The justification was that it would give me a head-start before I started using statistics in my research later on.

one-does-not-simply-pass-statisticsOf course, the fact that I spectacularly failed the course has nothing to do with anything.  Although in fairness, we started with a class of 30 and were swiftly whittled down to a class of 3 when the other students realised what a true form of hell statistics really are.  Many of them transferred to the Advanced Maths class instead, because they thought it was easier.  And despite my overall grade, it did in fact give me a head-start when I started studying statistics at a university level since most students had never touched the subject before.

As an added bonus, it means I can now also honestly say that you don’t need to pass Maths in high school to succeed in science.  However, this does make me rather unpopular with parents at University Open Days, and as a result I’m generally discouraged from attending…

Fear of statistics – or fear of maths?

Most biologists recoil in horror at the mere thought of statistics. Some less-kind scientists suggest that this is why biologists are studying biology and not a ‘hard’ science like physics.  However, the truth is that most physicists would recoil in horror from the idea of statistics too – if only they had to use them.  But their work is often better captured by the mathematical formulae and equations that fall into the ‘Advanced Mathematics’ camp, rather than modelling natural variation, so the opportunity to dabble in stats never arises.  Instead, mathematical knowledge feeds into computer programming to run loops, calculus, algebraic equations, and a whole number of other mysterious things.

When you create statistical models, yes there is still an element of programming to it.  But the underlying logic is quite different.  Statistics may fall under the umbrella of mathematics, but they have quite different applications.  For example, if I was to write a program that would could calculate different acoustic measurements from a bunch of recordings, this would be quite different to writing some code to compare those resulting measurements.  A fine line, but a line nonetheless.

Each year, I help teach a course on Quantitative Biology – which is basically statistics in disguise.  I help guide undergraduate biology students through their first steps in statistics and introduce them to a simple software program which will do most of the basic stuff for them in a couple of clicks.  Each year there are a few students who complain that they’re no good at maths, that they’ll never understand this, that they don’t see the point.  Yet by the end of term they’re analysing and clicking away without hesitation, and (in the words of one student) “finally understanding the results sections of papers”.  The key is removing the fear of statistics instigated originally by a fear of maths.

“Put your money where your mouth is”

Over the past few months, I have been working towards completing my first PhD paper.  This has focused on describing the soundscape of a section of the Swan River, and among other things involved modelling the occurrence of different sound sources across different temporal scales.  As a result, after a long sabbatical whilst in pursuit of fieldwork skills / scholarships / rent money, I was thrown in the deep-end of statistics.

p-valueAt first I avoided it; there were plenty of other things to do, and to be honest the thought terrified me.  After all, I failed this at school!  My Undergraduate and Masters classes were okay, but not particularly pleasant!  Can’t I just pay someone to do this?!  But, after completing every other possible task, I took a deep breath, opened our collection of Alain Zuur books, and plunged back in.

And whilst I wouldn’t say that I loved it, there was some enjoyment.  I liked investigating my data, confirming relationships, and finding significant results.  There were a few temper tantrums, but hell did I learn a lot.  So for now, I’d say that statistics and I have a cautiously optimistic relationship.

Conclusion

Hey girlSo in summary, mathematics is classroom theory whilst statistics is real-world applied data.  To be good at statistics, you don’t actually have to be particularly good at maths.  What you do need to be good at is problem-solving, applying logic, manipulating information, and pulling biological meaning from numbers.

In fact, I would even go so far as to say there is a significant difference between mathematics and statistics!

[Note – In statistics circles, this joke is hilarious.  Admittedly in normal circles, it may fall somewhat flat.  Hopefully my undergrads get it…]

And if nothing else, at least studying statistics has opened up a whole new world of internet memes!

Heteroscedacity