PSTAT 105 UCSB Empirical Probability Functions Questions

“Donation”500
1000
4000
250
500
5000
1000
2500
2500
2500
500
50
10
100
100
1000
1000
10
5000
1000
10
50
25
250
25
10
25
50
15
250
100
5000
500
500
5
500
500
25
15
1000
500
500
1000
500
500
500
500
500
500
1000
25
25
25
200
1000
500
2500
500
250
500
100
200
200
1500
100
500
250
250
250
100
250
500
10
250
250
2000
2000
1000
3000
100
250
15
250
300
500
250
250
1500
100
25
35
250
50
100
25
200
100
100
15
500
250
25
25
50
25
800
250
1000
250
50
3000
1000
2500
100
1000
1000
250
1000
100
50
10
150
10
10
150
1500
10
50
15
25
250
50
250
500
1750
1500
2000
1000
250
1000
100
25
25
25
100
100
100
50
25
50
500
500
5000
250
250
2800
15
100
50
1000
2500
35
1000
20
500
50
50
25
250
50
10
27
940.65
50
100
100
250
250
50
1000
50
10
250
250
50
100
250
1000
250
25
1000
2800
50
1000
100
1000
500
2000
250
1000
1000
2000
50
50
200
250
250
50
2500
25
200
1000
1000
50
250
500
1000
1000
1000
1000
2500
5000
2500
1000
2800
100
100
25
50
1000
200
100
500
200
1000
2000
2000
4000
1000
3000
1000
50
1000
500
2000
2000
50
100
10
10
250
500
50
100
200
100
25
50
50
500
25
50
500
200
50
100
200
250
250
200
27
5000
1000
2500
2500
250
250
150
1400
5
1000
500
15
50
250
30
2800
1000
2500
1000
50
100
50
100
1000
25
500
25
25
250
100
250
200
50
50
50
250
100
250
250
2800
1000
50
50
25
25
100
100
100
100
250
50
1000
5000
2000
50
15
100
25
2500
2500
2000
100
100
100
200
500
500
250
250
250
1000
250
35
500
200
1000
250
250
1500
200
35
100
35
1000
50
50
1000
25
2800
1000
5000
15
250
50
10
250
800
500
50
1000
1000
5000
1000
25
3700
500
50
250
200
50
150
100
250
10
300
50
100
500
500
100
10
500
100
1000
1000
200
250
1000
100
100
50
300
250
100
100
25
25
1000
20
100
500
250
250
50
200
50
250
250
100
1000
50
100
100
100
250
25
15
1800
35
500
27
1000
250
250
100
350
50
500
2800
500
400
25
50
1500
500
500
2000
1000
550
400
250
1000
2800
500
500
1500
250
800
50
500
1000
500
1500
500
2800
250
1000
150
50
250
2000
50
1000
250
25
250
100
50
25
250
500
50
25
25
250
500
50
25
250
200
10
10
250
250
25
5
15
50
550
100
50
25
25
100
250
250
100
10
1000
250
25
1000
4000
1000
75
250
100
25
250
500
2800
100
1000
250
50
100
35
50
25
550
500
15
50
500
500
250
2800
1000
500
250
15
50
100
15
750
100
100
50
15
27
1000
50
40
500
10
1000
1000
10
10
1000
100
2500
200
2500
1000
550
1000
2500
15
4000
35
20
150
50
25
2500
25
1000
50
10
100
500
250
4885
115
2000
100
100
1000
1000
10
250
100
250
1000
100
25
50
1000
1000
550
850
250
250
50
25
25
10
100
250
10
25
300
100
250
10
25
100
200
100
1000
1000
10
25
250
25
100
27
100
5
5
50
15
1800
2500
2500
100
25
25
50
10
1000
1000
100
10
25
250
100
100
150
100
250
1000
1000
100
550
250
35
500
50
1000
250
25
250
15
1000
1000
1000
2800
500
1000
500
35
10
50
250
20
500
550
35
250
10
1200
500
50
100
50
15
1000
1000
10
1500
1000
1000
1000
1000
1000
15
35
2700
25
500
20
2700
1000
500
1000
1000
745
1000
1000
100
50
2800
500
930.41
50
1500
2800
5
1000
500
500
250
250
1000
500
35
25
1000
25
2500
100
2700
50
1000
745
500
1000
2500
100
25
1000
1000
250
2800
2500
1000
5000
1000
2800
1800
50
100
50
200
100
100
250
50
100
50
50
1000
100
2800
50
1000
1000
1000
1500
25
100
50
5
5
250
250
50
2700
25
200
500
10
10
250
1000
1000
745
25
50
1000
700
1000
2800
2800
500
500
250
1000
250
500
50
1000
1000
1000
2800
500
500
750
500
750
500
100
200
200
25
250
100
745
500
500
2000
1000
500
10
250
1500
100
100
250
1000
1000
500
500
100
500
500
350
250
500
500
1000
25
100
300
500
50
200
745
35
250
100
1000
50
50
500
1000
1000
1000
20
1000
1800
1000
1000
1000
1000
250
500
2800
2800
2800
250
1500
2000
1000
1000
1000
1000
250
15
2800
300
500
50
1500
250
50
1500
1500
500
50
1500
5
50
100
100
1500
1500
100
50
250
250
25
1500
2800
2800
850
500
500
50
500
250
50
1500
745
100
1000
2800
500
500
2800
500
500
500
500
500
100
1000
250
100
50
100
500
250
50
500
500
100
2700
2700
100
2800
50
250
2700
5
5
35
500
50
50
25
500
100
10
250
1000
5000
1800
1000
2800
500
100
25
1000
100
250
100
800
1000
10
50
1000
35
1800
1000
20
50
25
50
5
5000
1000
25
100
250
1800
250
200
2000
1000
500
50
500
1000
15
100
250
1000
5
5
50
1000
500
2800
10
250
100
500
2800
100
50
100
25
25
1000
10
35
25
50
20
930.4
5
100
100
15
25
25
50
10
10
1000
15
5000
3000
1500
250
250
50
250
50
50
25
50
50
2800
2800
50
1500
25
5600
50
2500
2100
100
50
1000
10
1000
40
100
250
250
250
150
50
25
1000
500
1000
1000
500
1000
2500
1000
1000
40
1000
1000
1000
10
199
2100
2800
1000
1500
35
100
100
15
1500
5285.8
3000
25
25
1000
2500
5000
100
1000
3000
5000
1000
5000
2000
1000
1000
1100
10
1800
100
2600
1000
2800
2800
2800
2800
2500
1000
2500
1000
1000
1000
1000
1000
1000
2500
100
10
1800
250
200
800
2200
300
100
50
200
25
15
2800
1500
50
1000
100
1100
750
500
500
500
800
40
100
4000
500
2500
1000
250
10
2800
3000
1000
15
25
250
1500
1000
50
100
250
250
100
25
50
50
75
10
2800
2800
2800
2800
1000
250
250
2600
2800
1000
1000
1000
25
100
100
1000
2800
100
100
100
50
250
150
1000
600
800
1000
1000
1000
50
250
100
250
2800
500
500
800
1800
200
1000
35
250
700
300
100
50
10
250
500
50
250
150
500
250
200
150
100
500
250
2500
1500
35
500
500
250
200
50
100
1000
250
250
500
300
500
150
100
500
1000
250
200
100
250
100
25
1000
25
1000
50
1000
2000
35
10
10
50
15
100
500
100
75
1000
1000
50
150
800
657.77
250
250
100
2500
10
100
50
1000
25
1000
250
100
100
100
15
50
10
500
2800
1000
35
25
1000
35
25
10
10
1000
50
15
1000
1000
1000
50
700
300
200
800
2500
1000
1000
1000
1000
1000
1000
2500
2500
500
250
50
2500
200
800
1000
500
1000
500
2800
900
100
200
100
10
250
500
2800
1500
500
2800
2800
1000
250
500
500
15
50
1000
25
1000
2500
500
100
250
50
500
35
2500
1000
2000
1000
3000
2200
800
500
100
200
2500
1000
100
1000
1500
50
1000
2500
1000
1000
500
150
150
2500
1500
1000
5000
2500
1000
2500
1000
2000
500
3000
3000
700
300
1000
2500
2800
25
25
2779.5
1000
1000
500
2800
2800
150
1500
1000
200
2800
1000
2200
800
2500
500
1000
1000
500
50
1000
500
500
2800
2800
500
400
500
1000
500
500
150
2800
500
250
1000
1000
50
35
15
2800
250
1000
35
35
10
1000
250
1000
100
15
50
100
25
2800
2800
500
150
1000
500
1000
1000
150
500
75
150
50
100
200
35
1000
200
500
150
1000
500
125
100
500
500
250
250
150
1000
500
250
100
125
1000
2000
150
800
2600
100
500
250
125
125
250
25
500
500
250
1000
25
2600
2800
2700
125
250
250
1000
500
2000
2500
250
250
1000
625
250
500
1000
35
50
15
1000
1500
1000
35
2800
2800
500
2800
2800
2800
2800
100
10
500
500
1000
100
100
75
275
20
2800
10
15
50
2000
2800
500
250
2500
500
25
500
1000
1000
1000
250
1000
500
2000
35
100
150
100
500
2000
500
2800
500
150
2000
25
100
25
50
750
15
1000
250
2500
1000
1000
1000
1000
2500
250
1000
1000
500
1000
2000
2000
1000
1000
1000
1000
2500
2500
1000
500
2700
500
250
250
250
333
333
250
50
250
100
1000
500
1000
250
150
150
500
1000
1000
250
100
25
250
2800
2800
2800
2800
1000
2800
1000
2800
2800
1000
35
35
250
1000
1000
500
250
250
1500
1000
500
2800
2800
2000
2800
250
1000
100
1500
1000
100
1500
150
1000
1000
1000
1000
1000
500
500
1700
2500
1000
2500
200
250
2000
2800
500
1000
1000
1000
1000
1500
1000
250
2500
1000
2500
250
500
2000
2000
250
150
150
500
100
500
35
500
500
100
500
1000
250
500
500
1000
1000
50
500
1000
500
5000
1000
250
2000
1000
250
2800
100
150
150
250
250
250
1000
1000
250
100
2000
100
500
1000
200
1300
1000
1000
25
25
250
1800
250
100
35
100
35
150
1000
2800
100
50
35
2500
2500
2500
2800
2800
100
2800
700
500
150
500
150
2405
25
2700
250
25
2500
100
100
500
500
2800
5000
35
1000
100
250
100
250
250
2000
35
2500
100
250
1800
75
500
2800
500
100
35
150
1000
100
5
250
250
5000
500
1000
1000
1000
1000
150
25
250
50
100
25
50
250
500
500
250
2800
1500
1000
1127
1000
1000
2800
100
1000
1000
250
1000
2800
2800
2800
2800
500
1000
2800
2800
500
35
35
250
1000
2800
2200
2800
500
1000
1000
5000
5000
1000
1000
5000
1000
1000
500
1000
2700
500
1000
1000
500
2500
1000
1000
2800
1000
2800
1000
250
250
1000
1000
1400
1400
2800
1400
1400
2800
2800
2800
500
250
100
250
400
200
2800
2800
2500
1000
1000
1000
1000
1000
2800
2800
2000
1400
1000
2700
1000
2800
2800
1000
250
2800
500
2800
2800
500
100
1500
1000
1000
2500
1127
1000
1000
1000
2000
1000
1000
1000
1000
2500
2800
2800
1250
1373
1373
1000
100
1000
1000
1000
1000
1500
2800
500
2500
150
2500
150
1500
100
500
403.6
1000
1000
1000
1000
1000
2800
2800
1000
2800
2800
500
750
35
1000
200
50
2700
35
1000
2800
1400
100
2600
1000
2000
500
2000
2800
2800
100
100
150
2800
2800
150
5000
1000
2800
250
525
475
1000
500
1000
500
1500
500
1000
250
2500
250
1500
1000
1000
1000
500
35
500
2800
2800
2800
2800
2800
2800
2800
500
2000
35
1000
1000
35
1500
2800
100
2800
2800
2500
2500
2000
2500
1500
1500
2800
1400
100
150
100
720
150
250
2700
1000
250
1000
330
500
1000
1000
250
1000
1000
1000
2800
2800
2800
2700
2600
2800
1000
2800
1000
5000
1000
250
500
250
2800
2800
250
1000
2000
500
2700
2800
250
2600
2800
2600
2800
100
1500
1000
1000
1000
1000
2800
2800
250
2500
1000
2800
100
1000
5000
400
1000
2200
2800
1000
2800
2800
2600
2800
2800
2600
100
1400
2800
2800
2000
500
300
1000
2200
2800
2800
2800
2800
2800
2800
2800
2800
2800
250
2500
1000
100
250
250
250
1000
1000
1000
1000
2800
2800
2800
2800
2800
2800
500
2800
250
2800
2800
2800
150
400
150
2800
2800
250
1000
2800
2800
1000
2600
2800
250
1500
250
75
2800
1000
1000
250
2800
2800
2800
2800
264.89
2600
2800
250
2800
2600
2600
2800
1000
2800
2800
2800
2800
2800
2800
2800
1000
1000
2800
2800
2800
2800
1000
1500
2600
2800
2800
2600
50
1000
500
500
250
2800
2800
1000
250
2800
2800
100
250
2600
2800
2500
250
2800
2800
2800
2800
2800
2800
1000
2800
2800
2800
2800
2800
2800
2800
2800
2800
2600
2600
2800
250
2700
1000
100
2800
2800
2800
2800
150
250
2200
2800
150
250
250
2800
2800
1500
1000
2600
2800
2600
2800
2600
2800
1000
2700
2700
2700
2700
2600
2800
2600
2800
2800
2600
50
1000
2700
500
2600
2800
2600
2800
100
150
100
150
50
PSTAT 105: Assignment 5
Due Friday, Feburary 19, 2021
Please complete these questions and submit the answers on GauchoSpace.
1. Suppose we have n independent observations Xi , and we want to use a triangular kernel
(
4x
2
−h/2 < x < 0 2 + h Kh (x) = h2 4x − 0 ≤ x < h/2, h h2 in order to generate a KDE fˆ(t). (a) What is the disadvantage if we let the bandwidth h get too large? (b) Calculate the variance of the kernel density estimator fˆ(0.5) when h < 1 and the true distribution of the Xi are uniform on [0, 1], i.e. f (x) = 1 on 0 < x < 1. Your answer should be a function of h and n. 2. Suppose that we have 3000 observations from a exponential distribution with parameter λ = 1, (ie. f (x) = e−x ) and we are going to apply our kernel density estimator to this data with a rectangular kernel. ( 1 −h/2 ≤ x ≤ h/2 Kh (x) = h 0 otherwise (a) Calculate the variance of this estimator at x = 1 when the bandwidth is h = 0.2. (b) Calculate the bias of this estimator at x = 2 when the h = 1.2. 3. Please submit your answers to this questions as a typed report including input and output from your R code. The Federal Election Commission makes available the amount of money donated to federal politicians. The data file Carbajal.txt contains the dollar amounts of 2,295 contributions made to Rep. Salud Carbajal from 2019 to 2020. (a) Create a histogram using a number of bins that you believe allows us to see the interesting details in the contribution amounts. (b) Plot a copy of this histogram but include a kernel density estimate using the density or geom_density function. Set the bandwidth to 50 and use a Gaussian kernel. (c) Repeat this graph but use the Rectangular and then the Epanechnikov kernels. Keep the bandwidth the same. (d) What difference does the kernel shape make? (e) Produce another plot of the data, but now use automated bandwidth options bw="ucv" and bw="nrd" to draw two density estimates on the histogram. Use the Gaussian kernel. (f) Find a bandwidth for the density estimate that you think works best and estimate the density at $50 and $1500. (g) Does the shape of the kernel or the bandwidth have a greater effect on the resulting density estimate?

Don't use plagiarized sources. Get Your Custom Essay on
PSTAT 105 UCSB Empirical Probability Functions Questions
Just from $13/Page
Order Essay
Achiever Essays
Calculate your paper price
Pages (550 words)
Approximate price: -

Why Work with Us

Top Quality and Well-Researched Papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

Professional and Experienced Academic Writers

We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.

Free Unlimited Revisions

If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.

Prompt Delivery and 100% Money-Back-Guarantee

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & Confidential

We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.

24/7 Customer Support

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.

Essays

Essay Writing Service

No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.

Admissions

Admission Essays & Business Writing Help

An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.

Reviews

Editing Support

Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.

Reviews

Revision Support

If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.

Live Chat+1(978) 822-0999EmailWhatsApp

Order your essay today and save 20% with the discount code RESEARCH

slot online