Navigation

    forum

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    1. Home
    2. DollarAkshay
    3. Posts
    • Flag Profile
    • block_user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Groups
    • Blog

    Posts made by DollarAkshay

    • Incorrect Values for Standard Deviation on Market Page

      THe values shown on the market page when you hover over a comodity is the average price and standard deviaton over the last 14 days . But It seems like the standard deviation calculation is absolutely wrong. The standard deviation is just a weighted average over the 14 days which is the wrong way to calculate standard deviaton over a series.

      Here is the proof

      0_1633932204191_f14bb65c-b38c-4bd0-9d39-5c8e86c46336-image.png

      Here is the function whose output is shown above

      const misc = (resourceType?: ResourceConstant) => {
          const data = Game.market.getHistory().filter(o => o.resourceType === resourceType);
          const totalVolume = data.reduce((sum, d) => sum + d.volume, 0);
          const avg = data.map(d => d.avgPrice * d.volume).reduce((sum, x) => sum + x, 0) / totalVolume;
          const wrongStd = data.map(d => d.stddevPrice * d.volume).reduce((sum, x) => sum + x, 0) / totalVolume;
          // This is the correct way to calculate standard deviation : https://stats.stackexchange.com/a/442050/143357
          const correctStd = Math.sqrt(data.map(d => (d.stddevPrice ** 2) * (d.volume - 1) + d.volume * ((avg - d.avgPrice) ** 2)).reduce((sum, x) => sum + x, 0) / (totalVolume - 1));
          console.log(`${avg.toFixed(3)} ± ${correctStd.toFixed(3)} | Wrong STD = ${wrongStd.toFixed(3)}`);
      };
      

      I believe this is a bug. You can take a look at this stackexchange question on the correct formulas to calculate standard deviation : https://stats.stackexchange.com/a/442050/143357

      posted in Technical Issues and Bugs
      DollarAkshay
    • RE: how to use life time?

      As far as I can see you have no room outside of Shard3. 0_1632703475553_66849ba0-5f9d-4159-abcd-5b1e4fd432e1-image.png

      You need to have rooms in shard0, shard1, and shard2 to actually use that CPU in that shard

      posted in General Discussion
      DollarAkshay
    • Visual Bug in Alpha Version of the New World Map

      How it looks in the normal map :

      0_1628878982307_aaaca264-85cb-4ea6-80c1-3a57fcea1b77-image.png

      How it looks in the Alpha Version of the new world map : 0_1628879090727_8ff19705-85a6-42e8-ace2-72843f0937f5-image.png

      The walls that will open up after novice period does not show up in the new world map version

      posted in Technical Issues and Bugs
      DollarAkshay