Question

Question 6. Explore the Students t-Distribution Let us use R to become familiar with the Students t-distribution. For that

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Density 0.0 0.1 0.2 0.3 0

Here the red line is the density plot of random numbers from t distribution and the black one are normal density plot.

Corresponding r code for the above plot

x = rt(10000,3) #Generate 10^4 random numbers from t distribution with df 3.

y = seq(-4, 4, length=10000) # Generate a seq of 10^4 numbers from -4 to 4

hx=dnorm(y) # Calculating the normal density of y

x=sort(x) #sort x in ascending order

plot(y, hx, type="l",ylab="Density",xlab = "") # Plotting normal probability.
lines(x,dt(x,3),col="red") #plotting the density of random number.

Here we see that the red and the black curves are similar. the red one has heavy tails but height is less than the normal density. Hence t distribution is Leptokurtic distribution and symmetric about 0.

As df became large t distribution converge to normal distribution.

Add a comment
Know the answer?
Add Answer to:
Question 6. Explore the Student's t-Distribution Let us use R to become familiar with the Student's t-distribution. For that you may have to use some of the following (R-inbuilt) functions: r...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • What is the code and result in Rstudio or R 1. Suppose we have a random...

    What is the code and result in Rstudio or R 1. Suppose we have a random sample 1.12, 0.44, -1.49, 0.02, 0.81, -1.34,1.34, 0.51,-0.12, 0.97. (a). Use two methods to find the sample mean (b). Use two methods to find the sample variance. (c). Find the sample standard deviation. 2. We can use function rt(n 100, df 2) to generate a random sample from a t-distribution with two degrees of freedom. The sample size is n 100. (a). Generate a...

  • Let T have a (Student's) t distribution with 10 degrees of freedom. If P(T < k)...

    Let T have a (Student's) t distribution with 10 degrees of freedom. If P(T < k) = 0.95, what is the value of k? Let mu be the unknown mean of a Normal distribution. I take 20 observations randomly from this distribution, and want to test H0: mu = 15 vs H1: mu is not equal to 15 at the 5% level of significance. If I observe a p-value of 0.11, what decision can I make? Write mu for the...

  • Chapter 6, Section 4-D, Exercise 184 Use a t-distribution to answer this question. Assume the samples...

    Chapter 6, Section 4-D, Exercise 184 Use a t-distribution to answer this question. Assume the samples are random samples from distributions that are reasonably normally distributed, and that a t-statistic will be used for inference about the difference in sample means. State the degrees of freedom used. Find the endpoints of the-distribution with 2.5% beyond them in each tail if the samples have sizes ni-17 and n2-27. Enter the exact answer for the degrees of freedom and round your answer...

  • (b) and (c) are what i need help with Problem(7) Let z Student's t-distribution. The density...

    (b) and (c) are what i need help with Problem(7) Let z Student's t-distribution. The density function of T is Normal(0, 1) and Y ~ xã, then the new r.v. T = Jun has the r[(y + 1)/2) -(4+1)/2 fr(t) = + (7/2) (a) (3 points) Describe the similarity/difference between T and Z. (b) (6 points) Let to be a particular value of t. Use t-distribution table to find to values such that the following statements are true. (Given that...

  • R studio #Exercise : Calculate the following probabilities : #1. Probability that a normal random variable...

    R studio #Exercise : Calculate the following probabilities : #1. Probability that a normal random variable with mean 22 and variance 25 #(i)lies between 16.2 and 27.5 #(ii) is greater than 29 #(iii) is less than 17 #(iv)is less than 15 or greater than 25 #2.Probability that in 60 tosses of a fair coin the head comes up #(i) 20,25 or 30 times #(ii) less than 20 times #(iii) between 20 and 30 times #3.A random variable X has Poisson...

  • Someone plz plz help with this Statistics Intro to R programming question!!! Here are the examples and follow by my question!! Thank you so much!! I appreciate it !!!!My question!!!! Question T...

    Someone plz plz help with this Statistics Intro to R programming question!!! Here are the examples and follow by my question!! Thank you so much!! I appreciate it !!!!My question!!!! Question Type 1: If possible, calculate the 90% confidence intervals for the temperature it takes for crickets to chirp 15 chirps per second. Code (you must copy and paste your code like below in blue color): # Reading in the data Crickets-read.table(C:/Desktop/CricketChirpsvsTemperature.csv', header TRUE, #View Data View Crickets) #Data analysis...

  • 3. [25 marks] Some female psychology students were investigating whether intelligence depends on brain size. They each t...

    3. [25 marks] Some female psychology students were investigating whether intelligence depends on brain size. They each took a standard test that measured verbal IQ and also underwent an MRI scan to measure their brain size. The resulting data is below, file named IQBrain.csv. IQ BrainV 132 816.932 132 951.545 90 928.799 136 991.305 90 854.258 129 833.868 120 856.472 100 878.897 71 865.363 132 852.244 112 808.02 129 790.619 86 831.772 90 798.612 83 793.549 126 866.662 126 857.782...

  • Use the following regression output from R studio and answer the following questions. 1. Comment on...

    Use the following regression output from R studio and answer the following questions. 1. Comment on the relation between the two test marks. A. There appears to be no  linear relation between the two test marks B. There appears to be strong negative linear relation between the two test marks. C. There appears to be weak positive linear relation between the two test marks. D. There appears to be strong positive  linear relation between the two test marks. 2. If the linear...

  • photos for each question are all in a row (1 point) In the following questions, use...

    photos for each question are all in a row (1 point) In the following questions, use the normal distribution to find a confidence interval for a difference in proportions pu - P2 given the relevant sample results. Give the best point estimate for p. - P2, the margin of error, and the confidence interval. Assume the results come from random samples. Give your answers to 4 decimal places. 300. Use 1. A 80% interval for pı - P2 given that...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT