Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
  1. #1
    Player
    AugustusSB's Avatar
    Join Date
    Nov 2013
    Posts
    156
    Character
    Augustus Stormborne
    World
    Lamia
    Main Class
    Lancer Lv 50

    Probability and Variance in game

    Shown below is a histogram of a simple coin flip experiment where someone flips a coin 20 times and records what they see each time. Now repeat this a bunch of times.



    As you can see, what you might think happens, since the chance of getting heads is 50% we see the highest probability at 10 which is 50% of 20 trials and also the expected value E(X) of the random Variable X.

    Variance would be the width of the number of outcomes with probabilities higher than 0, or negligibly 0. In this case between 4 and 16. The wider the range the higher the variance, and vice versa.
    (0)

  2. #2
    Player
    AugustusSB's Avatar
    Join Date
    Nov 2013
    Posts
    156
    Character
    Augustus Stormborne
    World
    Lamia
    Main Class
    Lancer Lv 50
    Now we can think of it from a crafting perspective by changing the experiment from flipping a coin to Performing Y number of Hasty Touches and recreate a similar type of histogram.

    Has anybody tried doing this? From experience crafting in this game it feels like the variance of touch moves and/or HQ'ing something is very wide, which would explain failing a lot of 98% hq, or passing a lot of 6% melds.

    [EDIT] This 1000 character limit kills me, you can't have a meaningful discussion with 1000 characters...
    (0)

  3. #3
    Player
    IndigoHawk's Avatar
    Join Date
    Aug 2013
    Posts
    276
    Character
    Yslera Ravshana
    World
    Cactuar
    Main Class
    Gladiator Lv 60
    You can edit the first post to overcome the limit. The initial post can only be 1000 characters, but then you can edit it and make a book.
    (1)

  4. #4
    Player
    dspguy's Avatar
    Join Date
    Aug 2013
    Posts
    1,667
    Character
    Jain Farstrider
    World
    Leviathan
    Main Class
    Marauder Lv 100
    Small sample size is what you are seeing. HT success rate seems fine. And we always remember that 98% HQ fail but not the 1% HQ success.
    (2)
    Last edited by dspguy; 01-19-2014 at 10:12 PM.

  5. #5
    Player
    AugustusSB's Avatar
    Join Date
    Nov 2013
    Posts
    156
    Character
    Augustus Stormborne
    World
    Lamia
    Main Class
    Lancer Lv 50
    Quote Originally Posted by dspguy View Post
    Small sample size is what you are seeing. HT success rate seems fine. And we always remember that 98% HQ fail but not the 1% HQ success.
    I know, I agree completely. What I was wondering though is if anybody has run any experiments over a much much larger sample size to try and calculate the variance/standard deviation etc..
    (0)

  6. #6
    Player
    AugustusSB's Avatar
    Join Date
    Nov 2013
    Posts
    156
    Character
    Augustus Stormborne
    World
    Lamia
    Main Class
    Lancer Lv 50
    Quote Originally Posted by IndigoHawk View Post
    You can edit the first post to overcome the limit. The initial post can only be 1000 characters, but then you can edit it and make a book.
    Oooo, did not know that, thanks!
    (0)

  7. #7
    Player
    Eirny's Avatar
    Join Date
    Aug 2013
    Posts
    9
    Character
    Eirny Sjona
    World
    Balmung
    Main Class
    Arcanist Lv 50
    Let Y be a random variable indicating the number of successes out n trials with a probability of a success p.

    y | n, p ~ Binomial (n, p).
    Expected value = np
    Variance = np(1-p)
    Standard Deviation = sqrt{np(1-p)}

    Example:
    We use Hasty Touch (HT) 100 times with the probability of a success 0.5
    Expected number of HT successes out of 100 trials = np = 100 x 0.5 = 50
    Variance = np(1-p) = 100 x 0.5 (1 - 0.5) = 25
    Standard Deviation = sqrt(25) = 5

    Plot http://www.wolframalpha.com/input/?i...%3D100+p%3D0.5


    If you do not know the probability of a success and want to quantify your uncertainty, then

    y | n, p ~ Binomial (n, p)
    p ~ Beta(1, 1)
    p | n, y ~ Beta(1 + number of successes, 1 + number of trials - number of successes)

    Examples:

    20 HT, 13 successes.
    Beta (1 + 13, 1 + 20 - 13) = Beta (14, 8)
    Plot http://www.wolframalpha.com/input/?i...14%2C+beta%3D8

    100 HT, 44 successes.
    Beta (1 + 44, 1 + 100 - 44) = Beta (45, 57)
    Plot http://www.wolframalpha.com/input/?i...5%2C+beta%3D57

    Note how much the variances decreases by increasing the sample size.


    Further Reading:
    http://en.wikipedia.org/wiki/Binomial_distribution
    http://en.wikipedia.org/wiki/Beta_distribution
    http://en.wikipedia.org/wiki/Checkin...a_coin_is_fair
    http://en.wikipedia.org/wiki/Memory_errors
    (1)
    Last edited by Eirny; 01-22-2014 at 07:39 AM.

  8. #8
    Player
    Marxam's Avatar
    Join Date
    Aug 2013
    Posts
    2,284
    Character
    Blackiron Tarkus
    World
    Leviathan
    Main Class
    Marauder Lv 90
    Quote Originally Posted by Eirny View Post
    Let Y be a random variable indicating the number of successes out n trials with a probability of a success p.

    y | n, p ~ Binomial (n, p).
    Expected val...
    (1)

  9. #9
    Player
    Matsume's Avatar
    Join Date
    Nov 2011
    Location
    Gridania
    Posts
    1,602
    Character
    Master Matsume
    World
    Sargatanas
    Main Class
    Miner Lv 50
    I don't have any recorded data, but before patch 2.1 went live I crafted over 10K HQ two star food recipes. At the time I was interested in converting my crafting AF into materia, so I didn't use the 100% HQ rotation because of obvious stat limitations when your gear is full of tier I materia for SB purposes. The skill rotation I was using gave me on average an 85% HQ rate (+/- ~% conditions permitting). I can confidently say that more often than not after completing 100 or 200 synths that the actual HQ result was within 1% of the expected result. As for materia melding, I don't even know... all I know is I have some horrible luck.
    (1)

  10. #10
    Player
    Shinkyo's Avatar
    Join Date
    Sep 2013
    Posts
    380
    Character
    Fayhd Apollo
    World
    Sargatanas
    Main Class
    Marauder Lv 70
    Quote Originally Posted by Matsume View Post
    As for materia melding, I don't even know... all I know is I have some horrible luck.
    Materia melding is pretty awful... I tend to think that I'm just unlucky but I've had several cases of failing over 10 attempts on a 45% success chance...
    I hate materia melding...
    (0)

Page 1 of 2 1 2 LastLast