- Basic Math
- The log of a positive number.
- What is the default base for the log function? Calculate the log of your previous number with a different base.
- The log of a negative number. (explain the answer)
- The square-root of a positive number.
- Random number generation.
- Create a vector of 15 standard normal random variables. Calculate its mean and SD.
- Change the mean to 10 and the SD to 2 and recalculate the vector of 15 random normal variables. Calculate its mean and SD.
- Why are the means and SD not exactly the same as the means and SDs specified in the function?
- Vector Operations
- The weights of 6 individuals in kg are 60, 72, 57, 90, 95, 72.
- Their heights (in m) are 1.80, 1.85, 1.72, 1.90, 1.74, 1.91.
- Enter these vectors into R.
- Create a scatterplot of weight vs. height. Interpret the scatterplot.
- Calculate the BMI for each individual. (BMI = weight in kg divided by the square of the height in m)
- Calculate the mean for weight.
- Subtract the mean from each value of weight. 1
- Sum the result. Now you know why we square the deviations from the mean to calculate a standard deviation!
- Your data science profile. Enter your data science profile into R as a data frame with two columns. Call it by your first name. The categories are computer programming, math, statistics, machine learning, domain expertise, communication and presentation skills, and data visualization. Your ranking for each category 1 5, with 5 as best.Create a bar graph of your data science profile. When you submit your work, please submit your code, including the data entry piece.