poisson Questions

1

I have never used R code in python before, but would like to do so in order to implement some Poisson regression models. The reason for this is efficiency (R code for poisson regression much more e...
Uteutensil asked 9/12, 2020 at 22:24

1

I'm trying to run a Poisson model, like this: poisson_model_xg = smf.glm(formula="xG ~ home + team + opponent", data=xg_model_data, family=sm.families.Poisson()).fit() I'm getting the ...
Sussna asked 29/10, 2020 at 3:9

5

Solved

I have some images that I need to add incremental amounts of Poisson noise to in order to more thoroughly analyze them. I know you can do this in MATLAB, but how do you go about doing it in Python?...
Undersell asked 10/10, 2013 at 7:21

1

I am working through "Forecasting with Exponential Smoothing". I am stuck on exercise 16.4 on the part that states: The data set partx contains a history of monthly sales of an automobile part. ...
Waugh asked 2/1, 2020 at 15:28

4

I would like to create a function in Java that generates Poisson arrivals given the mean arrival rate (lambda) and the mean service rate (mu). In my example I have: 2,2 requests/day, in other word...
Pointtopoint asked 23/3, 2012 at 1:16

5

Solved

i've been looking around, but i'm not sure how to do it. i've found this page which, in the last paragraph, says: A simple generator for random numbers taken from a Poisson distribution is obtain...
Granduncle asked 6/8, 2009 at 21:20

2

I need to write a function in Python 3 which returns an array of positions (x,y) on a rectangular field (e.g. 100x100 points) that are scattered according to a homogenous spatial Poisson process. ...
Capitation asked 30/6, 2015 at 8:27

2

Solved

I would like to generate N points in a circle C of center (0,0) and of radius R=200. The points follow Poisson distribution. In other words, I would like to generate N homogeneous Poisson point pro...
Sensual asked 3/8, 2015 at 3:26

2

Solved

I am generating a random number using scipy stats. I used the Poisson distribution. Below is an example: import scipy.stats as sct A =2.5 Pos = sct.poisson.rvs(A,size = 20) When I print Pos, I...
Episcopalian asked 19/9, 2018 at 5:45

3

I want to build a Random Forest Regressor to model count data (Poisson distribution). The default 'mse' loss function is not suited to this problem. Is there a way to define a custom loss function ...
Strobilaceous asked 26/3, 2018 at 14:0

2

I found a package 'bivpois' for R which evaluates a model for two related poisson processes (for example, the number of goals by the home and the away team in a soccer game). However, this package ...
Furrier asked 16/4, 2012 at 19:48

1

I am trying to model count data on the number of absence days by worker in a year (dependant variable). I have a set of predictors, including information about workers, about their job, etc..., and...
Candelaria asked 23/5, 2017 at 12:22

1

Solved

I am running a zero-inflated model for CPUE data. This data has evidence of zero-inflation which I have confirmed with a Vuong test (in code below). The full model (zint) is better than the null ac...
Dmso asked 28/3, 2017 at 17:17

1

Solved

I have been trying to find a way to fit some of my columns (that contains user click data) to poisson distribution in python. These columns (e.g., click_website_1, click_website_2) may contai...
Spectroradiometer asked 26/2, 2017 at 6:15

2

I am new with poisson point process. I did one simluation (matlab) as below. My intensity lambda = 50; clear all; lambda=50; npoints = poissrnd(lambda); pproc = rand(npoints, 2); plot(pproc(:, ...
Orran asked 14/1, 2015 at 5:3

2

Solved

I am trying to understand how HashMap is implemented in Java. I decided that I will try to understand every line (of code and comments) from that class and obviously I faced resistance very soon. T...
Grabble asked 8/12, 2013 at 0:37

2

I am trying to use XGBoost to model claims frequency of data generated from unequal length exposure periods, but have been unable to get the model to treat the exposure correctly. I would normally ...
Orel asked 26/2, 2016 at 19:56

1

Solved

I try to fit my data to a poisson distribution: import seaborn as sns import scipy.stats as stats sns.distplot(x, kde = False, fit = stats.poisson) But I get this error: AttributeError: 'pois...
Kerbing asked 28/5, 2016 at 14:51

1

Solved

I am generating a Gaussian, for the sake of completeness, that's my implementation: from numpy import * x=linspace(0,1,1000) y=exp(-(x-0.5)**2/(2.0*(0.1/(2*sqrt(2*log(2))))**2)) with peak at 0.5...
Smoke asked 1/3, 2016 at 17:21

2

Solved

I read somewhere that the python library function random.expovariate produces intervals equivalent to Poisson Process events. Is that really the case or should I impose some other function on the r...
Twi asked 21/12, 2011 at 15:15

1

Solved

I'm sampling a Poisson process at a millisecond time scale where the rate is not fixed. I discretise the sampling process by checking in each interval of size delta whether there is an event there ...
Responsiveness asked 22/9, 2015 at 8:46

1

Solved

Here's the data and set up: library(fitdistrplus) library(gamlss) finalVector <- dput(finalVector) c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
Godhead asked 24/6, 2015 at 18:45

3

Solved

I want to generate events that "arrive" with "t" seconds as mean inter-arrival delay? Starting at time 0, how do I generate the times when the event occurs? Basically, I want to generate sequence o...
Nimitz asked 28/2, 2011 at 23:5

2

Solved

I have some observational data for which I would like to estimate parameters, and I thought it would be a good opportunity to try out PYMC3. My data is structured as a series of records. Each rec...
Rolanderolando asked 16/6, 2014 at 11:28

1

Solved

In python random module, the expovariate() function generates floating point numbers which can be used to model inter-arrival times of a Poisson process. How do I make use of this to generate integ...
Saturable asked 16/6, 2014 at 11:8

© 2022 - 2024 — McMap. All rights reserved.