Displaying 20 results from an estimated 8000 matches similar to: "fitting distribution"
2009 May 13
11
Simulation
Dear R users,
Can anyone please tell me how to generate a large number of samples in R, given certain distribution and size.
For example, if I want to generate 1000 samples of size n=100, with a N(0,1) distribution, how should I proceed?
(Since I dont want to do "rnorm(100,0,1)" in R for 1000 times)
Thanks for help
Debbie
2009 May 12
2
newtons method
Hi,
Does anyone know how to code newton's method for finding the roots of polynomial functions? im not sure whether i need to do this manually, or just code something with a loop to stop when it gets to the desired result
thanks guys!
_________________________________________________________________
Looking to move somewhere new this winter? Let ninemsn property help
[[elided Hotmail
2009 May 12
2
newtons method
Hi,
Does anyone know how to code newton's method for finding the roots of polynomial functions? im not sure whether i need to do this manually, or just code something with a loop to stop when it gets to the desired result
thanks guys!
_________________________________________________________________
Looking to move somewhere new this winter? Let ninemsn property help
[[elided Hotmail
2009 May 17
2
Newton's method for finding roots
Hey guys, i have a relatively simple problem.
I need to use netwon's method to find the root of a polynomial, lets say x^3-2x-1
i start off with
p <- function(x) x^3-2*x-1
My method, which im sure is very amateur, is to type another function, which is the derivative of p, and after picking an initial value to start off with, i follow the steps of newton's method manually, but i dont
2009 May 16
1
Gamma function
Hi Guy,
I am having trouble graphing the following function
√2Γ(n/2)/[√n − 1Γ((n − 1)/2 for the values of n between 2 and 50.
i know that Γ(n) = (n-1)!, which in R is factorial(n-1)
When i type that into R, using y <- function(n).....
and then plot(y,2,50), it doesnt give me anything meaningful, in fact, it comes up with a message saying something like "in gamma(n+1) ploted" or
2009 May 16
1
Gamma
Hey,
I am having trouble graphing the following function
√2Γ(n/2)/[√n − 1Γ((n − 1)/2 for the values of n between 2 and 50.
i know that Γ(n) = (n-1)!, which in R is factorial(n-1)
When i type that into R, using y <- function(n).....
and
then plot(y,2,50), it doesnt give me anything meaningful, in fact, it
comes up with a message saying something like "in gamma(n+1) ploted" or
2009 May 20
2
evaluate polynomial
Hey guys, sorry im drawing a mental blank.
i have coded the function:
y <- function(x) 6*x^4-(1*x^2)^3
How do i evaluate this function for a given x?
i know this is a ridiculous question, but thanks anyway
_________________________________________________________________
[[elided Hotmail spam]]
[[elided Hotmail spam]]
=Domain_tagline&_m=EXT
[[alternative HTML version
2009 Oct 01
2
matrix exponential
Hi Guys,
Im trying to find the exponential of a matrix.
Can someone please help me do this?
Thanks a lot
_________________________________________________________________
View photos of singles in your area Click Here
=1&lage=18&uage=55&cl=14&sl=0&dist=50&po=1&do=2&trackingid=1046138&r2s=1&_t=773166090&_r=WLM_EndText
2009 May 12
2
(no subject)
Hi,
I have a question about derivatives of functions.
if i have the following function,
f <- function(x) x^3-2*x^2+3*x-5
i need a simple function for the derivative of this with respect to 'x', so that i can then sub in values to the the derivative function, and use Newtons method of finding a root for this.
Please help.
Regards,
Kon Knafelman
2010 Jul 14
2
R's Data Dredging Philosophy for Distribution Fitting
Forum,
I'm a grad student in Civil Eng, took some Stats classes that required
students learn R, and I have since taken to R and use it for as much as I
can. Back in my lab/office, many of my fellow grad students still use
proprietary software at the behest of advisers who are familiar with the
recommended software (Statistica, @Risk (Excel Add-on), etc). I have spent
a lot of time learning
2005 Jan 25
1
Fitting distribution with R: a contribute
Dear R-useRs,
I've written a contribute (in Italian language)
concering fitting distribution with R. I believe it
could be usefull for someones. It's available on CRAN
web-site:
http://cran.r-project.org/doc/contrib/Ricci-distribuzioni.pdf
Here's the abstract:
This paper deals with distribution fitting using R
environment for statistical computing. It treats
briefly some
2009 May 21
1
Inverse
Hi Guys,
i think this is a relatively simple question.
I have coded the following polynomial function
y= function(x) x^3-2*x^2+1
I need to find the inverse of this, but the code i am using now isnt returning what i want it to.
What is the general code for finding an inverse function?
Thanks guys
_________________________________________________________________
View photos of singles in
2011 Jun 02
4
generating random covariance matrices (with a uniform distribution of correlations)
List members,
Via searches I've seen similar discussion of this topic but have not seen
resolution of the particular issue I am experiencing. If my search on this
topic failed, I apologize for the redundancy. I am attempting to generate
random covariance matrices but would like the corresponding correlations to
be uniformly distributed between -1 and 1.
The approach I have been using is:
2009 May 12
2
Kumaraswamy distribution
Dear R users,
Does anyone know how to write function for Kumaraswamy distribution in R? Since I cannot write dkumar, pkumar, etc. in R.
Please help.
Thanks a lot,
Debbie
_________________________________________________________________
[[elided Hotmail spam]]
[[alternative HTML version deleted]]
2009 Jun 05
3
Fitting a Weibull Distribution
How do you fit a Weibull distribution in R?
2011 Jun 12
2
NLS fit for exponential distribution
Hello there,
I am trying to fit an exponential fit using Least squares to some data.
#data
x <- c(1 ,10, 20, 30, 40, 50, 60, 70, 80, 90, 100)
y <- c(0.033823, 0.014779, 0.004698, 0.001584, -0.002017, -0.003436,
-0.000006, -0.004626, -0.004626, -0.004626, -0.004626)
sub <- data.frame(x,y)
#If model is y = a*exp(-x) + b then
fit <- nls(y ~ a*exp(-x) + b, data = sub, start
2001 Feb 07
3
Goodness of fit to Poisson / NegBinomial
All,
I have some data on parasites on apple leaves and want to do a
goodness of fit test to a Poisson distribution. This seems to
do it:
mites <- c(rep(0,70),
rep(1,38),
rep(2,17),
rep(3,10),
rep(4,9),
rep(5,3),
rep(6,2),
rep(7,1))
tab <- table(mites)
NSU <- length(mites)
N <-
2011 Feb 03
1
Double user name
I have two samba servers running Ubuntu 10.04 Samba Version 3.4.7
One server acts as domain controller and stores user ids in a .tdb
Somehow I've ended up with a duplicate user name.
On the Domain Controller
# pdbedit -w -L|grep debbie
debbie:1005:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:84DEC6FE3B018B0FB977EDDF5009742C:[U
]:LCT-4D4B086F:
On the other Server running winbind I get
#
2009 Apr 12
1
goodness of fit between two samples of size N (discrete variable)
Hello list:
I generate by simulation (using different procedures) two sample vectors of size N, each corresponding to a discrete variable and I want to text if these samples can be considered as having the same probability distribution (which is unknown). What is the best test for that?
I've read that Kolmogorov-Smirnov and Anderson-Darling tests are restricted to continuous data
2005 Apr 28
3
have to point it out again: a distribution question
Stock returns and other financial data have often found to be heavy-tailed.
Even Cauchy distributions (without even a first absolute moment) have been
entertained as models.
Your qq function subtracts numbers on the scale of a normal (0,1)
distribution from the input data. When the input data are scaled so that
they are insignificant compared to 1, say, then you get essentially the