Professional Documents
Culture Documents
Ba Ia Volatility
Ba Ia Volatility
(Individual Assignment)
Korolenko, Erik
17 June 2023
Code Explanation
Code helps to analyze the volatility of a stock over a period of time. It first installs the
quantmod and tidyquant packages, which are used to download and analyze stock data. Then,
it selects 10 stocks from the S&P 500 index and calculates their volatility over the past 4 months.
Next, it plots the volatility of each stock and fits a linear trend to the data. Finally, it uses the
trend to predict the volatility of each stock for the next 4 months. The code is well-written and
easy to follow. It uses a variety of R packages to download, analyze, and plot stock data. The
code also includes comments to explain what each step is doing. Overall, the code is a good
The code could be improved using a more robust method to fit the trend line to the volatility
data. For example, a nonlinear regression model could be used to account for the fact that the
volatility data may not be perfectly linear. The code could also be improved by using a more
sophisticated method to predict the future volatility of the stocks. For example, a machine
learning model could be used to predict volatility based on various factors, such as the stock's
Outputs
Considering the significance level of 0.05, the “Can Ho be rejected” results are drawn as below:
Company name Ticker Slope Std.error p-value Can
Index Ho(trend) be
rejected
AXON AXON -0.015 PER 0.0047 0.0019 YES
ENTERPRISE INC PERIOD
L3HARRIS LHX -0.015 PER 0.0052 0.0049 YES
TECHNOLOGIES PERIOD
INC
HEALTHPEAK PEAK -0.0014 PER 0.0039 0.72 NO
PROPERTIES INC PERIOD
JACK HENRY + JKHY 0.0031 PER 0.004 0.45 NO
ASSOCIATES INC PERIOD
DUKE ENERGY DUK -0.0019 PER 0.0045 0.67 NO
CORP PERIOD
PPG INDUSTRIES PPG -0.0038 PER 0.0041 0.36 NO
INC PERIOD
THERMO FISHER TMO -0.00012 0.004 0.98 NO
SCIENTIFIC INC PER
PERIOD
ROLLINGS INC ROL -0.0059 PER 0.0041 0.15 NO
PERIOD
HERSHEY CO/THE HSY 0.0025 PER 0.004 0.54 NO
PERIOD
WHIRLPOOL CORP WHR -0.0019 PER 0.0034 0.57 NO
PERIOD
Considering the significance level of 0.05, the “Can Ho be rejected” results are drawn.
The section covers the market news for the last 15 months of the companies such as General
Motors, Axon Enterprise, L3HARRIS Technologies INC, and Pulte Group Inc.
General Motors:
Quote 1: General Motors (NYSE: GM) stock slid during Tuesday’s trading despite a beat on Q1
https://seekingalpha.com/news/3959947-gm-stock-slips-despite-earnings-beat-analyst-upgrade/
drivers next year, initially requiring an adapter. Beginning in 2025, GM will equip its EVs with
Reference 2: Tesla to open charging network to GM next year; GM, Tesla shares rally
https://www.morningstar.com/news/marketwatch/202306081000/tesla-to-open-charging-
network-to-gm-next-year-gm-tesla-shares-rally/
Axon Enterprise:
Quote 1: Axon Enterprise Inc.'s stock (AXON) slid 14% to lead S&P 500 decliners after the
Taser parent posted quarterly earnings. "While the company delivered a strong quarter and
guidance, the stock is trading lower in the aftermarket, likely reflecting higher expectations
Reference 1: Upstart rockets after earnings, Rivian climbs and Taser parent Axon slides. These
https://www.morningstar.com/news/marketwatch/20230510443/upstart-rockets-after-earnings-
rivian-climbs-and-taser-parent-axon-slides-these-are-the-stocks-on-the-move
Quote 2: We're pleased to report Axon's strong start to 2023 — highlighted by two new product
launches, first-quarter revenue growth of 34% and our fifth consecutive quarter of GAAP
profitability. Record quarterly revenue of $343 million was primarily driven by strong demand
for Axon Cloud SaaS services, Axon Fleet 3, and our TASER 7 platform.
Reference 2: Axon reports Q1 2023 revenue of $343 million, up 34% YOY, raises outlook
https://www.morningstar.com/news/pr-newswire/20230509la94948/axon-reports-q1-2023-
revenue-of-343-million-up-34-yoy-raises-outlook/
Quote 1: (NYSE: LHX) announced orders totalling $160 million from the Marine Corps for
multi-channel handheld and vehicular radio systems, bringing total program orders to $336
million.
https://www.morningstar.com/news/business-wire/20230517005167/l3harris-receives-us-marine-
corps-orders-for-multi-channel-radios
PulteGroup Inc
Quote1: PulteGroup, Inc. (NYSE: PHM) announced today that its Board of Directors had
declared a quarterly dividend of $0.16 per common share payable July 5, 2023, to shareholders
https://www.morningstar.com/news/business-wire/20230503005599/pultegroup-announces-
quarterly-cash-dividend-of-016-per-share
Quote 2: Reports of violations of the Company's Code of Ethical Business Conduct due to using
fake Twitter accounts to harass others by at least one former senior executive led to that
Investigation https://www.morningstar.com/news/pr-newswire/20230504de90414/pultegroup-
shareholder-files-lawsuit-seeking-details-of-c-suite-internal-investigation
References
1. PR Newswire. (2023, May 4). Pultegroup shareholder files lawsuit seeking details of C-
newswire/20230504de90414/pultegroup-shareholder-files-lawsuit-seeking-details-of-c-
suite-internal-investigation/
2. Business Wire. (2023a, May 3). Pultegroup announces quarterly cash dividend of $0.16
https://www.morningstar.com/news/business-wire/20230503005599/pultegroup-
announces-quarterly-cash-dividend-of-016-per-share
3. Business Wire. (2023b, May 17). L3harris receives US Marine Corps orders for multi-
https://www.morningstar.com/news/business-wire/20230517005167/l3harris-receives-us-
marine-corps-orders-for-multi-channel-radios
4. PR Newswire. (2023d, May 9). Axon reports Q1 2023 revenue of $343 million, up 34%
https://www.morningstar.com/news/pr-newswire/20230509la94948/axon-reports-q1-
2023-revenue-of-343-million-up-34-yoy-raises-outlook/
5. Curran, K. P. (2023, April 25). GM stock slips despite earnings beat, Analyst Upgrade
despite-earnings-beat-analyst-upgrade/