what is the formula for this piece of R code, to compute standard deviation of what? [closed]2019 Community Moderator ElectionC++ Question - Can anyone help?How do I add and subtract probability disributions like real numbers?Matlab: How to generate a 4x1 matrix of random variables, assuming a 4x4 correlation matrix?R: running standard deviationsGeneric functions for standard deviation in monte carlo C++Monte Carlo simulation with condition loop in MATLABDifference between C++ random number generation and PythonValue-at-Risk (Extreme-Value Theory) using Monte Carlo Simulation in RUse R to calculate the quantile of the ratio of two correlated normal random variablesMonte Carlo Simulation for Multiple Entries in Python

A diagram about partial derivatives of f(x,y)

combinatorics floor summation

Shortcut for setting origin to vertex

A single argument pattern definition applies to multiple-argument patterns?

Print a physical multiplication table

Why do newer 737s use two different styles of split winglets?

Official degrees of earth’s rotation per day

Is it insecure to send a password in a `curl` command?

How to deal with taxi scam when on vacation?

Welcoming 2019 Pi day: How to draw the letter π?

Equivalents to the present tense

Have the tides ever turned twice on any open problem?

Is "upgrade" the right word to use in this context?

Could the Saturn V actually have launched astronauts around Venus?

How do you talk to someone whose loved one is dying?

My adviser wants to be the first author

Describing a chess game in a novel

Why is a white electrical wire connected to 2 black wires?

Is honey really a supersaturated solution? Does heating to un-crystalize redissolve it or melt it?

How do I hide Chekhov's Gun?

I got the following comment from a reputed math journal. What does it mean?

How difficult is it to simply disable/disengage the MCAS on Boeing 737 Max 8 & 9 Aircraft?

Is it true that good novels will automatically sell themselves on Amazon (and so on) and there is no need for one to waste time promoting?

How to pronounce "I ♥ Huckabees"?



what is the formula for this piece of R code, to compute standard deviation of what? [closed]



2019 Community Moderator ElectionC++ Question - Can anyone help?How do I add and subtract probability disributions like real numbers?Matlab: How to generate a 4x1 matrix of random variables, assuming a 4x4 correlation matrix?R: running standard deviationsGeneric functions for standard deviation in monte carlo C++Monte Carlo simulation with condition loop in MATLABDifference between C++ random number generation and PythonValue-at-Risk (Extreme-Value Theory) using Monte Carlo Simulation in RUse R to calculate the quantile of the ratio of two correlated normal random variablesMonte Carlo Simulation for Multiple Entries in Python










0















I am trying Monte Carlo simulation in R.
here is the code.



sd(replicate(10000, sum(rbinom(3,1,0.5))))
[1] 0.8680022


use following formula could compute the quantity in theory, which is close to the output above.



var(X) = E[(X - E[X])^2] = ((1.5)^2 + 3(0.5)^2)/4

sd(X) = (var(X))^(0.5)


the question is, what is the formula for following code



sd(replicate(10000, mean(rbinom(3,1,0.5))))
[1] 0.2865434









share|improve this question















closed as unclear what you're asking by Gregor, Mark Rotteveel, Andronicus, divibisan, Deadpool Mar 8 at 19:19


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.













  • 2





    If you have code that you don't understand, that suggests it was written by someone else. Can you look back at / ask the source of it?

    – camille
    Mar 7 at 15:16















0















I am trying Monte Carlo simulation in R.
here is the code.



sd(replicate(10000, sum(rbinom(3,1,0.5))))
[1] 0.8680022


use following formula could compute the quantity in theory, which is close to the output above.



var(X) = E[(X - E[X])^2] = ((1.5)^2 + 3(0.5)^2)/4

sd(X) = (var(X))^(0.5)


the question is, what is the formula for following code



sd(replicate(10000, mean(rbinom(3,1,0.5))))
[1] 0.2865434









share|improve this question















closed as unclear what you're asking by Gregor, Mark Rotteveel, Andronicus, divibisan, Deadpool Mar 8 at 19:19


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.













  • 2





    If you have code that you don't understand, that suggests it was written by someone else. Can you look back at / ask the source of it?

    – camille
    Mar 7 at 15:16













0












0








0








I am trying Monte Carlo simulation in R.
here is the code.



sd(replicate(10000, sum(rbinom(3,1,0.5))))
[1] 0.8680022


use following formula could compute the quantity in theory, which is close to the output above.



var(X) = E[(X - E[X])^2] = ((1.5)^2 + 3(0.5)^2)/4

sd(X) = (var(X))^(0.5)


the question is, what is the formula for following code



sd(replicate(10000, mean(rbinom(3,1,0.5))))
[1] 0.2865434









share|improve this question
















I am trying Monte Carlo simulation in R.
here is the code.



sd(replicate(10000, sum(rbinom(3,1,0.5))))
[1] 0.8680022


use following formula could compute the quantity in theory, which is close to the output above.



var(X) = E[(X - E[X])^2] = ((1.5)^2 + 3(0.5)^2)/4

sd(X) = (var(X))^(0.5)


the question is, what is the formula for following code



sd(replicate(10000, mean(rbinom(3,1,0.5))))
[1] 0.2865434






r statistics probability montecarlo






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 8 at 18:56









Conspicuous Compiler

5,6723148




5,6723148










asked Mar 7 at 15:06









brennnbrennn

254




254




closed as unclear what you're asking by Gregor, Mark Rotteveel, Andronicus, divibisan, Deadpool Mar 8 at 19:19


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









closed as unclear what you're asking by Gregor, Mark Rotteveel, Andronicus, divibisan, Deadpool Mar 8 at 19:19


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









  • 2





    If you have code that you don't understand, that suggests it was written by someone else. Can you look back at / ask the source of it?

    – camille
    Mar 7 at 15:16












  • 2





    If you have code that you don't understand, that suggests it was written by someone else. Can you look back at / ask the source of it?

    – camille
    Mar 7 at 15:16







2




2





If you have code that you don't understand, that suggests it was written by someone else. Can you look back at / ask the source of it?

– camille
Mar 7 at 15:16





If you have code that you don't understand, that suggests it was written by someone else. Can you look back at / ask the source of it?

– camille
Mar 7 at 15:16












0






active

oldest

votes

















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

How to get text form Clipboard with JavaScript in Firefox 56?How to validate an email address in JavaScript?How do JavaScript closures work?How do I remove a property from a JavaScript object?How do you get a timestamp in JavaScript?How do I copy to the clipboard in JavaScript?How do I include a JavaScript file in another JavaScript file?Get the current URL with JavaScript?How to replace all occurrences of a string in JavaScriptHow to check whether a string contains a substring in JavaScript?How do I remove a particular element from an array in JavaScript?

Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme

List of MPs elected to the English parliament in 1640 (April) Contents List of constituencies and members See also Notes References Navigation menueNational Archives – The Glynde Place ArchivesCobbett's Parliamentary history of England, from the Norman Conquest in 1066 to the year 1803'Aldermen in Parliament', The Aldermen of the City of London: Temp. Henry III – 1912onepage&q&f&#61, false 229