Use R language Use R language Suppose we have the following small dataset: x <- c(30, 37, 38, 40, 50, 53, 57, 63, 67, 76) y <- c(18, 20.9, 19.4, 20.3, 19.8, 20.6, 19.5, 17.3, 15.2, 10.9) a. Plot the data. b. The triangular kernel with bandwidth h, centered at the location xo has the formula K((x-xo)/h) = 1- is zero outside this range. For a bandwidth of h = 10 and centered on xo = 55, find weights for all of the data values. c. Using the Nadaraya-Watson Kernel approach, use the weights to find an estimate of the true curve g(55). d. Find the variance of the estimate of g(55). I'll let you assume that = 0.5 and all data are independent. on the range x ±h, and

Glencoe Algebra 1, Student Edition, 9780079039897, 0079039898, 2018
18th Edition
ISBN:9780079039897
Author:Carter
Publisher:Carter
Chapter10: Statistics
Section10.4: Distributions Of Data
Problem 20PFA
icon
Related questions
Question

Mm4

Use R language Use R language
Suppose we have the following small dataset:
x <- c(30, 37, 38, 40, 50, 53, 57, 63, 67, 76)
y <- c(18, 20.9, 19.4, 20.3, 19.8, 20.6, 19.5, 17.3, 15.2, 10.9)
a. Plot the data.
b. The triangular kernel with bandwidth h, centered at the location xo has the formula K((x – xo)/h) = 1- | on the range xo +h, and
is zero outside this range. For a bandwidth of h = 10 and centered on xo = 55, find weights for all of the data values.
c. Using the Nadaraya-Watson Kernel approach, use the weights to find an estimate of the true curve g(55).
d. Find the variance of the estimate of g(55). I'll let you assume that o = 0.5 and all data are independent.
Transcribed Image Text:Use R language Use R language Suppose we have the following small dataset: x <- c(30, 37, 38, 40, 50, 53, 57, 63, 67, 76) y <- c(18, 20.9, 19.4, 20.3, 19.8, 20.6, 19.5, 17.3, 15.2, 10.9) a. Plot the data. b. The triangular kernel with bandwidth h, centered at the location xo has the formula K((x – xo)/h) = 1- | on the range xo +h, and is zero outside this range. For a bandwidth of h = 10 and centered on xo = 55, find weights for all of the data values. c. Using the Nadaraya-Watson Kernel approach, use the weights to find an estimate of the true curve g(55). d. Find the variance of the estimate of g(55). I'll let you assume that o = 0.5 and all data are independent.
Expert Solution
steps

Step by step

Solved in 3 steps with 9 images

Blurred answer
Recommended textbooks for you
Glencoe Algebra 1, Student Edition, 9780079039897…
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill
Big Ideas Math A Bridge To Success Algebra 1: Stu…
Big Ideas Math A Bridge To Success Algebra 1: Stu…
Algebra
ISBN:
9781680331141
Author:
HOUGHTON MIFFLIN HARCOURT
Publisher:
Houghton Mifflin Harcourt
Holt Mcdougal Larson Pre-algebra: Student Edition…
Holt Mcdougal Larson Pre-algebra: Student Edition…
Algebra
ISBN:
9780547587776
Author:
HOLT MCDOUGAL
Publisher:
HOLT MCDOUGAL
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage