Questions tagged [power-law]

A power law is a functional relationship between two quantities, where one quantity varies as a power of another.

124 questions
0
votes
1 answer

Maximum Likelihood Estimate for power law in R given distribution (instead of samples)

I have a dataframe with x-y values representing values and their counts, e.g. (1, 1000), (2, 100), (3, 10), etc. I would like to fit a power law to this distribution using MLE. I could use the power.law.fit or poweRlaw libraries, but it appears…
0
votes
1 answer

Fitting a simple power law function in R

I want to use a power function on the classic surface area to volume relationship. surfaceArea<-c(6,24,54) volume<-c(1,8,27) Logging the data works to get the parameter values of the linear function as follows…
adkane
  • 1,429
  • 14
  • 29
0
votes
1 answer

How to deal with NAN warning message in poweRlaw package in R?

I am using poweRlaw package to fit distribution as described by Gillespie , but I got this warning messages which is given in attach and I am blocked can't go on? What should I do for continuing with the procedure? How to deal with NAN warning…
0
votes
1 answer

When compare power law distribution and other distributions, why we set the same Xmin

I am using the power law package in R, when we compare power law distribution with other distributions, we need to set the same Xmin. My professor asked me why we should set the same Xmin today, rather than the same C? p(x)=Cf(x), C is a…
Ian
  • 31
  • 1
  • 7
0
votes
0 answers

Power law distribution

My data set is very simple, just one variable "Step.length.in.mm", right now I try to use power law distribution package to get my Xmin and pars, my code is: # install.packages("poweRlaw") library("poweRlaw") …
Ian
  • 31
  • 1
  • 7
0
votes
1 answer

How to plot CDF using two dataset in R

I'm trying to plot the below dataset using plot function. Im unable to plot both the graphs in same plot. Using the dataset I tried to plot the graph. m_bs = conpl$new(sample_data1$V1) m_eq = conpl$new(sample_data2$V1) est = estimate_xmin(m_bs,…
user128956
  • 123
  • 1
  • 14
0
votes
1 answer

How to plot two Dataset in same graph using poweRlaw

I have two data set, I need to plot them in same graph. Here is the two dataset. The following is the code I used to plot the data. How to plot above data in same plot ? How to set the graph legend on the x-axis? I tried setting it but it didn't…
user128956
  • 123
  • 1
  • 14
0
votes
1 answer

Testing a power-law hypothesis for synthetic data

I am trying to use maximum likelihood estimator to check the existence of power-law in certain synthetic dataset. I am following an approach described in this paper. In this approach, a vector of observations x is fed to the code and then code tells…
Peaceful
  • 4,920
  • 15
  • 54
  • 79
0
votes
0 answers

A double-log plot from fitted data to Generalized Pareto Distribution (GPD)

I'd to like to fit GPD to a dataset and then plot a double-log chart showing all the using data points with a trend line showing asymptotic GPD. I have the code to fit my data using VGAM package but don't know how to get the desired plot. The code…
ahb65
  • 191
  • 2
  • 13
0
votes
1 answer

How to put data on a graph like powerlaw.plot_pdf?

I need some basic help with the powerlaw package (https://pypi.python.org/pypi/powerlaw). I have a list of data samples. When I use powerlaw.plot_pdf(data), I get a graph (* sorry, can't upload the graphs here as I dont have enough reputation…
Baba
  • 161
  • 1
0
votes
1 answer

Python fit polynomial, power law and exponential from data

I have some data (x and y coordinates) coming from a study and I have to plot them and to find the best curve that fits data. My curves are: polynomial up to 6th degree; power law; exponential. I am able to find the best fit for polynomial…
Nadir
  • 139
  • 1
  • 3
  • 11
0
votes
1 answer

How to get the 95% confidence interval in R?

I would like to find the 95% CI for the MLE for my parameter in a function but I have no idea how. The given function is a power-law distribution with f(x)=Cx^(-mu), I calculated the MLE for mu using the bbmle package in R. Some people on the…
user3579282
  • 45
  • 2
  • 9
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
1 answer

Boost Graph Library C++/ Power Law

I have a vector of vertex with id,x & y coordinates, I want to generate a power law graph for my vertices. The Boost Library graph provide power law plod_iterator() but how can I generate that with my vertices. anyone can help?
zaza
  • 365
  • 2
  • 7
0
votes
1 answer

Fitting pagerank results to a power law distribution

I have calculated pagerank values for a hyperlink network of websites (about 1000 nodes). I have done this in R using igraph package. I would now like to take the Top 10 pagerank values and visualise these top 10 websites against a power law graph,…
timothyjgraham
  • 1,142
  • 1
  • 15
  • 28
1 2 3
8
9