BlockScience Team
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.

      Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Explore these features while you wait
      Complete general settings
      Bookmark and like published notes
      Write a few more notes
      Complete general settings
      Write a few more notes
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # From High Dimensional Data to Insights (clean) *BlockScience, June 2020* ## Problem Definition and Approach Overview In this case, we have an extremely high dimensional space to evaluate complex relationships between a set of controlled and uncontrolled parameters with an interest in the effects of variations in the controlled parameters while accounting for the uncertainty in the uncontrolled parameters. Let the set of controlled parameters be denoted $\mathcal{P}_c$ and the set of uncontrolled or "environmental" parameters be denoted $\mathcal{P}_e$. Furthermore, the set of metrics or KPIs of interest is $\mathcal{K}$. A naive analysis would attempt to characterize the sensitivity of each parameter $p \in \mathcal{P} = \mathcal{P}_c \bigcup \mathcal{P}_e$ on each of the KPIs $k\in \mathcal{K}$ which is already $\left(|\mathcal{P}_c| + |\mathcal{P}_e| \right) \times |\mathcal{K}|$ dimensional statistical analysis. However, our work has indicated that the interaction effects significantly influence the scores. This causes a further combinatorial explosion in the potential sensitivities to account for. Recognizing this, we must move to more advanced computational statistical approaches. We can frame the analysis in the format of an ML learning method and focus on regression techniques capable of reading out sensitivities (including interaction effects). To accomplish this, we can structure our simulation results around a data set containing features and labels. Our feature vector $x = [ p\in\mathcal{P}_c | p\in\mathcal{P}_e ]$ and the associated label is $y = [k\in \mathcal{k}]$. Since we are using Monte Carlo experiments, there will be many records of the form $r = [x | y]$ with the same $x$ and potentially different values of $y$. In practice, this enhances the reliability of the technique, so the experimental approach needs to determine the range values of $x$ we wish to explore, ensure there are a multiplicity of experiments for each $x$, and compute the values of $y$ from the resulting simulation experiments. Upon constructing the data set $\mathcal{R}$ containing all of the records $r$, we will train a machine learning model to predict $y$ given $x$. The art of training such a model heavily depends on the data scientist's capacity to uncover the subspaces in the feature vector space that contain the most predictive power. Our effort will leverage these dimensionality reduction techniques and the ML model's input sensitivity read-out functions to identify the combinations of parameters to which the KPIs are most sensitive. Furthermore, it is to discover the subsets of the controlled parameter choices that drive the best outcomes while accounting for the worst cases of the environmental parameters. The two pieces of information we need 1. what is the pre-image of the points $y$ that we liked in the feature space $x$, with a paricular focus on $x_c$? 2. what are the levels of sensitivity of the outputs $y$ to particular subsets (or subspaces) of the feature space $x$? ### Additional Thoughts Another technique that should help with selection of the final parameters is to intentionally exclude the features $x_e$ and restrict ourselves to predicting $y$ only using our choices of $x_c$. With this approach its incredibly important to have the range of scenarios for different $x_e$ still in the data set, and in particular for the frequency of those records to be representive our best guess of the probabilities of those particular environment conditions denoted by $x_e$. Another important consideration is that the RMSE or other loss functions used to assess predictive power measures for this model will serve a dual purpose. To a limited extent they fulfill there standard function in validating the quality of the ML model, and lower loss will imply the model is stronger. However, due to the complexity it is expected that these modes will still have relatively high error rates. We are more interested in examining where that variance remains versus where it has been reduced, rather than strictly getting a model with an extremely low error. ## Methodology ### Setup #### Controlled Parameters enumerate the set $\mathcal{P}_c$ * P1 (e.g. token issuance initial value) * P2. (e.g. token issuance inflection point) * P3 (e.g. lock-up fraction) * Others that may be #### Environmental Parameters Enumerate the set $\mathcal{F}_e$ * Token Price (parameteres of the generator functions) * Associated dimentionality: $F$ * Probability distribution * Mean * Standard deviation * Number of aggregators * Token Supply * Associated dimensions: $S \times T$ * Demand for Token-associated Utility * Associated dimensions: $S \times T$ * Personas * Associated dimensions: $S \times R$ * Operating cost * Type * Common Farmer * Staking Farmer * Verified Farmer #### Performance Metrics Enumerate the set $\mathcal{K}$ (must be caste as either binary outputs or scalar outputs computable from a simulation trajectory) Decided on XX-MMMM: * Is the lowest profitable farming output after year 5 greater than or equal to a given number? * `(min(farming_output[5:]) >= MIN_THRESHOLD)` * Tokens stay >= 10% more than 80% of the time * * cost of 33% Staked >= 100M USD more than 80% of the time * Network profitable output in staked tokens * Dimensionality: $S \times T$ * Profitable Utility per persona * Dimentionality: $S \times R \times T$ * Cost of production per unit of token * Dimensionality: $S \times T$ * Staked to Supply Ratio * Dimentionality: $S \times T$ * 33% Staking Fraction * Dimentionality: $S \times T$ ### Data structure The simulation data structure is described generally as a 5-tensor, such as $D = (\nu, S, R, T, t)$, where each dimension is described as follows: * $\nu$: An measurement associated with an given variable. For the current simulation, we have dim$(\nu) \approx 30$ * S: The parameter space of the simulations. This includes all sweeped parameters ($P$) as well as the pricing scenarios ($F$) such that $S = P \times F$. Currently, $dim(F) = 3, dim(P) \approx 10000 \leftrightarrow dim(S) \approx 30000$ * R: The space of the existing personas on the simulations. Currently, $dim(R) = 4$ * T: The time dimension associated with the measurements. Currently, $dim(T) \approx 180$ * t: The 'imaginary' time dimension, which is an time-series for each point in time. Has an concrete interpretation of being the future and past expectancies around a given time. Currently, $dim(t) \approx 200$ Multiplying all the dimensions gives us an tensor with about 130 trillion size. In practice, this tensor is sparse, and we can decompose it on four dense tensors, each one with an characteristic dimension. They are: * ST tensor, associated with network measurements * Associated variables: staked tokens, demand for utility, etc * SRT tensor, associated with measurements on each persona * Associated variables: staked tokens associated with each persona * STt tensor, associated with time-series on each point on time * Associated variables: * SRTt tensor, associated with time-series for each persona and on each point on time. * Associated variables: rewards for unlocking at a given time, for each persona #### Linking the data with the formalism Each sweeped parameter is associated with a subspace of the $S$ dimension. Specifically, $S = \mathcal{P_c} \times \mathcal{P_e} \times F$. Additionaly, the $\mathcal{K}$ is defined as being a subset over the measurement space generated by $\nu$. This means that $\mathcal{K} \subset (\nu \times S \times R \times T \times t)$. This generates the possibility that the KPIs have different dimentionalities, and as such, they must be either aggregated or expanded when doing comparisons in order to have measurable outputs. One example of aggregation would be to sum the profitable utility of the personas, which has SRT dimensions, into a total profitable utility of the network, which has ST dimensions. Essentialy, we apply an transformation rule such that $R \rightarrow 1$ As for the expansion, it works by increasing the variable dimensions of the feature space by the associated dimensions. It is sort of analogous to generating new columns for each element in the expanded dimension. If you have four personas with a profitable utility, then by expanding you'll have four columns, each one associated with a persona profitable utility.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully