Jump to content

User:Math4543/sandbox

From Wikipedia, the free encyclopedia

Chart to Scalar With Single Solutions

[edit]

Introduction

[edit]

Chart to Scalar Theory says there is a correspondence or relation between discrete buy and sell orders in the stock market volume and stock market geometry on the boundary. The boundary represents the charts which we can see. If you peel it back, there are buy and sell orders which are contained in the volume. The idea of the scalar is to encode the properties of the stock market into a scalar which represents a constraint of a hypothetical stock chart constrained by boundary conditions.

Making reference to the original paper, solutions to problems in Chart to Scalar where are not unique, meaning there are two solutions: a concave and a convex one for the RHS (right-hand-side).

A problem in Chart to Scalar requires finding the scalar, d, which serves as a constraint for a variational equation.

The scalar is represented by the one-form of the hypothetical RHS path for the stock:

where is a function of minimum length

Variational equation:

This is a Isoperimetric problem where the length is minimized while constrained by d and which is contained within the rectangular RHS region

The introduction of integrals on the LHS and RHS equilibrium equations, respectively, allow for a single solution. This is because solving the equilibrium equation results in two unique scalar values . Due to the variational principle, the value of d which confers with a longer can be discarded, leaving a path of least distance that adheres to the constraints.

Equilibrium and Buy Order Equations

[edit]

Define as the average price of :

The equilibrium equation with :

or

If , the equilibrium equation can be interpreted to mean that the amount of money flowing into a stock on the LHS must equal the amount that flows out on the RHS. Or if , the amount of money that flows into the stock on the RHS must equal the amount that flowed out on the LHS.

The buy order equation:

Sell order equation:

These equations convert LHS geometry into discrete buy and sell orders, which is useful for applications like option pricing.

The LHS functionals are restricted to the rectangular region:

Where and

If, for example, let . Then

For the RHS, we have the following components:

RHS Convex: RHS Concave:

( note: is a value between 0 and 1 that measures how much a stock path defects from a strait line, with 1 being a line. )

is defined earlier and is the expected volume on the RHS

Example: Bursting of a Stock Market Bubble

[edit]

Consider a simulation of a simple stock market market to show how the concavity of the RHS of the bubble bursting must match the LHS of the bubble inflating

The inflation of the bubble on the LHS is a concave curve given by bounded between . The RHS is bounded between . For this simulation, the hypothetical stock rises from to and it falls back to as the bubble deflates. () is chosen to indicate the LHS is rising. The LHS and RHS volume is equal and . Thus the conditions are imposed:

The time symmetry condition: are imposed, meaning that the duration of events on the LHS is equal to the RHS.

Thus:

For the LHS concave curve of form , the formula is used (making reference to original paper):

Hence, (because ) And

The equilibrium equation which is solved for d (one for the concave RHS and convex RHS):

convex

concave

These are plugged into their respective formulas to calculate the defect. The goal is to show the convex solution has a greater defect than the concave one:

concave

convex

Because of the scale invariance properties of , the above formula reduces to:

where

letting , we have the infinite series expansion about :

Because the concave has a smaller defect, the path is shorter (closest to a strait line), and hence the concave path is chosen as minimizing the action. Which completes the proof.

This concave-on-concave symmetry agrees with examples in real life of various asset bubbles bursting

Examples With Buy Order Equation

[edit]

Example 1

[edit]

Example: , the x coordinates are the same as the example above, and , and

For this example, the RHS is a concave reflection of the RHS, thus and . To compute the buy and sell orders for the RHS:

For the rest of this summary, The actual choice of does not matter for non-statistical problems.

Example 2

[edit]

What if is different? Consider a general case where is only slightly less than . Then it becomes more complicated because is unknown and cannot be assumed to be equal to and becomes a function in terms of instead of just 2/3.

The buy order equation and equilibrium equation must be combined for problems where the and or components are not equal, the result being a system of two equations that is solved for (both for the concave and convex) and (the final price of the stock, for both the concave and convex) The value of and corresponding to the greatest defect is discarded.

As before,

The components are as follows:

The inverse of evaluated at :

Both will be specified later.

In the first example, . is the functional form of LHS volume in terms of , whereas is the total volume along the interval

RHS Convex: RHS Concave:

The system of equations are solved for and :

After some labor, has the series approximation about :

As , the solution is . This is because if the number of buy orders is half of the RHS volume, we expect the stock to end unchanged.

Consider a small imbalance: . Let:

Solving fox p and d gives six possible solution pairs, but the only one that logically makes sense

Convex:

Concave:

The convex and concave curves enclose roughly the same area, indicating the that resulting LHS path is very close to being linear. Plugging these solutions into their respective convex and concave shows that the defect is very small, roughly 2.5%.

Example 3 (deriving the Market impact square-root rule)

[edit]

A formula very similar to the 'square-root' rule is derived.

Consider the instantaneous sale of stock. For simplicity, let the LHS be linear.

An instantaneous sale means . Therefore,

Define as the lower-end of the stock range and as the present price.

The LHS be visualized as a triangle with the vertices

Since the LHS is linear,

is the final price of the stock after the instantaneous sale is rendered.

Because (the LHS is rising),

Where is the total volume of the LHS between x=0,x=1 (some period of time)

This is obtained by taking the inverse of and finding the proportion of volume that is 'liberated' by the stock falling to . Via the triangle, Set . Then and gives the proportion.

can be approximated as

Set where is the 'impact'

Setting up the equilibrium equation and solving for we have:

The volatility-like variable can be written as: . Hence, we have:

As we would expect, the volatility term is scale invariant, but the impact is proportional to the initial price . If is much small than , we have a greater price range (more volatility).

The term is somewhat arbitrary, but we still have the volatility and square-root impact relation.