Questions tagged [distribution]

This tag concerns statistical distributions, their implementations, and properties.

In scientific software for statistical computing and graphics, many common statistical distributions are supported. See the documentation from ?Distribution. Additionally, the CRAN task review for distributions lists numerous packages for addition features.

3139 questions
1
vote
0 answers

PHP - CDF Binomial Distribution

I'm looking for an ideal way to calculate and handle CDF binomial distribution in PHP. Currently I have modularised functions for LogGamma, Incomplete Regularized Beta and the actual Binomial Distribution function itself, but I'm searching for a…
jarodsmk
  • 1,876
  • 2
  • 21
  • 40
1
vote
1 answer

Normalize data in R data.frame column

Suppose I have the following data: a <- data.frame(var1=letters,var2=runif(26)) Suppose I want to scale every value in var2 such that the sum of the var2 column is equal to 1 (basically turn the var2 column into a probability distribution) I have…
Imlerith
  • 479
  • 1
  • 7
  • 15
1
vote
1 answer

Tensor too big for graph distribution - "InternalError: Message length was negative"

I tried to run the following graph: Unfortunately, I receive the following error message: tensorflow.python.framework.errors.InternalError: Message length was negativ [[Node: random_uniform_1_S1 = _Recv[client_terminated=false, recv_device=…
PaulWen
  • 1,025
  • 1
  • 13
  • 24
1
vote
2 answers

How to get distribution name from scipy.stats.distribution object in SciPy?

I'm trying out a bunch of different fits for distributions. Is there any way to get the name of the distribution back from the distribution object? I found a way but it doesn't seem very efficient. distribution = "gamma" distr = getattr(stats,…
O.rka
  • 29,847
  • 68
  • 194
  • 309
1
vote
0 answers

Bin Packing for item sizes with probabilitic distribution

I have a number of objects sizes with the normal distribution (only positive values constraint by value S) and I want to pack them all to a minimum number of bins. In other word, items are having variable sizes based on their probability…
Sija
  • 21
  • 1
  • 4
1
vote
1 answer

How to pack efficiently apache server in desktop application

Hello all I need Apache server with php interpreter to distribute in my desktop application The reason is that my application create reports that are basically php code that runes under Apache web server Is it user friendly to distribute Apache…
user63898
  • 29,839
  • 85
  • 272
  • 514
1
vote
0 answers

PHP - How to upload files to a common directory from subdomain

I have a project that have 3 modules and each is running on subdomain like http://admin.myproject.com http://operator.myproject.com http://myproject.com All three are pointed to different directories but on the same server. When I uplaod file from…
baig772
  • 3,404
  • 11
  • 48
  • 93
1
vote
2 answers

Inconsistent skewness results between basic skewness formula, Python and R

The data I'm using is pasted below. When I apply the basic formula for skewness to my data in R: 3*(mean(data) - median(data))/sd(data) The result is -0.07949198. I get a very similar result in Python. The median is therefore greater than the mean…
Oliver Angelil
  • 1,099
  • 15
  • 31
1
vote
3 answers

Calculate the distribution of color across an image in OpenCV

Let say that we have a gray-scale image. Is there a way to calculate how the non-black pixels are distributed, i.e. whether they are grouped at one or several places or they are distributed uniformly in the whole image?
Nikola Obreshkov
  • 1,698
  • 4
  • 21
  • 32
1
vote
1 answer

alpha parameter from an alpha-stable distribution

Considering I have a collection of data. Let's say for example they are length 100. My hypothesis say that these data follow the alpha-stable distribution. Is there a way to calculate the alpha parameter of these data? I would like to do that in…
1
vote
0 answers

Trying to find density function data

I am trying to get PDF data points based on my data. It used to work until last night but I am getting awfully small numbers now. What am I doing wrong here? dgumbel <- function(x,a,b){ # PDF exp((a - x)/b - exp((a - x)/b))/b } pgumbel <-…
user116922
  • 51
  • 5
1
vote
2 answers

Is there an approximation to get meanvalue and standard deviation in one loop

I have a collection of n floating point values: x[n]. When I want to calculate the meanvalue and standard deviation, I need to iterate with two loops over all values: First loop to sum all values and calculate the meanvalue: sum = 0 for(i=0; i
RomCoo
  • 1,868
  • 2
  • 23
  • 36
1
vote
1 answer

R fit user defined distribution

I am trying to fit my own distribution to my data, find the optimum parameters of the distribution to match the data and ultimately find the FWHM of the peak in the distribution. From what I've read, the package fitdistrplus is the way to do this. I…
user6528780
1
vote
1 answer

Upload iphone app error "The CodeResources file must be a symbolic link ...."

I have been working on this issue for over a week with no luck and tried every possible solution e.g. delete and reinstall certificates, profiles, and everything seems to be ok. My problem show up when I try to upload with Application Uploader where…
Adel
  • 19
  • 1
  • 2
1
vote
1 answer

How equitably distribute node in VBox in JavaFX FXML

How can I distribute equitably several section in a VBox? In other words, I have this FXML code:
Jeankowkow
  • 814
  • 13
  • 33
1 2 3
99
100