|
| 1 | +<!doctype html><htmllang="en"> |
| 2 | + |
| 3 | +<head> |
| 4 | + |
| 5 | + |
| 6 | +<stylemedia="screen"> |
| 7 | +body { |
| 8 | +padding-top:70px; |
| 9 | +padding-bottom:70px; |
| 10 | + } |
| 11 | + |
| 12 | +</style> |
| 13 | +<!-- Required meta tags --> |
| 14 | +<metacharset="utf-8"> |
| 15 | +<metaname="viewport"content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
| 16 | + |
| 17 | +<!-- Bootstrap CSS --> |
| 18 | +<linkrel="stylesheet"href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" |
| 19 | +integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z"crossorigin="anonymous"> |
| 20 | +<linkrel="stylesheet"href="../../static/css/style.css?h=70597643"> |
| 21 | + |
| 22 | +<linkrel="stylesheet"href="../../static/custom_styles.css?h=e75d7755"> |
| 23 | + |
| 24 | +<!-- Highlight.js for syntax highlighting --> |
| 25 | +<linkrel="stylesheet"href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/default.min.css"> |
| 26 | + |
| 27 | + |
| 28 | +<!-- Extra meta tags: social site cards, browser icons... --> |
| 29 | +<linkrel="shortcut icon"href="../../static/favicon.ico?h=d935d59e"> |
| 30 | +<linkrel="apple-touch-icon"sizes="180x180"href="../../static/apple-touch-icon.png?h=2bad941d"> |
| 31 | +<linkrel="icon"type="image/png"sizes="32x32"href="../../static/favicon-32x32.png?h=1673bb68"> |
| 32 | +<linkrel="icon"type="image/png"sizes="16x16"href="../../static/favicon-16x16.png?h=089e66cb"> |
| 33 | +<title>Stochastic Volatility Model with PyMC - PyMC Labs</title> |
| 34 | +<metaname="twitter:card"content="summary"> |
| 35 | +<metaproperty="og:url"content="https://pymc-labs.github.io/blog-posts/01-xpost-tw-stochastic-volatility/"/> |
| 36 | +<metaproperty="og:type"content="website"/> |
| 37 | +<metaproperty="og:title"content="Stochastic Volatility Model with PyMC - PyMC Labs"/> |
| 38 | +<metaproperty="og:description"content=""/> |
| 39 | +<metaproperty="og:image"content="https://pymc-labs.github.io/blog-posts/01-xpost-tw-stochastic-volatility/cover.png"/> |
| 40 | + |
| 41 | +<!-- Highlight.js for syntax highlighting --> |
| 42 | +<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.0.0/styles/default.min.css"> --> |
| 43 | +<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.0.0/highlight.min.js"></script> --> |
| 44 | +<!-- <script>hljs.highlightAll();</script> --> |
| 45 | + |
| 46 | +<!-- From: https://github.com/lektor/lektor-markdown-highlighter --> |
| 47 | +<!-- We use this to do syntax highlighting --> |
| 48 | +<linkrel="stylesheet"href="../../static/pygments.css"> |
| 49 | +<!-- Global site tag (gtag.js) - Google Analytics --> |
| 50 | +<scriptasyncsrc="https://www.googletagmanager.com/gtag/js?id=G-F3RDLH8R8X"></script> |
| 51 | +<script> |
| 52 | +window.dataLayer=window.dataLayer||[]; |
| 53 | +functiongtag(){dataLayer.push(arguments);} |
| 54 | +gtag('js',newDate()); |
| 55 | + |
| 56 | +gtag('config','G-F3RDLH8R8X'); |
| 57 | +</script> |
| 58 | + |
| 59 | +<scriptsrc="../../static/scripts/toggle_code.js?h=3a00c72f"defer></script> |
| 60 | + |
| 61 | +</head> |
| 62 | + |
| 63 | +<body> |
| 64 | +<!-- Navigation --> |
| 65 | +<navclass="navbar navbar-expand-lg navbar-light bg-light fixed-top"> |
| 66 | +<divclass="container"> |
| 67 | +<!-- <a class="navbar-brand" href="/">PyMC Labs</a> --> |
| 68 | +<aclass="navbar-brand"href="/"><imgclass="navbar-logo" |
| 69 | +src="../../static/images/pymc-labs-logo.png?h=999c3177'"></a> |
| 70 | +<buttonclass="navbar-toggler"type="button"data-toggle="collapse"data-target="#navbarResponsive" |
| 71 | +aria-controls="navbarResponsive"aria-expanded="false"aria-label="Toggle navigation"> |
| 72 | +<spanclass="navbar-toggler-icon"></span> |
| 73 | +</button> |
| 74 | +<divclass="collapse navbar-collapse"id="navbarResponsive"> |
| 75 | +<ulclass="navbar-nav ml-auto"> |
| 76 | + |
| 77 | +<liclass="nav-item"> |
| 78 | +<aclass="nav-link"href="/what-we-do"><iclass="fa fa-info-circle" |
| 79 | +aria-hidden="true"></i> |
| 80 | + What we do</a> |
| 81 | +</li> |
| 82 | + |
| 83 | +<liclass="nav-item"> |
| 84 | +<aclass="nav-link"href="/products"><iclass="fa fa-shopping-cart" |
| 85 | +aria-hidden="true"></i> |
| 86 | + Products</a> |
| 87 | +</li> |
| 88 | + |
| 89 | +<liclass="nav-item"> |
| 90 | +<aclass="nav-link"href="/team"><iclass="fa fa-user-friends" |
| 91 | +aria-hidden="true"></i> |
| 92 | + Team</a> |
| 93 | +</li> |
| 94 | + |
| 95 | +<liclass="nav-item"> |
| 96 | +<aclass="nav-link"href="/clients"><iclass="fa fa-microphone" |
| 97 | +aria-hidden="true"></i> |
| 98 | + Clients</a> |
| 99 | +</li> |
| 100 | + |
| 101 | +<liclass="nav-item"> |
| 102 | +<aclass="nav-link"href="/workshops"><iclass="fa fa-chalkboard-teacher" |
| 103 | +aria-hidden="true"></i> |
| 104 | + Workshops</a> |
| 105 | +</li> |
| 106 | + |
| 107 | +<liclass="nav-item"> |
| 108 | +<aclass="nav-link"href="/blog-posts"><iclass="fa fa-book-open" |
| 109 | +aria-hidden="true"></i> |
| 110 | + Blog</a> |
| 111 | +</li> |
| 112 | + |
| 113 | +</ul> |
| 114 | +</div> |
| 115 | +</div> |
| 116 | +</nav> |
| 117 | + |
| 118 | +<divclass="container"> |
| 119 | + |
| 120 | + |
| 121 | +<divclass="row"> |
| 122 | +<divclass="col-md-2"></div> |
| 123 | +<divclass="col-md-8"> |
| 124 | +<h2class="font-roboto">Stochastic Volatility Model with PyMC</h2> |
| 125 | + |
| 126 | +<hr> |
| 127 | +<divclass="row"> |
| 128 | +<divclass="col-md-6 author_name"> |
| 129 | +<smallclass="text-muted">AUTHORED BY</small> |
| 130 | +<pclass="font-bold"> |
| 131 | + |
| 132 | + |
| 133 | + |
| 134 | + |
| 135 | + |
| 136 | + |
| 137 | + |
| 138 | + |
| 139 | + |
| 140 | + Thomas Wiecki |
| 141 | + |
| 142 | + |
| 143 | + |
| 144 | + |
| 145 | +</p> |
| 146 | +</div> |
| 147 | +<divclass="col-md-6 author_date"> |
| 148 | +<!-- <p>2022-01-15</p> --> |
| 149 | + |
| 150 | +<smallclass="text-muted">DATE</small> |
| 151 | +<pclass="font-lighter">2022-01-15</p> |
| 152 | + |
| 153 | +<!--<div class="cover-blogposts"><img src="../../static/images/blog_post/cover.jpg?h=653e9b57"></div>--> |
| 154 | + |
| 155 | +</div> |
| 156 | + |
| 157 | +<divclass="blog-cover-container"> |
| 158 | +<imgclass="cover-blogposts"src="cover.png"> |
| 159 | + |
| 160 | +</div> |
| 161 | + |
| 162 | +</div> |
| 163 | +<hr><p>Asset prices have time-varying volatility (variance of day over day returns). In some periods, returns are highly variable, while in others very stable. Stochastic volatility models model this with a latent volatility variable, modeled as a stochastic process. In this example, we compute the time-varying volatility based on daily returns of the S&P 500.</p> |
| 164 | +<p>For the full example, see:<br> |
| 165 | +<ahref="https://www.pymc.io/projects/examples/en/latest/case_studies/stochastic_volatility.html">Stochastic Volatility Model with PyMC</a></p> |
| 166 | + |
| 167 | +<!--THIS IS THE FOOTER OF THE BLOGPSOT--> |
| 168 | +<hr> |
| 169 | +<!--div class="container"--> |
| 170 | +<h2class="font-roboto">Work with PyMC Labs</h2> |
| 171 | +<p>If you are interested in seeing what we at PyMC Labs can do for you, then please email<ahref="mailto:info@pymc-labs.io">info@pymc-labs.io</a>. We work with companies at a variety of scales and with varying levels of existing modeling capacity. |
| 172 | + |
| 173 | +We also run<ahref="https://www.pymc-labs.io/workshops/">corporate workshop training events</a> and can provide sessions ranging from introduction to Bayes to more advanced topics. |
| 174 | +</p> |
| 175 | +<!--/div--> |
| 176 | + |
| 177 | +</div> |
| 178 | +<divclass="col-md-2"></div> |
| 179 | +</div> |
| 180 | + |
| 181 | + |
| 182 | +</div> |
| 183 | + |
| 184 | +<!-- Optional JavaScript --> |
| 185 | +<!-- jQuery first, then Popper.js, then Bootstrap JS --> |
| 186 | +<scriptsrc="https://code.jquery.com/jquery-3.5.1.slim.min.js" |
| 187 | +integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" |
| 188 | +crossorigin="anonymous"></script> |
| 189 | +<scriptsrc="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" |
| 190 | +integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" |
| 191 | +crossorigin="anonymous"></script> |
| 192 | +<scriptsrc="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" |
| 193 | +integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" |
| 194 | +crossorigin="anonymous"></script> |
| 195 | +<scriptsrc="https://kit.fontawesome.com/8cc267a9ab.js"crossorigin="anonymous"></script> |
| 196 | + |
| 197 | +<navclass="navbar navbar-expand-lg navbar-light bg-light fixed-bottom"> |
| 198 | +<divclass="container"> |
| 199 | +<buttonclass="navbar-toggler"type="button"data-toggle="collapse"data-target="#navbarResponsive" |
| 200 | +aria-controls="navbarResponsive"aria-expanded="false"aria-label="Toggle navigation"> |
| 201 | +<spanclass="navbar-toggler-icon"></span> |
| 202 | +</button> |
| 203 | +<divclass="collapse navbar-collapse"id="navbarResponsive"> |
| 204 | +<ulclass="navbar-nav ml-auto"> |
| 205 | + |
| 206 | +<liclass="nav-item"> |
| 207 | +<aclass="nav-link"href="https://twitter.com/pymc_labs"><iclass="fa fa-twitter" |
| 208 | +aria-hidden="true"></i> |
| 209 | + Twitter</a> |
| 210 | +</li> |
| 211 | + |
| 212 | +<liclass="nav-item"> |
| 213 | +<aclass="nav-link"href="https://github.com/pymc-labs"><iclass="fa fa-github" |
| 214 | +aria-hidden="true"></i> |
| 215 | + GitHub</a> |
| 216 | +</li> |
| 217 | + |
| 218 | +<liclass="nav-item"> |
| 219 | +<aclass="nav-link"href="https://www.linkedin.com/company/pymc-labs/"><iclass="fa fa-linkedin" |
| 220 | +aria-hidden="true"></i> |
| 221 | + LinkedIn</a> |
| 222 | +</li> |
| 223 | + |
| 224 | +<liclass="nav-item"> |
| 225 | +<aclass="nav-link"href="https://www.youtube.com/c/PyMCLabs"><iclass="fa fa-youtube" |
| 226 | +aria-hidden="true"></i> |
| 227 | + YouTube</a> |
| 228 | +</li> |
| 229 | + |
| 230 | +<liclass="nav-item"> |
| 231 | +<aclass="nav-link"href="https://www.meetup.com/pymc-labs-online-meetup/"><iclass="fa fa-meetup" |
| 232 | +aria-hidden="true"></i> |
| 233 | + Meetup</a> |
| 234 | +</li> |
| 235 | + |
| 236 | +<liclass="nav-item"> |
| 237 | +<aclass="nav-link"href="/newsletter"><iclass="fa fa-solid fa-bell" |
| 238 | +aria-hidden="true"></i> |
| 239 | + Newsletter</a> |
| 240 | +</li> |
| 241 | + |
| 242 | +</ul> |
| 243 | +</div> |
| 244 | +</div> |
| 245 | +</nav> |
| 246 | + |
| 247 | +<!-- Mathjax for latex/equations --> |
| 248 | +<!-- Mathjax --> |
| 249 | +<scripttype="text/javascript"async |
| 250 | +src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-MML-AM_CHTML"> |
| 251 | +</script> |
| 252 | + |
| 253 | +<scripttype="text/x-mathjax-config"> |
| 254 | +MathJax.Hub.Config({tex2jax:{inlineMath:[['$','$']]}}); |
| 255 | +</script> |
| 256 | + |
| 257 | +</body> |
| 258 | + |
| 259 | +</html> |