(d)Write a function called rsin2 which generates random values from the density f(x)/k, 0

(d)Write a function called rsin2 which generates random values from the density f(x)/k, 0 < x < 211 , where k is the area found above. The function should take a single argument specifying how many samples are required, e.g. rsin2(10) would return a vector of 10 samples from this distribution. Use the rejection method to draw the samples. Plot a histogram based on 1000 samples. (e)Use your function to draw a sample of 1,000,000 samples, and calculate a 95% confidence interval for the mean. (By symmetry, the true mean must be i. Did your confidence interval cover the true value?) v <- runif (10000, min=0,max = 2*pi) mean(sin(v)^2)*((2*pi)-0) p<-rep (0,1000) for(i in 1:1000){ set.seed(1) N<-runif (1000, min=0,max=2*pi) p[i]<-((2pi)/999) *sum((sin(n))^2) } psort<-sort (p) psort [25] #Lower bound of 95% confidence interval psort [975] Hupper bound of 95% confidence interval [1] 3.168996 [1] 3.000482 [1] 3.280129

Calculate the price
Make an order in advance and get the best price
Pages (550 words)
$0.00
*Price with a welcome 15% discount applied.
Pro tip: If you want to save more money and pay the lowest price, you need to set a more extended deadline.
We know how difficult it is to be a student these days. That's why our prices are one of the most affordable on the market, and there are no hidden fees.

Instead, we offer bonuses, discounts, and free services to make your experience outstanding.
How it works
Receive a 100% original paper that will pass Turnitin from a top essay writing service
step 1
Upload your instructions
Fill out the order form and provide paper details. You can even attach screenshots or add additional instructions later. If something is not clear or missing, the writer will contact you for clarification.
Pro service tips
How to get the most out of your experience with MyhomeworkGeeks
One writer throughout the entire course
If you like the writer, you can hire them again. Just copy & paste their ID on the order form ("Preferred Writer's ID" field). This way, your vocabulary will be uniform, and the writer will be aware of your needs.
The same paper from different writers
You can order essay or any other work from two different writers to choose the best one or give another version to a friend. This can be done through the add-on "Same paper from another writer."
Copy of sources used by the writer
Our college essay writers work with ScienceDirect and other databases. They can send you articles or materials used in PDF or through screenshots. Just tick the "Copy of sources" field on the order form.
Testimonials
See why 20k+ students have chosen us as their sole writing assistance provider
Check out the latest reviews and opinions submitted by real customers worldwide and make an informed decision.

Notice: Array to string conversion in /home/myhomeworkgeeks/myhomeworkgeeks.com/wp-content/themes/proxim-canyon/widgets/reviews.php on line 18
Array
great summery in terms of the time given. it lacks a bit of clarity but otherwise perfect.
Customer 0, June 9th, 2021

Notice: Array to string conversion in /home/myhomeworkgeeks/myhomeworkgeeks.com/wp-content/themes/proxim-canyon/widgets/reviews.php on line 18
Array
very good paper thank you.
Customer 0, February 18th, 2022

Notice: Array to string conversion in /home/myhomeworkgeeks/myhomeworkgeeks.com/wp-content/themes/proxim-canyon/widgets/reviews.php on line 18
Array
awesome job
Customer 0, June 24th, 2022

Notice: Array to string conversion in /home/myhomeworkgeeks/myhomeworkgeeks.com/wp-content/themes/proxim-canyon/widgets/reviews.php on line 18
Array
The paper was not accused of plagiarism and was written very well. I will let you know the grade once it is graded. Thank you
Customer 0, April 26th, 2021

Notice: Array to string conversion in /home/myhomeworkgeeks/myhomeworkgeeks.com/wp-content/themes/proxim-canyon/widgets/reviews.php on line 18
Array
Came in as promissed. Good paper.
Customer 0, January 6th, 2022

Notice: Array to string conversion in /home/myhomeworkgeeks/myhomeworkgeeks.com/wp-content/themes/proxim-canyon/widgets/reviews.php on line 18
Array
quick, fast and exact!
Customer 0, May 24th, 2022

Notice: Array to string conversion in /home/myhomeworkgeeks/myhomeworkgeeks.com/wp-content/themes/proxim-canyon/widgets/reviews.php on line 18
Array
I just need some minor alterations. Thanks.
Customer 0, February 10th, 2021

Notice: Array to string conversion in /home/myhomeworkgeeks/myhomeworkgeeks.com/wp-content/themes/proxim-canyon/widgets/reviews.php on line 18
Array
thank you for the excellent work
Customer 0, October 29th, 2021

Notice: Array to string conversion in /home/myhomeworkgeeks/myhomeworkgeeks.com/wp-content/themes/proxim-canyon/widgets/reviews.php on line 18
Array
Great work I would love to continue working with this writer thought out the 11 week course.
Customer 0, May 30th, 2021

Notice: Array to string conversion in /home/myhomeworkgeeks/myhomeworkgeeks.com/wp-content/themes/proxim-canyon/widgets/reviews.php on line 18
Array
Although it took 2 revisions I am satisfied but I did receive it late because of that.
Customer 0, March 25th, 2021

Notice: Array to string conversion in /home/myhomeworkgeeks/myhomeworkgeeks.com/wp-content/themes/proxim-canyon/widgets/reviews.php on line 18
Array
Thank you. No issues
Customer 0, April 17th, 2022

Notice: Array to string conversion in /home/myhomeworkgeeks/myhomeworkgeeks.com/wp-content/themes/proxim-canyon/widgets/reviews.php on line 18
Array
I am beyond eager to write this review for this writer. I received a grade of "Mastered"upon first submission on this assignment. I will shout to the rooftops ENCOURAGING you to hire him. I have used other writers but NONE have delivered such awesome work as this writer and NONE of their prices can compare to his. He does not try to "break the bank" and he works hard; it shows in the final paper and the grade. He is simply,THE BEST HERE!!
Customer 0, November 16th, 2021
11,595
Customer reviews in total
96%
Current satisfaction rate
3 pages
Average paper length
37%
Customers referred by a friend
OUR GIFT TO YOU
15% OFF your first order
Use a coupon FIRST15 and enjoy expert help with any task at the most affordable price.
Claim my 15% OFF Order in Chat
Live ChatWhatsApp

Are You Looking For Assignment Help? We Can Certainly Assist You