由买买提看人间百态

topics

全部话题 - 话题: volatility
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
g****t
发帖数: 31659
1
来自主题: Programming版 - 用volatile退出线程对不对?(C++)
他可能不理解这些东西的design motivation。
这类东西的根源,除了多线程,最容易理解的需求根源
是硬件驱动。这些往往是EE的内容。


: 这个问题讨论这么久你还没明白什么重要。

: 首先现在既然有C 11的标准了,当然要遵循标准。你要是觉得按标准写
程序是
教条,

: 那后面就没啥好说的了。

: 其次按标准来说,Foxman说的很对。你的疑惑在于不明白什么叫memory
barrier。

: 这个东西别指望学校里能教,量化研究方法这种研究生体系结构教科书上
都只花了

: 一页介绍,别提本科级别的汇编语言和体系结构课了。

: 最后,C 的std::atomic带memory barrier,这个是你需要的,至于CAS
这样的
atomic

: 操作那是另外的功能。另外java里的volatile和C 里的完全不一样,前
面也讨
论的很

: 清楚了。

: happens-

b***i
发帖数: 3043
2
来自主题: Programming版 - 用volatile退出线程对不对?(C++)
我觉得不是memory barrier的问题。memory barrier前面有很多人提过,就是会防止打
乱次序。可是我代码里面设置quit=true;的语句前后没有其他代码。总不能把if的条件
和结果给打乱了吧?
UI回叫
void UIcallback(...){
quit=true;//这里没有任何其他语句
}
或者TCP处理的回叫
void TCPcallback(...){
...A
if (字符串=="QUIT")
quit=true;//这里没有任何其他语句
else
...B
...C
}
有个if在那里总不能把...A和quit=true;交换顺序吧?在这里即使有A/C这两个语句,
也是和quit=true互斥的,就是说我不可能在线程需要退出了还要继续进行其他的操作
。如果有人问那一定要进行其他的操作怎么办,比如释放资源。办法很简单,在线程的
while结束后操作。所以我说很多人引经据典都是对普通的情况的建议。对我这种具体
的情况,就一个bool,所以不需要critical section,就一... 阅读全帖
d***a
发帖数: 13752
3
来自主题: Programming版 - 用volatile退出线程对不对?(C++)
这样的话,你的代码结构上没有问题,也是实际代码中比较常见的做法。Flag变量用
volatile可以。
不过,如果计算的部分并行化了,分成多个线程并且交换数据,那flag变量确实应该用
atomic。这样做可以保证每个线程看到flag的变化后,读到的共享数据是fresh的而不
是旧的。你的程序除了flag之外没有共享数据交换,所以没事。
F****n
发帖数: 3271
4
来自主题: Programming版 - 用volatile退出线程对不对?(C++)
那你加volatile的目的是什么?
你也知道cache访问会有问题,
这就是exactly memory barrier, reordering这些讲的东西
你的quit=true只要被调用周围就灰有代码。
p***o
发帖数: 1252
5
来自主题: Programming版 - 用volatile退出线程对不对?(C++)
你得分清楚标准和实现。按C++标准,volatile不需要带barrier/ordering,
std::atomic可以按你的需要选定几种ordering中的一个,包括你说的soft/hard。
事实上对程序员来说soft/hard应该保持一致,要不然程序就没法写了。
F****n
发帖数: 3271
6
来自主题: Programming版 - 用volatile退出线程对不对?(C++)
还在不懂装懂,这句话是你赞成的那个帖子的原话:
"volatile 就是告诉 CPU 不要优化这个变量 Load/Store 的操作”
你就直接说说这句话对不对。
z*****l
发帖数: 3472
7
来自主题: Economics版 - volatility expansion
What isa volatility expansion? How to perform it?
Thanks a lot
m********t
发帖数: 16
8
找了好久都没有找到
谁有的话可否发我一份呢?
万分感谢!油箱:j**********[email protected]
论文:
Commentary: Volatility, price resolution, and the effectiveness of price
limits
s**a
发帖数: 178
9
来自主题: Quant版 - [NYC]Volatility Quantitative Analyst
Company: Bulge Bracket Global Investment Bank
Position: Volatility Quantitative Analyst
Location: NYC
Level: Associate
Description:
Looking for Fresh PhD with Outstanding Academic Achievements as well as PhDs
with 1-3 years experience on Wall St.
Quantitative Finance:
-Assessing and calculating market signals as well as return drivers and
using them under different portfolio scenarios.
-Analyzing enhanced index and overwriting mutual and institutional fund
performance.
-Working on portfolio opti
r*****t
发帖数: 286
10
来自主题: Quant版 - [合集] A volatility smile
☆─────────────────────────────────────☆
acceleration (夜半蹄声到客船) 于 (Thu Jul 19 15:20:15 2007) 提到:
by increasing volatility, what's the effect on SMILE?
☆─────────────────────────────────────☆
Inference (When Genius Failed...) 于 (Thu Jul 19 17:41:04 2007) 提到:
ft.....

☆─────────────────────────────────────☆
francis4321 (我会火箭养老了!) 于 (Thu Jul 19 17:47:48 2007) 提到:
除了spot,strike,Maturity,delta这些之外,vol.本事也影响Smile?
☆─────────────────────────────────────☆
ThatYear (那年) 于 (Thu Jul 19 18
B*********h
发帖数: 800
11
☆─────────────────────────────────────☆
Jadeson (Grothendick ) 于 (Sat May 19 21:39:56 2007) 提到:
望高手指点一下。
还有,如果是相同的到期日,资产和strik price,一个是美式一个是欧式,那么这里面
两者的implied volatility相差会很大吗?可不可以用欧式的代替美式的呢?
谢谢!!
☆─────────────────────────────────────☆
sammus (sammus) 于 (Sun May 20 00:10:01 2007) 提到:
No. Yes.
☆─────────────────────────────────────☆
francis4321 (Lei) 于 (Sun May 20 00:21:26 2007) 提到:
try this,not long
http://www.optimization-online.org/DB_HTML/2005/02/1066.html

☆────────────────
s**7
发帖数: 4
12
来自主题: Quant版 - GARCH modeling of volatility
Future is the derivative of underlying asset price.
For commodity, asset price is spot price.
Black-schole's stock price is assumed to be random walk.
I figure spot price should be random walk too.
option price is derived based on 'no arbitrage' too. Future price is just
not calculated from stochastic PDE. But I am sure future price, same as
option price, must have volatility.
right?
y**y
发帖数: 25
13
来自主题: Quant版 - A question about volatility of stock.
After ex-dividended, the volatility of the stock is increased or decresed?
In John Hull's book, he said the new sigma will increase as
sigma'=sigma*S/(S-D)
don't understand it very well. Can anybody here explain it?
Thank you.
f******e
发帖数: 921
14
来自主题: Quant版 - Question about Volatility
I want to know why we use log-normal distribution to describe the Volatility
? thanks!
l******n
发帖数: 9344
15
来自主题: Quant版 - Question about Volatility

Volatility
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~????
t*******s
发帖数: 492
16
来自主题: Quant版 - Question about Volatility
The quick answer to your question is that people want to use %change to
eliminate the negative value/rate problem, which naturally leads to ln vol.
But more importantly, vol is the output from your simple model to indicate
the value of the options. People buy/sell to influence the price of of the
underlying assets or options. The implied vol tells you the real market
price of the option cost. It doesn't matter you quote ln or normal vol for
yourself to make trading decision.

Volatility
w********r
发帖数: 290
17

Please refer to equation (3) in "A methodology for assessing model risk and
its application to the implied volatility function model" John Hull, Wulin
Suo Journal of Financial and Quantitative Analysis; Jun 2002
p*x
发帖数: 260
18
Very good question. Generally, there is no closed-form solution.
In terms of numerical approximation, you could implement the
Newton's method.
Or, if you have a lot of data, you could apply the John Hull's
method as long as you can approximate those derivatives well.
Or, if you only have several data, you can try the approximation
formula derived by Hallerbach in 2004.
Finally, the singular perturbation method around small volatility,
but it is too tough for non-math people.
b****Q
发帖数: 123
b***k
发帖数: 2673
20
☆─────────────────────────────────────☆
moreroads (身心柔软 法界常流) 于 (Mon Oct 27 21:48:13 2008) 提到:
很多书或者人可以给一个intuitive的解释和理解,从limited loss
或者hedge来。我根本无法理解接受。
想可能不是generic true,尽管对European call it is true.
考虑最简单的one period binary tree model, u=1/d = e^{\sigma\sqrt{\delta t}}.
但是payoff function of this option is (S-K)_+^a 指数形式 where a>0.
K=S_0 for simplicity.
when volatility \sigma increases, i.e., u increases, however, the option
price c does not increase alway for a<1. It increases for a>=1.
b***k
发帖数: 2673
21
☆─────────────────────────────────────☆
xvgsfx (pains) 于 (Thu Nov 13 22:16:30 2008) 提到:
请问下,哪里可以查到 USD/JPY vanilla option的implied volatility啊?
K 是in the money 或者out the money的那种,不是forward FX rate
Maturity T 不同。。。。
其实就是要找到vol surface, vol是K,T的二元函数,vol(K,T)
☆─────────────────────────────────────☆
fingering (fe) 于 (Thu Nov 13 23:47:37 2008) 提到:
historical data are here:
http://mifidconnect.com/bba/jsp/polopoly.jsp?d=129
you need to build vol surface yourself using your own method.
x****x
发帖数: 87
22
来自主题: Quant版 - implied Volatility and Lognormal Vol
比如说, USD/JPY 的vanilla
报价的是implied vol, 是BS公式倒推出来的
市场上报的各种K的期权的波动率都是这样报出来的吧
也就是vol smile
可是如果都是BS模型的话,那么不管实际中期权的K是多少
同一段时间内,所有的USD/JPY 的diffusion process 都是一样的啊
也就是 volatility都是一样的
两者矛盾啊
不解
p*******u
发帖数: 16
23
来自主题: Quant版 - 新手请教trade volatility
其实想了解trade volatility是在什么市场进行的?经常听人讲buy in 22 vol. sell
in 30 vol.之类,不太清楚。望各位大牛能介绍一下,或提供一些普及此知识之网站。
谢谢!
L****a
发帖数: 572
24
来自主题: Quant版 - 新手请教trade volatility
By sense. One of the volatility strategies is called gamma scalping,
b***k
发帖数: 2673
25
☆─────────────────────────────────────☆
wisesummer (summer) 于 (Fri Feb 13 23:48:18 2009) 提到:
都说caps are quoted as implied volatility,那到底是怎么quote的啊? 是按固定的
moneyness
还是按固定的strike rates? 如果是前者,那么current rates of underlying(Forward
LIBOR)是
怎么确定? 是用对应的Swap rates替代吗?
期待了解cap trading实务的高手解答,谢谢
☆─────────────────────────────────────☆
Taikonaut (遨游太空) 于 (Sat Feb 14 00:02:55 2009) 提到:
我记得是按照给定的strike,用这个vol把每个caplet的价算出来,再求和。

Forward
☆─────────────────────────────────────☆
wisesummer (summer
k**8
发帖数: 14
26
Which risk free interest rate is used for calculating implied volatility?
Appreciate your help!
k**8
发帖数: 14
27

Thank you, NYUTT. Can you explain more about how to use libor for implied
volatility calculation? My confusion is that libor rates are not continuous-
compound rates. How can I plug libor into black scholes? Do I need to
convert them first?
Thanks, again.
k**8
发帖数: 14
28
If I have the implied volatility and I want to calculate the price, which
rate should I use for the funding cost?
Thanks!
p********0
发帖数: 186
29
Option price not related to expected return, but determined by the implied
volatility, which is the second moment of the price return.
NYUTT, please kindly comments the rational behind the quick answer.
p*******g
发帖数: 25
30
The stock price is fundamentally determined by industry, company management,
company profits, company's growth, investor's expectation and so on. The
option on stock is derived from stock price and other factors and implied
volatility is even derived from the derived elements. So, if you have a
granson, can your grandson determine your future? This is my understanding.

expiration
f****e
发帖数: 590
31
search B-S implied volatility用什么算法比较好?
在matlab里面用什么函数比较合适呢?
我用fzero,但在搜寻过程中经常会search 到负数那边,虽然结果没问题
但是觉得效率不高
各位有什么更好的办法?
谢谢!
d**s
发帖数: 920
32
再问几个词的中文翻译.
MBS(mortgage-backed security),
CDS(Credit Default Swap)
还有option里面常用到的股票volatility
Thanks.
a****g
发帖数: 53
33
比如时间T_0 到 T_n可以分成若干个阶段,不同阶段有不同的但constant的volatility
。有什么model是用来描述这个的?谢谢!
s******a
发帖数: 388
34
我要用SAS 计算IMPLIED VOLATILITY, 哪位如果在这方面比较擅长, 跪求指点!
s***r
发帖数: 1121
35
WRDS has implied volatility data available.
s***r
发帖数: 1121
36
WRDS has implied volatility data available.
b***k
发帖数: 2673
37
来自主题: Quant版 - B-S model with stochastic volatility
普通BS方程的推导有很多前提条件,比如要求r,sigma都是常数等,
今天看书想到假如允许volatility中带随机因素的话,如何推导相应的BS方程。
牛人给提示一下思路,
或者推荐reference,最好能精确到页数,这样偏于查询,
我想这个问题应该是教科书上早已解决的问题了。
多谢先。
s****p
发帖数: 19
38
来自主题: Quant版 - 请教一个面试题 volatility
I doubt it. American call should not be exercised earlier - this is a
conclusion only based on put-call parity and does not involve any assumption
w.r.t. volatility.
Pls point out if I am wrong.

more
p***i
发帖数: 96
39
干脆抛开股票,其实,我们问题就是想问:
有一个无效的交易策略,每次交易时止损:止盈都是1:1,比如要么亏x元,要么赚x元
。对于一个无效策略,它的盈率是0.5。可是如果你用volatility pumping的资金管理
方法来下注,最后你居然能从这种无效的交易策略里赚到钱。对不对?听起来的确匪夷所思。
p***i
发帖数: 96
40
没有啦,我在这里讨论的东西都不会在实际中用,赚钱太慢了(听说有些hedge funds在用),申农曾说过这东西交易成本会把利润杀死的。
不过我以前一直认为对于一个无效的策略(比如r:r=1,盈率=0.5),用任何资金管理方式都不会赚钱(也不会亏钱)。这应当是根深蒂固的想法了。
但是如果你每次下当前账户资金的固定百分比的仓位,这种资金管理方法你肯定会亏钱!
那么存在不存在一种资金管理方法对于无效交易策略也能赚到钱的呢? volatility pumping 就是。
p***i
发帖数: 96
41

怎么会呢????你好像还没理解这个系统是怎么运作的。现在好多hedge fund都用这
个策略的,斯坦福的一个教授对他进行过改良,扩展到一个股票池+cash的样子。
这个策略其实就是靠波动来产生利润。
股价变动是: 100---x---100,只要期初价格和期末价格相同,中间的x不论比100高还是
低,全能赚到钱。
所以,长期来看。如果股价从100块跌倒60块,一直持有的策略会亏40快,而
volatility pumping 会亏40块,但还能加上股价从100到60之间的那些波动所产生的利
润。所以亏的钱会小于一直持有的策略。
m*****e
发帖数: 37
42
比如说SPX, 当market goes down时, SPX volatility skew会因为更多的人买OTM puts
变大吧? 反之, 当market goes up时, skew变小? 多谢.
z****u
发帖数: 185
43
1) you have a pricer for american options, i.e., given spot, strike,
maturity, VOLATILITY, and so on, this black box can calculate the price of
an American option.
2) given option price, you use this pricer and a root finding method to
calculate the implied vol.
v**m
发帖数: 706
44
realized volatility.
l*******3
发帖数: 186
45
option里怎么hedge price jump,volatility jump?谢谢!
i****b
发帖数: 52
46
来自主题: Quant版 - 请问SABR model重估计volatility
请问各问, SABR model
dR_(t+1)=R_t^\beta \sigma_t dW
d(log\sigma_t))=\nv dZ
Z and W are brownie motions and =\rho
\sigma_t are latent volatilities, \beta, \nv, \rho are real parameters. How
should I estimate the path of \sigma's in this model?
多谢多谢~~
h*y
发帖数: 1289
47
来自主题: Quant版 - 请问SABR model重估计volatility
what do you mean "estimate the path"?
SABR is mainly used in volatility interpolation, instead for a dynamics
model
s**z
发帖数: 610
48
来自主题: Quant版 - 提问:volatility and risk的关系
对对对。
那jadeson同学,你觉得这段迷迷糊糊的关于volatility的问题其实他想考什么呢
L***6
发帖数: 8307
49
来自主题: Quant版 - 提问:volatility and risk的关系
他的意思是不是说跟position有关?比如option,你long的话,volatility越大,risk
不一定就大,可以盈利很多,大不了放弃。对于writer来说,就是converge的,所以波
动率越大,option price越高。
t******L
发帖数: 5
50
我有个疑惑,在trading中,比如 现在underlying的价格是 56,40-50-60 的put fly
的价格是0.5的话,假设volatility是constant,那30-40-50的put fly 和50-60-70的
put fly的价格能不能说也是0.5
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)