The commands below load these R packages and will appear at the top of all your R Markdown homework files.

Question 1: Amongst Standard Deviation, Mean, Median, Variance, which one is NOT affected by an extreme value in the data set?

Answer: Median

Question 2: The following data represent the flight time (in minutes) of a random sample of seven flights from one city to another city
284 270 260 266 257 263 269

#Create a vector/variable named 'flight' with the above data

Compute the range and sample standard deviation of the data given above

# Find the range 27


# Find the standard deviation 8.831761

Question 3: For this question, we will explore the NBAPlayers 2011 dataset. This dataset is included in package Lock5withR.

  1. Use function names() to list all variables in dataset NBAPlayers 2011 ```{r} Player" “Age” “Team” “Games” “Starts”
    [6] “Mins” “MinPerGame” “FGMade” “FGAttempt” “FGPct”
    [11] “FG3Made” “FG3Attempt” “FG3Pct” “FTMade” “FTAttempt” [16] “FTPct” “OffRebound” “DefRebound” “Rebounds” “Assists”
    [21] “Steals” “Blocks” “Turnovers” “Fouls” “Points”
    >

b. The variable 'Blocks' in the dataset includes incormation on the number of blocked shots during the season for each of the 176 players in the dataset   

  + Find the mean and standard deviation of the number of blocked shots.

```r
# Recall that we use the syntax 'dataset$variable' to specify the variable that we want to include in the calculation. 

# Mean of blocked shots is 42.85795


# Standard deviation of blocked shots is 41.35335

  + Use the function 'quantile()' to find the 30th percentile of 'Blocks'
```{r}17

Answer:
```{r}the histogram shows the dat being right skewed

```

Finally, click the Knit button to generate your document. Remember to open the HTML file in a browser, then save it as PDF (use Print, then choose the option to save as PDF). Upload the pdf file on Moodle.