Giter Club home page Giter Club logo

honkaistarrail's Introduction

Honkai Star Rail Warp Simulation Study

Static Badge

Honkai Star Rail is a gacha game published worldwide by Cognosphere. As a gacha game, it features several banners that allows players to pull for the character and their respective light cone at a relatively low rate (0.6%). With limited resources in game (the amount of jade you can get as you play), and a relatively long time frame to accumulate resources (the time needed for you to save a certain amount of jade), it is often wise to plan your warp and set expectations before warping to ensure resources are being used effectively.

Table of Contents:

Objectives

There are several questions that we could perhaps look into:

  1. What are the chances of getting a five star with the current warp that we have at hand? Considering any pity or guarantee that will be carried forward as we perform the warp.
  2. How many warps that we need to make so that we expect to see a 5-star output?

Methodology

Probability Mass Function

$$ PDF(N)= \left{ \begin{array}{ll} p(1-p)^{n-1}, \qquad N \leq 73 \\ (1-p)^{73} \times (p + (N-73)d) \prod_{n=1}^{N-74}{(1-p-nd)}, \qquad 74 \leq N \leq 89 \\ \end{array} \right. $$

Cumulative Mass Function

$$ CDF(N)= \left{ \begin{array}{ll} 1 - (1-p)^N, \qquad N \leq 73 \\ \sum_{n = 1}^{N}{PDF(N)}, \qquad 74 \leq N \leq 89 \\ 1, \quad N = 90 \\ \end{array} \right. $$

Getting 5 Star

To get a five star, we will need to have a random number <= pull rate given by the banner. With the given rate, we can then study the distribution and some mathematical properties of successful pull. We can also gauge the average pull that we need to include a five star in it.

Setting Expectation

To set our expectation before warping, we could perform simulation to estimate our chances when we would like to pull for more copies of a character. This ensures we have enough warp when pulling. The simulation will then take into account of the pity, numbers of warp, any guarantee status, number of character copies we want and estimate the probability based on our condition. This can be done with the following code.

Reference

honkaistarrail's People

Contributors

keanteng avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.