Die don’t remember the last roll. Really. [General Sta­tis­tics]

posted by Helmut Homepage – Vienna, Austria, 2020-06-28 17:36 (1391 d 16:19 ago) – Posting: # 21585
Views: 4,654

Hi ElMaestro,

❝ If it did remember the last roll and the outcome was somehow a function of it, wouldn't that be correlation?


Well, the die is [image] Thick As A Brick. If a roll depends on the result of the last one, that could be (a) cheating by an expert gambler or (b) an imperfect die. In both cases you would have a correlation indeed and the concept collapses.

❝ And how is the die and last roll mental image fitting in with Z and s being indepedent? I think it fits better into the mental picture of errors in a model being IID.


My example deals with \(\small{\mathcal{N}(\mu,\sigma^2)}\). If you want to dive into combinatorics/permutations (coin flipping, rolling dice) see the first example in this post.

❝ Or more generally:

❝ From a sample of size N I am deriving two quantities A and B. Under what cicumstances will A and B be independent? A die with Alzheimer does not really shed light on it, does it?


As usual: Know the data generating process. If you cannot be sure that the outcome of B is independent from A you are in deep shit.

❝ Kindly help me a little more. I do not see the idea of the R code but it executes nicely …

  1. Simulate a \(\small{\mathcal{N}(\mu,\sigma^2)}\) population \(\small{x}\) with \(\small{\mu=100},\) and \(\small{\sigma=20}\).
    For \(\small{N=10^5}\) the trusted Mersenne-Twister gives us \(\small{\hat{\mu}=100.0655,}\) \(\small{\hat{\sigma}=20.0154}\).
    Draw a histogram of \(\small{x}\). Overlay the histogram with a normal curve.
  2. Draw 30 samples \(\small{x_{s1},x_{s2},\ldots,x_{s30}}\) of size 20 from \(\small{x}\).
    Estimate \(\small{\bar{x}, {s_{x}}^{2}}\) of each sample and plot the normal curves with \(\small{\bar{x}\mp s_x}\).
    Get pooled estimates, which acc. to the CLT should approximate the population’s parameters.
  3. Compare the outcome with the population.
  4. Correlation of samples’ means and variances. As expected, there is none.

❝ … except errors for idx.m and idx.v.:-)


Fuck. Try the edited one.

❝ Code on this forum rarely provides clarity for me. This has nothing to do with the code, but has everything to do with me :sleeping:


Sorry. I added more comments than usual. ;-)

Dif-tor heh smusma 🖖🏼 Довге життя Україна! [image]
Helmut Schütz
[image]

The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes

Complete thread:

UA Flag
Activity
 Admin contact
22,988 posts in 4,825 threads, 1,655 registered users;
108 visitors (0 registered, 108 guests [including 7 identified bots]).
Forum time: 09:55 CEST (Europe/Vienna)

The whole purpose of education is
to turn mirrors into windows.    Sydney J. Harris

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz
HTML5