Questions tagged [empirical-distribution]
20 questions
0
votes
1 answer
R - random drawings from a custom probability distribution derived from a dataset
I have an R data frame my_measurements (which is a subsample of a much larger 10k+-row data frame) that looks like this:
> glimpse(my_measurements)
Observations: 300
Variables: 2
$ measurement_id 2, 27, 36, 39, 41, 44, 118, 121, 125, 127, 132,…

hpy
- 1,989
- 7
- 26
- 56
0
votes
0 answers
R: Difference in expected values of empirical distributions - functional forms unknown
Given a generated two empirical distributions
I am trying to find the expected value of each distribution and then take the difference between these two expected values.
Most questions that I have found include either knowing the functional form or…

EDennnis
- 191
- 1
- 11
0
votes
1 answer
MASS packages' "fitdistr": Error when dealing with manipulated random data
Background:
Below I have generated some random beta data using R and manipulate the shape of the data a bit to arrive at what I call "Final" in my code. And I histogram "Final" in my code.
Question:
I'm wondering why when trying to fit a "beta"…

rnorouzian
- 7,397
- 5
- 27
- 72
0
votes
1 answer
Determine jumps in empirical distribution
Assuming we have a randomly sampled distribution, we can calculate and plot the associated ecdf as follows:
set.seed(1)
t1 <- rnorm(10000,mean=20)
t1 <- sort(t1)
t1[1:1000] <- t1[1:1000]*(-100)
t1[1001:7499] <- t1[1001:7499]*50
t1[7500:10000] <-…

user3032689
- 627
- 1
- 10
- 23
-4
votes
2 answers
Distribution empirical in R
I have a vector of observations and would like to obtain an empirical p value of each obervation with R. I don't know the underlying distribution, and what I currently do is just
runif(100,0,1000)->ay
quantile(ay)
However, that does not really…

Wertw
- 1
- 1
- 2