Mathematics Homework Help

Mathematics Homework Help. Parameter and Probability Questionnaire

 

Question 2: In this question, we will use the Youtube data. We will be focusing on variable views.

youtube=read.table("https://unh.box.com/shared/static/4rk1j3hea43ob3auo2a7cymo0qcc216x.csv", header=TRUE, sep=",")
head(youtube)
##   trending_date         channel_title category_id   views
## 1      17.14.11          CaseyNeistat          22  748374
## 2      17.14.11       LastWeekTonight          24 2418783
## 3      17.14.11          Rudy Mancuso          23 3191434
## 4      17.14.11 Good Mythical Morning          24  343168
## 5      17.14.11              nigahiga          24 2095731
## 6      17.14.11              iJustine          28  119180
head(youtube$views)
## [1]  748374 2418783 3191434  343168 2095731  119180
  1. (5 points) Calculate average number of views. We are going to threat this as the population mean, i.e., E[X]E[X].
  2. (5 points) Choose a sample of youtube data of size 200. Calculate the average views of the videos in the sample you selected. What is your sampling error, i.e., E[X]X¯E[X]X¯?
#Hint: sample(youtube$views, 10) take a random sample of 10 observations from data set youtube, column views
  1. (10 points) Using the sample data you selected in part (b), estimate the average views via bootstrap method by taking 10001000 resamples. What is your sampling error, i.e., E[X]X¯E[X]X¯?

Mathematics Homework Help