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

Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

Understanding generators in Python2019 Community Moderator ElectionGenerator function not working pythonFor loop not executing two timesGenerators - Printing generated valuesWhy can a python generator only be used once?What exactly do generators do?What does the “yield” keyword do?What does “list comprehension” mean? How does it work and how can I use it?sklearn Kfold acces single fold instead of for loopIs a generator the callable? Which is the generator?Apply Border To Range Of Cells Using OpenpyxlCalling an external command in PythonWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?Understanding slice notationUnderstanding Python super() with __init__() methodsDoes Python have a string 'contains' substring method?

How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page