July 18, 2022

Kia ora!

Week 1

‘Mathews…we are getting another of those strange ’aw blah es pan yol’ sounds.’

Good communication is essential! We need…

  • A common language (English)
  • A platform (lectures, labs, tutorials, email, Canvas)
  • Some rules and common sense
  • A comfortable, safe work atmosphere, and fun!

Me tiimata ta tatou - let’s get started!

Week 1
  • A little bit about the TAs and myself
  • The process of learning at uni (as opposed to high school…)
  • Why are we here? What do you expect?
  • Why come to lectures?
  • Relationship student-teacher, student-TA (make it interactive!)
  • Relationship student-student (learning groups!)
  • learning and emotions, creativity (studies show that learning difficult stuff is associated with positive emotions!)

“If you want to learn to think you need a dialogue”

Immanuel Kant, 1786

Teaching assistance team

Week 1
  • Head TA: Sanaa Nair
  • Cassandra Buhle Tshili
  • Sydney Curtis-Wilson
  • Roen McLeod
  • Dexter Liu

Please do not email them privately, use the course email address

Me tiimata ta tatou - let’s get started!

Week 1
  • the twofold difficulty of learning statistics and R
  • the twofold reward of learning statistics and R!
  • with R, you are standing on the shoulder of giants!
  • The difficulty of teaching statistical concepts and R… (what first?)
  • This can make a tricky start, but we are here to help!
  • Have the right attitude (YOU are responsible for your learning, we are here to help)

Kōrero - Communication

Week 1
  • First, read the information on Canvas (slides, announcements, weekly overviews)!
  • Read the FAQ (frequently asked questions, on Canvas)
  • Ask Dr Google!
  • BIOL501 2022 Facebook group. Here to discuss things and form learning groups. We will also monitor chats there (ask to join!), Canvas BIOL501 forum (chat)
  • only if all of the above don’t get you there, email
  • EMAIL: please use BIOL501@aut.ac.nz
  • If you cannot meet a deadline, apply for ‘special consideration’ on Canvas, don’t email us
  • If you would like to chat with one of us in person, please use our personal email addresses and make an appointment

My philosophy - or how not to fail this paper (evidence based!)

Week 1
  • COME TO YOUR LECTURES/LABS/TUTORIALS: those who are present tend to do well
  • Lectures are recorded, labs/tutorials are not
  • Be organised, time yourself: Revise your labs every single week!
  • Be creative, inquisitive, ask questions, don’t miss the train!
  • Be realistic: 102 hours of self-directed learning (see course guide) equates to 8.5 hours of homework per week, that’s 2 full afternoons/week!
  • Don’t get lost in the ocean of available resources, choose one, stick to it, read, practice!!

Lectures, labs, tutorials

Week 1
  • Lecture: Monday 8:00-9:50am
  • Be there, be there on time!
  • Labs: 8 lab/tutorial streams: Please look up times and room numbers from your timetables
  • You are encouraged to bring your own laptop, but there are desktops provided
  • NO labs/tutorials in week 1, they start in week 2.

Lectures, labs, tutorials

Week 1

Course administration and structure

Week 1
  • Need to access Canvas and AUT email address regularly!

  • Change lab stream? Please see the Science office staff (WS level 1)

  • Assessments: midsemester test/exam (25%/40%) plus two marks from the two assignments (15 and 20%)

  • Calculate your overall mark as follows

\[assign_1 \cdot 0.15 + assign_2 \cdot 0.2 + test \cdot 0.25 + exam \cdot 0.4\] - There are no longer practical/theory parts to be passed individually!

Course administration and structure

Week 1
  • 100% presence during labs is required (School policy)
  • If you can’t attend a lab for a valid reason, contact the School office and fill in a form, we will try to accommodate you in another lab stream for that week
  • If you are sick or have other valid reasons for not submitting an assignment, apply for special consideration!
  • Assignments are due in week 5 and week 12, see Canvas
  • Assignments are to be submitted via Canvas only!
  • Midsemester test: 1 hour in week 7, during lab sessions
  • Exam: 2 hours during week 13 (date will be announced)
  • Format of test and exam: short answer questions and multiple choice
  • Allowed documents: cheat sheet (single sided A4 page for the test, double sided for the exam), can be hand written or typed

Example of an A4 ‘Cheat Sheet’

Week 1

Key elements to this paper

Week 1
  • A preview of what is to come at the beginning of a lecture (weekly ‘learning outcomes’)
  • A summary of what you should have learnt at the end of a lecture
  • A glossary at the end of the lecture
  • The lab reports: take them seriously, they are your foundation for passing this paper. Follow the rules, but be creative! Add to them, make them your personal little course manual!
  • Practice in them and with them!
  • E.g., take notes during the lectures, then put them into your lab reports under the section ‘what have I learnt today…’
  • Please help us keep lectures and labs interactive. There is nothing better than a seemingly ‘dumb question’!

Resources for this paper

Week 1

‘If you want a statisics lecturer, I’ll do anything I can for you - I’m your man’ (modified from Leonard Cohen)…but:

‘Follow me the wise man said, but he walked behind.’ (also by Leonard Cohen, unmodified)


In plain language: we are here for you, but you first need to do your homework, come to lectures, do the labs, read…

Resources for this paper

Week 1
  • MOST IMPORTANT: Lectures (your presence, your notes) and lab reports, including your own additions, tutorials
  • Slides from lectures (via a link but also as pdf)
  • Countless internet resources (pdfs, videos), some suggestions will be sent out during the semester

If you want to dig deeper:

  • M.J. Crawley, The R Book, Wiley (approx. $120)

Slides are not enough! Not everything is online, if you are not in the lecture, it’s up to you to catch up, this is not an online only paper.

Timetable first half (tentative)

Week 1
Date Week Lab Assignment Topic
18.7. 1 - - Introduction, R, Rmarkdown
25.7. 2 1 - Hypotheses, variables, variation
1.8. 3 2 - Organising data, measuring variation
8.8. 4 3 - Distributions, quartiles, quantiles, probabilities
15.8. 5 4 1 Type I and type II error (Assignment 1 due Friday)
22.8. 6 5 - The t-test

Dates refer to lecture only!

Timetable second half (tentative)

Week 1
Date Week Lab Assignment Topic
12.9. 7 - - Week of midsemester test
19.9. 8 6 - The Chi-squared test, R coaching
26.9. 9 7 - Statistical power, power test, plotting/tabulating data correctly
3.10. 10 8 - Correlation analysis, reporting statistical results
10.10. 11 9 - Linear Regression
17.10. 12 10 2 Exam week, Assignment 2 due on Friday

Learning outcomes (from the paper outline)

Week 1

1. Demonstrate an understanding of biological variability and how it is measured and reported.

  • Explain systematic vs. unsystematic biological variation, explain accuracy and precision
  • Understand what a frequency distribution is
  • Be able to plot and interpret histograms
  • Be familiar with the most common distributions that are relevant for biological data sets (e.g. normal, uniform, poisson), be able to calculate probabilities and quantiles

Learning outcomes

Week 1

2. Demonstrate an understanding of sampling.

  • Explain the difference between a population and a sample
  • Know when to use the standard deviation vs. the standard error
  • Be able to design a simple biological experiment or observational study

Learning outcomes

Week 1

3. Demonstrate competence in basic biological and ecological data analyses

  • Be able to organise and process biological data sets
  • Use a series of simple tests like the t-test, correlation test, regression, Chi-squared, and their non-parametric alternatives where applicable.
  • Interpret the results in a biological context

Learning outcomes

Week 1

4. Demonstrate competence in reporting experimental results in a written format suitable for publication

  • Be able to draw scientifically accurate and correct figures and tables
  • Understand the basic structure of a scientific report
  • Appropriately report statistical results (scientific writing and layout, proper use of units etc.)

Learning outcomes

Week 1

5. Demonstrate an understanding of “significance”

  • Understand the difference between the word ‘significance’ in common language vs. statistics
  • Understand the concept of type I and type II errors
  • Understand the concept of statistical power

6. Present work at an appropriate academic standard.

Our tool

Week 1

Drawing


What’s R? Who wants R?

Week 1
  • A free statistics package, created by Ross Ihaka (Prof. at UoA) and Robert Gentleman in the early nineties
  • Now covering everything from data processing to graphing
  • Based on a command line interface
  • R has become the data processing, analysis, plotting and programming tool in science
  • Your future employer may well ask for your R skills!
  • Commercial users include Google, Pfizer, Shell, Bank of America… but also DOC, crown research institutes, councils…
  • Enormous free online resources (helplists, code)
  • If this is the first and last time you do stats, look at R as an important learning experience!

Do I really have to learn R? Can I use Excel?

Week 1
  • The short answer is: there is no way around R if you are doing a BSc at AUT and probably any top-ranking university
  • You will use it in Research Techniques (BIOL602), Terrestrial Ecology (ECOL602), Biogeography (ENVS622), Pacific Island Ecosystems (ECOL732), Research Project (SCIE701), and most definitely in your postgraduate studies!
  • You will need it for your Honours, Masters and PhD if that’s where you’re heading
  • Our recommendation to use R is not commercially motivated (R is free)
  • AUT is a top-ranking uni and we are simply keeping up with the best universities

Pacific Island Ecosystems ECOL732

Week 1

Pacific Island Ecosystems ECOL732

Week 1

Pacific Islands Costal Ecology ECOL732

Week 1

What can R do?

Week 1

The ‘Excel mess’

Week 1

The ‘art of R’ - reproducible reporting!

Week 1

RStudio

Week 1

The R syntax

Week 1
  • …is intuitive, because your commands are interactive
> 2+3
[1] 5
> sqrt(9)
[1] 3
> sqrt('Peter')
Error in sqrt("Peter"): non-numeric argument to mathematical function
  • …is intuitive, because the structure remains always the same:

function(argument1 = value1, argument2 = value2, ...)

Example: the function round, the first argument are the numbers you want to round, and the second argument the decimals you would like to retain (see lab!)

> round(x = 4.3498727, digits = 2)
[1] 4.35

Because learning statistics AND R is difficult

Week 1

…you will receive an ‘R Markdown’ file for every lab:

  • the file is ready to be compiled or ‘knitted’, but you still need to do work… (fill things in, edit it and write short pieces of R code)
  • you don’t need to submit the lab reports, but they are the best practice for your assignments and your test/exam!
  • Feedback on your lab reports is given during tutorials!

Rules for the lab reports

Week 1
  • Yes, you MUST use R markdown
  • We will help you with the technicalities, it may appear messy at first but you will see the benefits soon and get used to the process
  • Some flexibility is expected (trouble shooting, using google)
  • You may delete the instructions if you want to, the lab reports are living, interactive, and personalised documents!
  • You are encouraged to add extra stuff, but keep it concise and well organised. Messy and partly wrong additions will end up confusing you!
  • Use ‘>’ before you type, it makes it easier for you to distinguish your answers from our instructions

Rules for the two assignments

Week 1
  • They are based on the lab reports, but they are NOT the same
  • They need to be handed in on Canvas
  • Make sure you save both your code (the Rmarkdown file) and your (compiled) word file!
  • ALWAYS submit the word file, not the Rmarkdown file
  • You must submit your own report. If you plagiarise your answers, there will be drastic consequences

If you would like to get started at home (on the lab reports/assignments)

Week 1
  • Download and install R (google ‘R software’ > Download R for Windows/mac)
  • Close R
  • Download and install RStudio (google ‘Rstudio’)
  • Open RStudio
  • Click on Packages > Install, select ‘knitr’, ‘markdown’, and ‘rmarkdown’
  • Go to file > new file > R Markdown
  • Start playing :)

What will we have learnt by the end of this week?

Week 1
  • How to study for this paper
  • What resources to use
  • How/when to hand in the assignments (this is most important!)
  • How to use RMarkdown for lab reports/assignments

Glossary

Week 1
  • R
  • RStudio
  • RMarkdown
  • to ‘knit’ (compile) an Rmarkdown file
  • Console
  • Editor
  • R function, arguments, argument names