Questions tagged [ecdf]

Empirical Cumulative Distribution Function in statistics

For definition please see its Wikipedia page.

In software, a built-in function ecdf takes a vector of samples and generates its ECDF. It is also easy to produce it ourselves, as given in this example: How to derive an ecdf function?

162 questions
0
votes
0 answers

How to find a linear regression of a ccdf graph in R

I have plotted a ccdf graph of some of my simulated power-law tail data and would like to find a best fit line from my ccdf graph. I used the code from the link (http://www.net.t-labs.tu-berlin.de/~fabian/sources/plot.ccdf.R) and plotted my ccdf…
user3579282
  • 45
  • 2
  • 9
0
votes
2 answers

How can I plot two cumulative distributions curve as line type in same plot

I want to plot cumulative distributions curve for Weibull distribution over empirical cumulative distribution curve. I have tried with this several times but it does not serve the way I want. Here is the…
user2968058
  • 25
  • 2
  • 11
0
votes
1 answer

How do I plot the cdf curve as line type and overlay it with ecdf curve?

Can anybody tell how can I put the two cumulative distribution curve in a same plot? While executing this command: plot(x,pweibull(x,shape=1.120662,scale=18.496778),type="l",col=4) plot(ecdf(SIZEDIST$AVG.µm.),add=TRUE) the Weibull cdf curve is…
user2968058
  • 25
  • 2
  • 11
0
votes
1 answer

qqline() equivalent for a normal probability plot of edf

I made a plot of an empirical distribution function (EDF) using plot.ecdf(x, ...). In order to visualize normality, I'm looking in r for a qqline equivalent to draw a simple diagonal line in my plot. The normplot() function in MATLAB is doing the…
Yann
  • 887
  • 4
  • 12
  • 20
0
votes
0 answers

Plot explicit cdf over ecdf

I have some data and I just plotted the empirical cumulative distribution using Ecdf like this: Ecdf(data) Now, I tried to adjust the parameters (lambda, mu, sigma) for a mixture of two normals to this data, and now I would like to plot the cdf of…
natorro
  • 2,793
  • 3
  • 19
  • 16
-1
votes
3 answers

Is there a correlate for Stata's 'cumul varx, gen(newvarx)' in R?

I received some example code and example data that's originally for use in Stata. I want to rewrite the code for use in R, which I'm more familiar with than Stata. The ultimate goal is to understand this code and be able to adapt it for application…
eliseabril
  • 65
  • 6
-1
votes
1 answer

Highlight the outliers area in CDF plot

I am trying to highlight the area of the CDF in which the "outliers" fall in my visualization (perhaps a light red shading to differentiate the area). Can you assist with shading the area where the "outlier" points for as per the definition above?…
user8834780
  • 1,620
  • 3
  • 21
  • 48
-1
votes
1 answer

Q: Can I specify the number of knots when using Ecdf or ecdf in R

When using ecdf() (or Ecdf ) in R, I get a number of knots equal to around 500. However, I need a number of knots that reflects the number of observations I have in the original dataset (in my case, 300). How can I adjust the number of knots in…
ralucaGui
  • 73
  • 5
-1
votes
2 answers

Plotting reverse ecdf using ggplot2

I am trying to plot reverse ecdf (what="1-F" equivalent of Ecdf function in Hmisc) using ggplot. Here is the data: dat = data.frame(ID = rep(c(1001:1015),each=3), Month = rep(c("April", "July", "October")), Value =…
-2
votes
1 answer

How to set the custom values in x axis, seaborn?

I'm currently using ecdfplot with complementary=True, so the numbers accumulates very quickly. sns.ecdfplot(y="ydata", weights="value",stat="count", complementary=True, data=df) So the x axis ranges from 0 to 1000000. But my "values" ranges from 0…
-4
votes
1 answer

Plot three graphs in one

I have three empirical distribution functions and I would like to plot these into one graph for an overview. The x label should say 'Bedienzeit (s) and I would like different colors and a legend. Unfortunately all I am trying, does not really work…
-4
votes
1 answer

Calculate statistical parameters (quantile and median) from a serie of ECDF with R

Edit: Okay, sorry i will try to be more clear, I have 50 scenarios (here i create it randomly), and i put it all of this scenarios in a matrix. After i can apply the ecdf function, that give me a list of 50 ecdf. And i want to calculate, from all…
1 2 3
10
11