Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

STAT1000 assignment 4, Assignments of Statistics

this is the assigment 4 that is given in labs

Typology: Assignments

2021/2022

Uploaded on 02/01/2023

AnamRizvi
AnamRizvi 🇨🇦

5 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
STAT 1000 - Worksheet 4
Name 1 (Student Number 1), Name 2 (Student Number 2), .. .
2022-10-06
Instructions
To complete this assignment, add code as needed into the R code chunks given below. Do not delete the
question text. This is a group worksheet, and you may form a group with your classmates of no more than
three (3) students. Be sure to change the author of this file to reflect the names and student numbers of
your group members.
To properly see the questions, knit this .Rmd file to .pdf and view the output. You will have a link in your
email that takes you to the Crowdmark submission page. Once you have completed the worksheet, knit it
to .pdf and upload your output to Crowdmark. Make sure you properly identify your groupmates through
Crowdmark (it will prompt you).
Note: code sharing with your classmates is only permitted during the lab time. Code sharing outside of the
lab may be considered an act of academic dishonesty. These worksheets are intended to be finishable during
the lab; if you are struggling, please see the Help Centre in 311 Machray Hall.
Questions
1. Import the Weather2020.csv dataset as a dataframe called Weather. Make sure you are handling the
header correctly. This dataset contains various daily weather readings for Winnipeg over the course of
2020.
Weather <- read.csv("C:/Users/USER/Downloads/Weather2020.csv")
2. The variables min_temperature and max_temperature contain the daily minimum and maximum tem-
perature readings, in degrees Celsius. Create a scatterplot comparing the minimum daily temperatures
(X) to the maximum daily temperatures (Y).
plot(Weather$min_temperature,Weather$max_temperature,xlab="Minimum Daily Temperature (Celsius)",ylab="Maximum Daily Temperature (Celsius)",main="Winnipeg Weather 2020")
1
pf2

Partial preview of the text

Download STAT1000 assignment 4 and more Assignments Statistics in PDF only on Docsity!

STAT 1000 - Worksheet 4

Name 1 (Student Number 1), Name 2 (Student Number 2),...

Instructions

To complete this assignment, add code as needed into the R code chunks given below. Do not delete the question text. This is a group worksheet, and you may form a group with your classmates of no more than three (3) students. Be sure to change the author of this file to reflect the names and student numbers of your group members.

To properly see the questions, knit this .Rmd file to .pdf and view the output. You will have a link in your email that takes you to the Crowdmark submission page. Once you have completed the worksheet, knit it to .pdf and upload your output to Crowdmark. Make sure you properly identify your groupmates through Crowdmark (it will prompt you).

Note: code sharing with your classmates is only permitted during the lab time. Code sharing outside of the lab may be considered an act of academic dishonesty. These worksheets are intended to be finishable during the lab; if you are struggling, please see the Help Centre in 311 Machray Hall.

Questions

  1. Import the Weather2020.csv dataset as a dataframe called Weather. Make sure you are handling the header correctly. This dataset contains various daily weather readings for Winnipeg over the course of

Weather <- read.csv("C:/Users/USER/Downloads/Weather2020.csv")

  1. The variables min_temperature and max_temperature contain the daily minimum and maximum tem- perature readings, in degrees Celsius. Create a scatterplot comparing the minimum daily temperatures (X) to the maximum daily temperatures (Y).

plot(Weather$min_temperature,Weather$max_temperature,xlab="Minimum Daily Temperature (Celsius)",ylab="Ma

Winnipeg Weather 2020

Minimum Daily Temperature (Celsius)

Maximum Daily Temperature (Celsius)

  1. Calculate the correlation coefficient between daily minimum temperatures and daily maximum tem- peratures.

cor(Weather$min_temperature,Weather$max_temperature)

## [1] 0.