Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

All Questions

-1 votes
0 answers
28 views

What distribution should I use? [closed]

I'm new to statistics and need to create a probability distribution with the following study: *Note: Due to proprietary reasons the example given below is the best representation of the real data. ...
Rookie_Programmer's user avatar
0 votes
0 answers
26 views

Is there a way to modelize a partial predictor in a classification problem with an unbalanced target?

I would like to share with you a classification issue I faced during the modelling process. I have to create a model for an unbalanced binary target by 4 predictors where one of them has 45% of wrong ...
rambo17's user avatar
2 votes
0 answers
45 views

How to implement a mixture of gamma distributions in Python without Bayes'?

I am trying to create examples to compare and contrast Bayesian MCMC (e.g. HMC) with non-Bayesian equivalents. One of the cases I am finding difficult is creating a mixture of gamma distributions. I ...
Galen's user avatar
  • 1,278
0 votes
0 answers
16 views

why there is wrong data from lognorm.fit?

I wrote code to get distribution for lognorm from 8 data and I got 8 graph. Just one of them look like having some problem(don't fit well to histogram) and the parameter from lognorm.fit is so ...
고경수's user avatar
2 votes
1 answer
162 views

Correct way to generate random numbers from a log-normal distribution in R

I have a data set of household incomes. I want to fit a log-normal distribution to the data then generate random numbers from that distribution. The approach below using the MASS package seems to give ...
Sam Hollon's user avatar
1 vote
0 answers
34 views

Getting error while running flexsurvreg function

Can anyone help me how to to define the below given custom distribution in flexsurvreg function. custom_pdf=function(y,b0,b1,b2,b3,sigma,alpha){#pdf of proposed model z=(y-b0-b1*t2-b2*t3-b3*t4)/...
Akhilraj N S's user avatar
  • 9,347
-1 votes
1 answer
77 views

Simple seaborn distribution plot not working

I’m trying to plot the distribution of scores on reddit posts, but can’t figure it out. My data frame is something like that df = pd.DataFrame({"score": [12, 19, 25987, 887, 887, 1], ...
Louis's user avatar
  • 297
0 votes
1 answer
54 views

C_qf function - base stats packages [duplicate]

I have been running a piece of code which uses the gamlss qEGB2() function. However, it has been producing the following warning message: In qf(p, 2 * nu, 2 * tau) : full precision may not have been ...
user928670's user avatar
0 votes
0 answers
318 views

How to draw a normal distribution with only integer values within a set range

I am trying to draw a normal distribution with only integers within a range. I tried reading other posts here in stackoverflow, although some are somewhat related, I still can't find the answer. I ...
Victor Shin's user avatar
2 votes
1 answer
163 views

Better Understanding Log-Normal with SciPy

I know that are plenty of questions about the log-normal in scipy as this, this, this, and this But I still have doubts. I'm trying to reproduce this example with SciPy, because I can understand the ...
JCV's user avatar
  • 485
1 vote
1 answer
183 views

Generating correlated beta-distributed values in R

I have the written the following code in R with an aim to generate correlated random variables which follow the beta distribution #objective is to generated correlated #beta distributed data ...
Indian's user avatar
  • 996
0 votes
1 answer
141 views

How to Calculate and Plot the Fitted Straight Line on a Probability Plot?

I am currently working on plotting a Probability Plot by using Plotly.JS , where the percentiles are represented on the y-axis and the corresponding values are plotted on the x-axis. I am aiming to ...
Jamal Muhammad's user avatar
-2 votes
1 answer
182 views

Why my fitting distribution in R is throwing out errors?

Here is a sample code where i am trying to fit multiple distribution. Can someone please look into the error and run the code to its entirety? Thanks # Step 1: Load required libraries library(ismev) ...
Hydro's user avatar
  • 1,073
1 vote
1 answer
134 views

How to sample from a list of items with associated value according to a specific value proportion distribution?

I have a list of items (40799 in total) and each comes with a value. It looks like the following - item_id value id1 88563 id2 85154 id3 81726 id4 79855 id5 72417 I need to sample from this ...
YZW's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
30