Group Abstract Group Abstract

Message Boards Message Boards

0
|
4.6K Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

How to scale a binomial distribution by X with error?

Posted 4 years ago

I'm trying to simulate a binomial distribution [ n=8, p=0.22]. I want to scale the result by a known weight [e.g., 0.51]. This weight, however, has uncertainty [variance = 0.31] that should be factored in.

Is it possible in Mathematica to randomly scale an outcome by x plus or minus a given variance?

Thanks :)

4 Replies
Posted 4 years ago
POSTED BY: Jim Baldwin

Thank you, Jim.

Apologies for the ambiguous language. I have a measured probability (0.22) of success. The success of each trail corresponds to a particular weight (e.g., measured voltage 0.51 mV). This measurement has error (coefficient of variation + channel noise = 0.31). I am trying to calculate how 8 such units with similar successes and weights would behave (i.e, what is the expected mV and variance).

Here's what I did....
I have treated weight as a random normal variable such that:

weight_SD = RandomVariate[NormalDistribution[0.51,0.31], 100];

pTrials = RandomVariate[BinomialDistribution[8, 0.22], 100];

data = pTrials * weight_SD

Does this seem sound? Thanks again for the help :)

Posted 4 years ago
POSTED BY: Jim Baldwin
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard