R programm, statistics, Basic Statistics

Assignment Help:
1. Generate a large dataset ( at least 1000 observations) µ with a known mean, µ between 20 and 40 and variance s = 9 using rnorm(). identify it as D. Use the functions mean() and var() to get the mean and vaiance of the sample.
2. Use t.test(D, mu=0) to check if the mean of your realizations, ¯x is signi?cantly
different from zero, from µ1, and from (µ0:1).
3. produce a histogram for D with vertical lines at the 0.25
th
and the 97.5
th
quantiles.
4. generate 10 samples of 20, S1 .....S10 with random means using S1<- rnorm(20,runif(1,min=0,max
= 80)), then calculate means and variances for each.
5. Use t.test(D, S1) to check if the sample means for S1 .....S10 are likely to have come
from the same population as the large distribution D. This Stat Trek webpage is a
good source. You should be using 2-tailed tests.
6. Explain the difference between a one-tailed test and a two-tailed test.
7. Create two variables, x and y, where y is a deterministic linear function of x. Show
the formula you used.
8. Generate a plot of y against x.
9. Calculate the correlation between y and x.covariance of y and x.
10. Create a new variable, yRan, that is like y except that it contains some random noise.
11. Calculate the correlation between yRan and x and the covariance of yRan and x.
12. Add more noise to yRan. Calculate the covariance of yRan and x and the Pearsonian correlation coef?cient. State how adding more noise affects the correlation
coef?cient.
13. Conduct the following experiment. Start with a deterministic function as in part 8
with a positive slope. Add some noise. Now systematically reduce the slope from
positive to negative, taking care to make quite a few observations near zero. Keep
the noise parameters constant. Make a table showing the slope vs the correlation
coef?cient.
14. Plot the slope vs the correlation coef?cient from the previous question and say what
you learn from the exercise.

Related Discussions:- R programm, statistics

Define accounting Actuarial basis , A basis used in processing the quantity...

A basis used in processing the quantity of advantages to be created regularly to a finance or consideration so that the complete advantages plus the complicated income thereon will

Variance analysis, Variance analysis In spending budget (or control sales ...

Variance analysis In spending budget (or control sales in general), a change is the change between an allocated, thought out or conventional quantity and the actual quantity incur

What is a sole proprietorship, What is a sole proprietorship? A sole pr...

What is a sole proprietorship? A sole proprietorship is a form of business organization that is owned by one person. The owner is referred to as a sole proprietor. In accoun

Business tax accounting , 1. Passive losses are fully deductible as long as...

1. Passive losses are fully deductible as long as they do not exceed $50,000 during the year. A) True B) False 2. Wages are considered "active income." A) True B) False 3. A de

What is the net book value of a noncurrent asset, What is a sole proprietor...

What is a sole proprietorship? A sole proprietorship is a form of business organization that is owned by one person. The owner is referred to as a sole proprietor. In accoun

Increasing the magnetic field inside a coil, Someone tries to increase the ...

Someone tries to increase the magnetic field inside a coil by adding more turns to the coil. Where should he add more turns: to the end of the coil (i.e., to make it longer) or to

Ex. 3-12, EXERCISE 3-12 Computing Predetermined Overhead Rates and Job Cos...

EXERCISE 3-12 Computing Predetermined Overhead Rates and Job Costs [LO1,LO2, LO3, LO7] Kody Corporation uses a job-order costing system with a plantwide overhead rate based on ma

Compute the sample correlation matrix, 1 Compute SX; SXY ; and SY . > # Put...

1 Compute SX; SXY ; and SY . > # Put your R code here. 2 Compute the sample correlation matrix (q_p) between the X and Y variables. Test individual correlations for significance

Calculate the transition probabilities, Consider a person who repeatedly pl...

Consider a person who repeatedly plays a game of chance (gambling)with two results possible (win or lose) with a probability p = 0, 3 to win. If the person has bet x amount and if

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd