‘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, blackboard)
- Some rules and common sense
- A comfortable, safe work atmosphere, and fun!
Me tiimata ta tatou - let’s get started!
- 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
- Head TA: Lena Trnski
- Cassandra Buhle Tshili
- Abbie Henneker
- Nikita Jones
- Sanaa Nair
Please do not email them privately, use the course email address
Me tiimata ta tatou - let’s get started!
- 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
- First, read the information on blackboard (slides, announcements, course guide)!
- Read FAQ (frequently asked questions, on blackboard)
- Ask Dr Google!
- BIOL501 2021 Facebook group. Here to discuss things and form learning groups. We will also monitor chats there (ask to join!)
- 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 blackboard, 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!)
- 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
- Lecture: Monday 4:10-6pm
- Be there, be there on time!
- Labs: 9 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
Course administration and structure
- Need to access blackboard and AUT email address regularly!
- Change lab stream? Please see the Science office staff (WS level 5)
- Theory: midsemester test/exam (30/70)
- Practical: two marks from lab reports (50/50)
- Three lab reports will be marked, the better two count for your practical mark
- Overall mark: theory/practical (70/30)
- Calculate your overall mark as follows
\[(lab_1 \cdot 0.5 + lab_2 \cdot 0.5) \cdot 0.3 + (test \cdot 0.3 + exam \cdot 0.7) \cdot 0.7 \] - AND you need to pass both the practical and the theory to pass the paper!
Course administration and structure
- 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 a lab, apply for special consideration!
- Lab reports are due on Thursday 4pm following the week of the lab
- Labs to be submitted via turnitin only! (First one July 29th 4pm, etc.)
- Midsemester test: 1 hour in week 7, during lab sessions
- Exam: 2 hours during weeks 13-15 (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’
Key elements to this paper
- A preview of what is to come at the beginning of a lecture (‘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 me keep lectures and labs interactive. There is nothing better than a seemingly ‘dumb question’!
Resources for this paper
‘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
- 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)
| Date | Week | Lab | Lab due | Topic |
|---|---|---|---|---|
| 12.7. | 1 | - | - | Introduction, R, Rmarkdown |
| 19.7. | 2 | 1 | - | Hypotheses, variables, variation |
| 26.7. | 3 | 2 | 1 | Organising data, measuring variation |
| 2.8. | 4 | 3 | 2 | Distributions, quartiles, quantiles, probabilities |
| 9.8. | 5 | 4 | 3 | Type I and type II error |
| 16.8. | 6 | 5 | 4 | The t-test |
| 23.8. | 7 | - | 5 | Week of midsemester test |
Dates refer to lecture only! Lab due dates are Thursdays 4pm
Timetable second half (tentative)
| Date | Week | Lab | Lab due | Topic |
|---|---|---|---|---|
| 13.9. | 8 | 6 | - | The Chi-squared test, R coaching |
| 20.9. | 9 | 7 | 6 | Statistical power, power test, plotting/tabulating data correctly |
| 27.9. | 10 | 8 | 7 | Correlation analysis, reporting statistical results |
| 4.10. | 11 | 9 | 8 | Linear Regression |
| 11.10. | 12 | 10 | 9 | Exam week |
| 18.10. | 13 | - | 10 | Last lab due |
Learning outcomes (from the paper outline)
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
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
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
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
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
What’s R? Who wants R?
- 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?
- 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
Pacific Island Ecosystems ECOL732
Pacific Islands Costal Ecology ECOL732
What can R do?
The ‘Excel mess’
The ‘art of R’ - reproducible reporting!
RStudio
The R syntax
- …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
…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 need to submit ALL lab reports and follow instructions in them, 3 random reports will be selected and marked as per earlier slide and course guide
- Feedback on your lab reports is given during tutorials!
Rules for the lab reports
- 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 lead to a lower mark!
- Use ‘>’ before you type, it makes it easier for us to distinguish your answers from our instructions
Rules for the lab reports
- You MUST submit every single lab report on time (Thursday 4pm the following week after the lab, through turnitin)!
- We will randomly select 3 out of the 10 reports and mark them, the best two marks count
- 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
- 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?
- How to study for this paper
- What resources to use
- How/when to hand in lab reports (this is most important and has caused good students to fail this paper in the past!)
- How to use RMarkdown for lab reports
Glossary
- R
- RStudio
- RMarkdown
- to ‘knit’ (compile) an Rmarkdown file
- Console
- Editor
- R function, arguments, argument names