Professional Documents
Culture Documents
x=matrix(c(33,200712,115,201114),nc=2,
dimnames=list(c("real","fake"),c("polio","no polio")))
*2
represents that the regression model can explain only around 20% of the
variation in the response Wind.
If Wind and Temp were reversed in the regression, then the R2 would keep
the same because in this simple linear regression model R2 is just the
square of the correlation coefficient between Wind and Temp.
Skew,kurtosis,trimmed,winsorized
#function for computing skewness
skew=function(x) {n=length(x)
m2=sum((x-mean(x))^2)/n
m3=sum((x-mean(x))^3)/n
m3/m2^(3/2)*sqrt(n*(n-1))/(n-2) }
skew(wip1)
skew(wip2)
#kurtosis#
kurt=function(x) {
n=length(x)
m4=sum((x-mean(x))^4)/n
m2=sum((x-mean(x))^2)/n
(n-1)/((n-2)*(n-3))*((n+1)*m4/m2^2-3*(n-1)) }
kurt(wip1) z-test and ANOVA
mean(days, trim=0.2)
Distribution
Solution
weibull
the