# STAT2012 Statistical Tests

## General Information

This page contains information on the Intermediate Unit of Study STAT2012 Statistical Tests.

This unit is offered in Semester 2.

Lecturer(s): Jennifer Chan

For further information on Intermediate Mathematics and Statistics, refer to the Intermediate Handbook. In particular, see the STAT2012 handbook entry for further information relating to STAT2012.

You may also view the description of STAT2012 in the central units of study database.

- Credit point value: 6CP.
- Classes per week: Three lectures, one tutorial and one computer laboratory session.

Email enquiries about STAT2012 may be sent to STAT2012@maths.usyd.edu.au.

**Students: Please give your name and SID when emailing us.
Anonymous emails will not be replied to.**

Links to online resources for this unit of study will be added here as the material becomes available.

## Course information

## New announcements

- We have finished all lecture note for this course. Hope you find this course useful and important. Work hard for the exam.
**My consultation time for exam. is Nov 3 (Thur) 3-5pm, Nov 4 (Fri) 3-5pm, and Nov 7 (Mon) 3-5pm.****Please complete the unit of study survey online.**- You should read all informations and announcement on this website and Blackboard regularly, including the information related to the use of R and RStudio.
In particular, you should read
**Feedback and right concepts**under computer practical to help you improve your computer practical performance. Seek help from your friendly tutors if necessary. - Please read also Blackboard discussion regularly and post your questions there. Then my reply to your questions can be shared with all students. Questions of all levels are welcome.
- Please note that most but not all lab reports are marked. You may go back to your submitted reports and see if you can find marks and comments. If yes, read carefully the comments. If not, that report was not marked. For all other enquiries, you need to include your lab class apart from names and SID. You may get feedbacks from the marked reports but we will not discuss with you the marking scheme. Please read the solution to get an idea of what working is expected.
- The tutors and I have noted that some students copied lab reports from last year. They will not only get 0 marks but also be notified to science faculty for possible academic dishonesty judgement. If you discuss your work with your friends, you should still write your own report. Similar lab reports will be penalized and may also be handed to science faculty for academic dishonesty judgement.
- Lecture recordings are available from Blackboard.
- You may check your lecture and 3 tutorial quiz marks in the window. The mark distribution for lecture quiz is given under quiz. You can collect your lecture and tutorial quiz papers from the assginment boxes along the corridor of level 8, Carslaw building.

## Lecture notes

- Lectures 1 to 6 (Weeks 1 to 2) With solution
- Lectures 7 to 12 (Weeks 3 to 4) With solution
- Lectures 13 to 18 (Weeks 5 to 6) With solution
- Lectures 19 to 22 (Weeks 7 to 8) With solution
- Lectures 23 to 27 (Weeks 9 to 10) With solution
- Lectures 28 to 31 (Weeks 11 to 12) With solution

## Tutorials

- Week 1: Tutorial 1 Solution
- Week 2: Tutorial 2 Solution
- Week 3: Tutorial 3 Solution
- Week 4: Tutorial 4 Solution
- Week 5: Tutorial 5 Solution
- Week 6: Tutorial 6 Solution
- Week 7: Tutorial 7 Solution
- Week 8: Tutorial 8 Solution
- Week 9: Tutorial 9 Solution
- Week 10: Tutorial 10 Solution
- Week 11: Tutorial 11 Solution
- Week 12: Tutorial 12 Solution
- Week 13: Tutorial 13 Solution

## Data sets

- Lectures 1-18 SurveyAge iron in matrix iron in vector lab in matrix lab in vector
- Lectures 19-22 penicillin in matrix penicillin in vector poison in matrix poison in vector
- Computer practicals 3-6 Survey data
- Computer practical 7 itch data
- Computer practical 8 range data auto data
- Computer practical 9 price data
- Computer practical 10 fuel data

## Use of R

- Introduction to R
- Download R software from internet
click: Windows, base, R-2.9.1-win32.exe, Run, Run, OK (English), Next>, Next>, Next>(unless you change the directory), ...

- General Latex commands: Maths mode, Maths symbol, Superscripts & subscripts, Greek letters, Fraction & Roots

## Use of RStudio

- Template is provided for week 1-6. It is optional whether you adopt this template or create your own. The template provided uses
**knitr**but you can also use it under**Sweave**. It is also optional if you prefer**Sweave**. From week 7, no template will be provided. You need to create your own template, as in the computer exam. on week 13. - It seems that Sweave is less problematic in producing reports. You may consider using
**Sweave**. **To change from knitr to Sweave**, click Tools, Global Options, Sweave (the 6th option on the left). Ensure that the second box says using: Sweave. Then click Ok to save.- Use
**<****<****fig=TRUE****>****> =**for graphics. Otherwise, the graph will not appear in the pdf under**Sweave**. - Creating reports using Rstudio

## Computer practicals

- You should attend the computer class and work out the report during the class, NOT earlier or later. Your report will NOT be marked if you skip class without approval.
- You should submit your lab report through Blackboard, Turnitin by 6pm of the day after your lab class. For example, if you attend Monday lab, the due date is 6pm Tuesday. If you have technical problem, you need to resolve it and submit the pdf NOT the rnw file. You should still save your R command file .rnw .
- You should include your name, SID, compile date and the session, say Mon 12, Mon 15, Tue 15, Wed 15 or Thu 15, in your report.
- To write conclusion, you should say
**"insufficient evidence against H0" or "the data are consistent with H0"**when p-value>0.05. Don't say "the data are against H1", "sufficient evidence supporting H0" nor "H0 is true". We can't find any evidence favoring or supporting H0 as we assume H0 is true in calculating the p-value. Also you never know whether H0 or H1 is true just based on a sample. We aim to find evidence against H0. So when p-value<0.05, you should say**"sufficient (or strong evidence) against H0".**Don't say "insufficient evidence supporting H0". - You may type H0, H1 and other mathematical symbols in plain text, say mu or sigma2. If you want to type them in latex, refer to the file
**Latex commands for writing comments**which will provide you some hints. - Latex commands for writing comments
- Lab instructions
- Feedback and right concepts
- Week 1: Practical 1 Template for both knitr and Sweave Solution
- Week 2: Practical 2 Template for both knitr and Sweave Solution
- Week 3: Practical 3 Template for both knitr and Sweave Solution
- Week 4: Practical 4 Template for both knitr and Sweave Solution
- Week 5: Practical 5 Template for both knitr and Sweave Solution
- Week 6: Practical 6 Last Template for both knitr and Sweave Solution
**Note:**From now, template will not provided. You can modify the previous one and it is optional to include questions.- Week 7: Practical 7 Solution
- Week 8: Practical 8 Solution
- Week 9: Practical 9 Solution
- Week 10: Practical 10 Solution
- Week 11: Practical 11 Solution
- Week 12: Practical 12 Solution
- Week 13: Computer exam.

## Assignments

- You may write or type your assignment. If you write your assignment, you need to scan it into pdf. A photo often does not have a right focus which affects resolution. You need to make sure that it is readable (NOT upside down).
- You need to show all steps and you are encouraged to include R outputs to check your answers. In such case, you need to combine them into one pdf for submission. However, just R output even showing all steps is not acceptable cause you need to work out the answer by youself as if in the quiz or exam.
- Any attempt to copy the answer from any other sources will be penalized and reported to science faculty.
- Assignment 1: Due Aug 24 6pm (5%) Solution

## Quiz

- The quiz will be held on Sept 14, 9:00am lecture in Carslaw 273 and 159 and it accounts for 5%. There will be 10 MC questions on materials from Week 1 to 7. Since problems on 2-way ANOVA and Friedman test only appear in Wk 8 tutorial, they are excluded. Statistical table and formulae table are provided. You don't need to bring your own formulae sheets and statistical tables but remember to bring your own
**calculator**and**student ID**for checking. - The sample quiz is meant to give you some exercise for your revision. It may not be similar in content and level of difficulty to the real quiz.
- Practice quiz
- Note for quiz
- Mark distribution (mean=5.92, count=141)

## Three tutorial quizzes

- Three quizzes will be held during the tutorial class of week 9, 11, 12 and they account for 5% totally. Statistical table and formulae table are provided. You don't need to bring your own formulae sheets and statistical tables but remember to bring your own
**calculator**and**student ID**for checking. - Note for three tutorial quizzes

## Computer practical examination

- The template for computer exam. will NOT be provided and you need to use the computers in the lab to do your computer exam. Hence you should start using these computers to work out your weekly lab reports so that you are familiar with the system and are able to generate pdf.
- You may find great difficulty in typing the H0, H1 and other necessary mathematical symbols in your computer report. Please note that the file
**Latex commands for writing comments**under**Use of R and process**provides you some hints. **Note for practical and exam.:**When p-value>0.05, you should say**"insufficient evidence against H0" or "the data are consistent with H0".**Don't say "the data are against H1", "sufficient evidence supporting H0" nor "H0 is true". We can't find any evidence favoring or supporting H0 as we assume H0 is true in calculating the p-value. Also you never know whether H0 or H1 is true just based on a sample. We aim to find evidence against H0. So when p-value<0.05, you should say**"sufficient (or strong evidence) against H0".**Don't say "insufficient evidence supporting H0".- Note for computer exam.

## Useful resources

- Formula for quizzes and exam.
- Statistical tables
- Summary
- R commands in lecture note
- Use of calculator
- Statistical Society of Australia
- An article says: the big problem is going to be the ability of humans to use, analyze and make sense of the data.
- Top 10 reasons to become a statistican
- Statistical joke, just for fun

## Past examination papers

**Check your marks**

STAT2012 students: please check that your marks for Assignment, Quiz, Small Quiz 1, Small Quiz 2, Small Quiz 3, Computer Work Report 1, Computer Work Report 2, Computer Work Report 3, Computer Work Report 4, Computer Work Report 5, Computer Work Report 6, Computer Work Report 7, Computer Work Report 8, Computer Work Report 9, Computer Work Report 10, Computer Work Report 11 and Computer Work Report 12 have been recorded correctly by pressing the "Check marks" button.

Please note that any corrections to Quiz marks must be made by Friday, Oct 07.

Please note that any corrections to Small Quiz 1 marks must be made by Friday, Nov 11.

Please note that any corrections to Small Quiz 2 marks must be made by Friday, Nov 11.

Please note that any corrections to Small Quiz 3 marks must be made by Friday, Nov 11.

Please note that any corrections to Small Quiz 3 marks must be made by Friday, Nov 11.

Please note that any corrections to Computer Work Report 1 marks must be made by Friday, Nov 18.

Please note that any corrections to Computer Work Report 2 marks must be made by Friday, Nov 18.

Please note that any corrections to Computer Work Report 3 marks must be made by Friday, Nov 18.

Please note that any corrections to Computer Work Report 4 marks must be made by Friday, Nov 18.

Please note that any corrections to Computer Work Report 5 marks must be made by Friday, Nov 18.

Please note that any corrections to Computer Work Report 6 marks must be made by Friday, Nov 18.

Please note that any corrections to Computer Work Report 7 marks must be made by Friday, Nov 18.

Please note that any corrections to Computer Work Report 8 marks must be made by Friday, Nov 18.

Please note that any corrections to Computer Work Report 9 marks must be made by Friday, Nov 18.

Please note that any corrections to Computer Work Report 10 marks must be made by Friday, Nov 18.

Please note that any corrections to Computer Work Report 11 marks must be made by Friday, Nov 18.

Please note that any corrections to Computer Work Report 12 marks must be made by Friday, Nov 18.

## Timetable

Show timetable / Hide timetable.