87 questions
0 votes
0 answers
54 views
Any known changes to glmmTMB since 2023 that would alter model fit?
I used glmmTMB to run GLMMs with a beta distribution to evaluate the proportion of time an animal spends doing a behavior. My observations were of different lengths, and I weighted the observations ...
1 vote
2 answers
191 views
Efficiently simulating many frequency-severity distributions over thousands of iterations in numpy
I've got a problem at work that goes as follows: We have, say, 1 million possible events which define frequency-severity distributions. For each event we have an annual rate which defines a Poisson ...
0 votes
0 answers
107 views
Issue with Residual Plot Pattern after Fitting beta_family Model in glmmTMB
I'm working with proportion data and have tried several models to address issues of overdispersion and underdispersion. Initially, I used a binomial distribution model which showed overdispersion. ...
0 votes
2 answers
247 views
How can I model the curve of asymmetric peaks using scipy.stats.beta?
I am trying to integrate chromatographic peaks. I need to be able to model the peak shape to consistently determine when the peaks begin and end. I can model Gaussian peaks but many peaks are ...
-2 votes
1 answer
2k views
Interpreting y axis in density plot [closed]
200 people were tested, 20 of those were infected. I want to get a posterior distribution for the uncertainty associated with the probability that a person is infected. I do this like this: n<-200 ...
1 vote
1 answer
258 views
beta regression with optim in R
I am trying to estimate parameters in a beta regression using optim in R. I can do so if I parameterize the model with mu and phi as is done in the package betareg. That optim code is shown below. ...
1 vote
2 answers
1k views
estimate alpha and beta from beta distribution from a set of probabilities in R
I would like to estimate the alpha and beta parameters from a beta distribution when all I have is a set of probabilities. I cannot seem to find an example of this online. Below I try three ...
0 votes
3 answers
533 views
Why overlaying Beta distribution on a histogram fails for small sample sizes?
For those without a statistics background but who could assist with coding: I have multiple small datasets (around 30 to 200 rows each) and need to determine the best-fitting distribution. One ...
0 votes
1 answer
137 views
How to overlay Beta distribution with other distribution simultaneously using ggplot2 in R?
It might be a simple question but I have been trying to fix this issue for a few days so any help is really appreciated. If there is something wrong about my question, please leave a comment so I know ...
0 votes
1 answer
380 views
how to overlay Beta distribution on histogram ggplot2?
Lets say I have the following data library(ggplot2) set.seed(2203) data <- runif(100, 15, 45) df <- data.frame(data) And my end goal is to overlay 3 different distributions on the histogram ...
1 vote
1 answer
377 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 ...
1 vote
1 answer
108 views
How to compress proportion data to remove 0 and 1 values?
I am working with data of vegetation cover (proportions) for different height strata (0-5, 5-15, 15-30, >30 cm, and also bare ground) amongst four different sites (sitio) and two different time ...
0 votes
2 answers
404 views
How would I learn parameters of a beta distribution in TensorFlow Probability?
I'm trying to use TensorFlow Probability to learn the alpha and beta parameters of a beta distribution. I can't get it to work for some reason - the loss is all NaN values. Here's what I have: from ...
3 votes
1 answer
338 views
Specifying complex truncated beta distribution
I'd like to specify a truncated beta distribution such that the support is [0.1, 0.4], and allow for the probability density at the lower bound to be higher than very near 0. Here's what I have so far....
1 vote
2 answers
419 views
Beta distribution with bounds at [0.1, 0.5]
I'd like to construct a beta distribution where the mu and sigma are 0.28 and 0.003, respectively, and the distribution is bound at [0.1, 0.5]. import numpy as np import pandas as pd import plotly....