Questions tagged [volatility]

175 questions
126
votes
4 answers

reference assignment is atomic so why is Interlocked.Exchange(ref Object, Object) needed?

In my multithreaded asmx web service I had a class field _allData of my own type SystemData which consists of few List and Dictionary marked as volatile. The system data (_allData) is refreshed once in a while and I do it by creating another…
char m
  • 7,840
  • 14
  • 68
  • 117
13
votes
6 answers

Fast Implied Volatility Calculation in Python

I am looking for a library which i can use for faster way to calculate implied volatility in python. I have options data about 1+ million rows for which i want to calculate implied volatility. what would be the fastest way i can calculate IV's. I…
Neetesh
  • 131
  • 1
  • 1
  • 3
10
votes
3 answers

How to understand volatile and non-volatile registers?

CPU registers can be classified as volatile and non-volatile by calling convension, how does does the meaning of word volatile implies the classification?
Thomson
  • 20,586
  • 28
  • 90
  • 134
10
votes
3 answers

Cannot override a type with non-volatile upper bound

I have a compiler error in scala and I don't know what does it refer to: Assume these declarations:trait Abstract { type MyType } trait AInner trait A extends Abstract{ type MyType <: AInner } trait BInner { def bMethod : Int } trait B…
ryskajakub
  • 6,351
  • 8
  • 45
  • 75
9
votes
1 answer

How do IMMUTABLE, STABLE and VOLATILE keywords effect behaviour of function?

We wrote a function get_timestamp() defined as CREATE OR REPLACE FUNCTION get_timestamp() RETURNS integer AS $$ SELECT (FLOOR(EXTRACT(EPOCH FROM clock_timestamp()) * 10) - 13885344000)::int; $$ LANGUAGE SQL; This was used on INSERT and UPDATE to…
Russell Ormes
  • 525
  • 8
  • 22
7
votes
2 answers

Need to stop UDFs recalculating when unrelated cells deleted

I've noticed that my UDFs recalculate whenever I delete cells. This causes massive delays when deleting entire columns, because the UDF gets called for each and every cell it is used in. So if you're using 1000 UDFS, then deleting a column or cell…
jeffreyweir
  • 4,668
  • 1
  • 16
  • 27
6
votes
2 answers

Simulation of GARCH in R

I am doing a simulation of a GARCH model. The model itself is not too relevant, what I would like to ask you is about optimizing the simulation in R. More than anything if you see any room for vectorization, I have thought about it but I cannot see…
aatrujillob
  • 4,738
  • 3
  • 19
  • 32
6
votes
2 answers

Atomicity, Volatility and Thread Safety in Windows

It's my understanding of atomicity that it's used to make sure a value will be read/written in whole rather than in parts. For example, a 64-bit value that is really two 32-bit DWORDs (assume x86 here) must be atomic when shared between threads so…
loop
  • 3,460
  • 5
  • 34
  • 57
5
votes
2 answers

Parsing quotes in R: Quantmod application

I'm trying to create function that provides historical volatility after getting symbol from Yahoo. However, when I pass output to volatility function it doesn't like it; The Get variable gets assigned a vector with quotes, e.g. "SPY", but the…
jd8585
  • 187
  • 1
  • 8
5
votes
2 answers

R rugarch solver fails to converge

I would like to estimate the EGARCH model on two different time-series using the excellent rugarch package, but the solver fails to converge. I do not want to use the "hybrid" solver option because this introduces randomness when it cycles through…
user1491868
  • 596
  • 4
  • 15
  • 42
5
votes
1 answer

PostgreSQL insert or update trigger function volatility category

Assume, i have 2 tables in my DB (postgresql-9.x) CREATE TABLE FOLDER ( KEY BIGSERIAL PRIMARY KEY, PATH TEXT, NAME TEXT ); CREATE TABLE FOLDERFILE ( FILEID BIGINT, PATH TEXT, PATHKEY BIGINT ); I automatically update…
2can
  • 91
  • 3
  • 10
5
votes
2 answers

R - Modelling Multivariate GARCH (rugarch and ccgarch)

First time asking a question here, I'll do my best to be explicit - but let me know if I should provide more info! Second, that's a long question...hopefully simple to solve for someone ;)! So using "R", I'm modelling multivariate GARCH models based…
cmembrez
  • 53
  • 1
  • 2
  • 7
4
votes
1 answer

Spot instances termination

I'm planning to start using Amazon EC2, and, as everyone, I want to use Spot instances. Will be for a minigames server, so Spot instances are perfect for this. Players enter, play the match and leave, so when a Spot instance finishes because of spot…
Jorge Fuentes González
  • 11,568
  • 4
  • 44
  • 64
4
votes
1 answer

EWMA Volatility in R using data frames

I am trying to get EWMA volatility from a series of stock daily returns from a data frame called base_retorno_diario Data IBOV ABEV3 AEDU3 ALLL3 BBAS3 BBDC3 BBDC4 1 2000-01-04 -0.063756245 0.00000000 0 …
RiskTech
  • 1,135
  • 3
  • 13
  • 19
3
votes
1 answer

Using R to get volatility and Peak to avg. Ratio of internet traffic data

I have network traffic data in the following for for each hour of a ten day period as follows in a R dataset. Day Hour Volume Category 0 00 100 P2P 0 00 50 email 0…
sfactor
  • 12,592
  • 32
  • 102
  • 152
1
2 3
11 12