Posts

bioinformatics

Last edited: August 8, 2025

bioinformatics is a field of biology that deals with biology information. Blending CS, Data, Strategies and of course biology into one thing.

First, let’s review genetic information

possible use for bioinformatics

  • Find the start/stop codons of known gene, and determine the gene and protein length

bitmask

Last edited: August 8, 2025

bitmasking is a very helpful to create bit vectors.

  • | with a 1-mask is useful to turning things on
  • & with a 0-mask is useful to turning things off (bitvector & not(1-mask))
  • | is useful for set unions
  • & is useful for intersections of bits
  • ^ is useful for flipping isolated bits: 0 is bit preserving, 1 is bit negating
  • ~ is useful for flipping all bits

bitwise operations

Last edited: August 8, 2025

& | ~ ^ << >>

&

Bitwise level AND

|

Bitwise level OR

~

Unary bitwise negation

^

Unary XOR

<<

Shift the number to the left. Fill unused slots with 0.

>>

Shift the number to the right

Black Thursday

Last edited: August 8, 2025

Black-Scholes Formula

Last edited: August 8, 2025

People have been trading options for a very long time, but there wasn’t a good way of quantify the value of an option.

There are two main types of uses for Black-Scholes Formula

  1. you can use all variables and determine the value of options
  2. you can get the price of options being traded, then compute the $σ$—the market’s estimation of volatility (how much they want the insurance policy that is the options)

constituents

  • \(S_0\): stock price
  • \(X\): exercise price
  • \(r\): risk-free interest rate
  • \(T\): maturity time
  • \(\sigma\): standard-deviation of log returns—“volatility”

Black-Scholes Formula for an European “Call” Option

Here is the scary formula: