{"id":4088,"date":"2024-12-23T07:12:38","date_gmt":"2024-12-22T22:12:38","guid":{"rendered":"https:\/\/secondlife.lol\/?p=4088"},"modified":"2024-12-23T07:22:59","modified_gmt":"2024-12-22T22:22:59","slug":"samsung-electronics-10-year-stock-price","status":"publish","type":"post","link":"https:\/\/secondlife.lol\/en\/samsung-electronics-10-year-stock-price\/","title":{"rendered":"Samsung Electronics 10-year stock price changes: An exciting stock journey explored with an error bar graph"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Hello, everyone interested in investing in stocks! Today we have a really exciting topic for you. We're talking about the 10-year stock price of Samsung Electronics.<a href=\"https:\/\/secondlife.lol\/en\/error-bar-graph-python\/\">Errorbar Graph<\/a>' You've probably looked at a stock chart and thought, \"Uh, what does this mean?\" <\/p>\n\n\n<style>.kb-image4088_718d41-1d .kb-image-has-overlay:after{opacity:0.3;border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;}.kb-image4088_718d41-1d img.kb-img, .kb-image4088_718d41-1d .kb-img img{border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;box-shadow:0px 0px 14px 0px rgba(0, 0, 0, 0.2);}<\/style>\n<div class=\"wp-block-kadence-image kb-image4088_718d41-1d\"><figure class=\"aligncenter size-medium_large\"><img decoding=\"async\" width=\"768\" height=\"408\" src=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/12\/image-1-22-768x408.jpg\" alt=\"\uc0bc\uc131\uc804\uc790 10\ub144 \uc8fc\uac00 \ubcc0\ub3d9 \uadf8\ub798\ud504 - \uc5d0\ub7ec\ubc14 \ud3ec\ud568\" class=\"kb-img wp-image-4089\" srcset=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/12\/image-1-22-768x408.jpg 768w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/12\/image-1-22-300x159.jpg 300w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/12\/image-1-22-600x319.jpg 600w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/12\/image-1-22-18x10.jpg 18w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/12\/image-1-22.jpg 1200w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><figcaption>(Samsung Electronics 10-year stock price change graph - with error bars)<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Today's post will answer those questions, plus give you a chance to try out the <a href=\"http:\/\/python.org\" target=\"_blank\" rel=\"noopener\">Python<\/a> You'll also get a taste of the world of data analysis as you plot graphs in code. Let's follow Samsung Electronics' 10-year stock price journey.<\/p>\n\n\n<style>.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-content-wrap{padding-top:var(--global-kb-spacing-sm, 1.5rem);padding-right:var(--global-kb-spacing-sm, 1.5rem);padding-bottom:var(--global-kb-spacing-sm, 1.5rem);padding-left:var(--global-kb-spacing-sm, 1.5rem);border-top:3px solid var(--global-palette2, #2B6CB0);border-right:3px solid var(--global-palette2, #2B6CB0);border-bottom:3px solid var(--global-palette2, #2B6CB0);border-left:3px solid var(--global-palette2, #2B6CB0);border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;box-shadow:0px 0px 14px 0px rgba(0, 0, 0, 0.2);}.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-contents-title-wrap{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;}.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-contents-title-wrap{color:var(--global-palette2, #2B6CB0);}.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-contents-title{color:var(--global-palette2, #2B6CB0);font-size:28px;font-weight:regular;font-style:normal;}.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-content-wrap .kb-table-of-content-list{color:var(--global-palette1, #3182CE);line-height:2em;font-weight:regular;font-style:normal;margin-top:var(--global-kb-spacing-sm, 1.5rem);margin-right:0px;margin-bottom:0px;margin-left:0px;}.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-content-wrap .kb-table-of-content-list .kb-table-of-contents__entry:hover{color:var(--global-palette6, #718096);}@media all and (max-width: 1024px){.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-content-wrap{border-top:3px solid var(--global-palette2, #2B6CB0);border-right:3px solid var(--global-palette2, #2B6CB0);border-bottom:3px solid var(--global-palette2, #2B6CB0);border-left:3px solid var(--global-palette2, #2B6CB0);}}@media all and (max-width: 1024px){.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-contents-title{font-size:28px;}}@media all and (max-width: 767px){.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-content-wrap{border-top:3px solid var(--global-palette2, #2B6CB0);border-right:3px solid var(--global-palette2, #2B6CB0);border-bottom:3px solid var(--global-palette2, #2B6CB0);border-left:3px solid var(--global-palette2, #2B6CB0);}.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-contents-title{font-size:28px;}}<\/style>\n\n\n<h2 class=\"wp-block-heading\">Samsung Electronics 10-Year Stock Price: A Rollercoaster Journey<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Samsung Electronics is an iconic South Korean company and a global player, so its stock price is always a hot topic of interest. How has its stock price fared over the past decade?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you look at Samsung Electronics' stock price from 2014 to 2024, it's a roller coaster ride. The company's stock price hit a record high in early 2021, earning the nickname \"90,000 electrons,\" but it's been on a downward spiral ever since, breaking investors' hearts.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Samsung Electronics stock price volatility in an error bar graph<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">We're going to use our own Python code to plot an error bar graph of the 10-year stock price of Samsung Electronics, which is a great visual representation of the volatility of data. It's very useful because you can see at a glance how much the stock price has fluctuated along with its average value.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import yfinance as yf\nimport matplotlib.pyplot as plt\nimport pandas as pd\nimport numpy as np\n\nImport # Samsung Electronics data (last 10 years)\nticker = \"005930.KS\"\ndata = yf.download(ticker, period=\"10y\")\n\nCalculate # monthly mean and standard deviation\ndata['Month'] = data.index.to_period('M')\nmonthly_data = data.groupby('Month').agg({\n    'Adj Close': ['mean', 'std']\n}).reset_index()\n\n# Change multi-level columns to a single level\nmonthly_data.columns = ['Month', 'mean', 'std']\nmonthly_data['Month'] = monthly_data['Month'].astype(str)\n\nPrepare the # data\nmonths = monthly_data['Month']\nmean_prices = monthly_data['mean']\nstd_prices = monthly_data['std']\n\nGenerate a # error bar graph\nplt.figure(figsize=(15, 8))\nplt.errorbar(months, mean_prices, yerr=std_prices, fmt='o', capsize=5, capthick=2, label='Monthly Prices')\n\nStyling the # graph\nplt.title(\"Samsung Electronics Monthly Stock Prices with Error Bars (10 Years)\", fontsize=15)\nplt.xlabel(\"Month\", fontsize=12)\nplt.ylabel(\"Stock Price (KRW)\", fontsize=12)\nplt.xticks(rotation=90)\nplt.legend()\n\nSet the # y-axis range\nplt.ylim(mean_prices.min() - std_prices.max(), mean_prices.max() + std_prices.max())\n\nAdd the # grid\nplt.grid(True, linestyle='--', alpha=0.7)\n\nOutput the # graph\nplt.tight_layout()\nplt.show()<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Code commentary<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Import the required libraries.<\/li>\n\n\n\n<li>Use yfinance to download 10-year stock price data for Samsung Electronics (005930.KS).<\/li>\n\n\n\n<li>Group the data by month, and calculate the average stock price and standard deviation for each month.<\/li>\n\n\n\n<li>Create an error bar graph using matplotlib, where each point represents the average stock price per month and the error bars represent the standard deviation.<\/li>\n\n\n\n<li>Set the graph's title, axis labels, and more, and rotate the x-axis label 90 degrees for better readability.<\/li>\n\n\n\n<li>Adjust the range of the y-axis to fit the data, and add a grid to improve readability.<\/li>\n\n\n\n<li>Finally, display the graph on the screen.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Samsung Electronics 10-year stock price analysis: What does it tell us?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This error bar graph shows us the volatility of Samsung Electronics' stock price at a glance. A long error bar indicates that the stock price fluctuated a lot during the month, while a short error bar indicates that it was relatively stable.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Of particular note is the high share price at the beginning of 2021 and the subsequent decline. You can clearly see the peak of the so-called \"90,000 electrons\" and the changes since then in this graph. It's also easy to see the recent share price trends in this graph.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Implications for investors<\/h2>\n\n\n<style>.kb-image4088_d843b8-c5 .kb-image-has-overlay:after{opacity:0.3;border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;}.kb-image4088_d843b8-c5 img.kb-img, .kb-image4088_d843b8-c5 .kb-img img{border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;box-shadow:0px 0px 14px 0px rgba(0, 0, 0, 0.2);}<\/style>\n<div class=\"wp-block-kadence-image kb-image4088_d843b8-c5\"><figure class=\"aligncenter size-medium_large\"><img decoding=\"async\" width=\"768\" height=\"395\" src=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/12\/image-1-23-768x395.jpg\" alt=\"\uc0bc\uc131\uc804\uc790 10\ub144 \uc8fc\uac00 \ubd84\uc11d \uc2dc\uc0ac\uc810\" class=\"kb-img wp-image-4093\" srcset=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/12\/image-1-23-768x395.jpg 768w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/12\/image-1-23-300x154.jpg 300w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/12\/image-1-23-600x309.jpg 600w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/12\/image-1-23-18x9.jpg 18w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/12\/image-1-23.jpg 1200w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">By analyzing Samsung Electronics' 10-year stock price, we can draw some important conclusions:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>The importance of investing for the long term: Don't get caught up in short-term fluctuations.<\/li>\n\n\n\n<li>Manage volatility: Understand the volatility of stock prices and plan your investment strategy accordingly.<\/li>\n\n\n\n<li>Identify industry trends: Consider how changes in the semiconductor market will affect Samsung Electronics stock price.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Closing thoughts<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Today, we analyzed the 10-year stock price of Samsung Electronics using an error bar graph, which reminded us of the volatility of the stock market and the importance of investing for the long term. Why not try this method of analysis yourself? The world of investing is always exciting!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Finally, remember that investing should always be done with caution. This analysis is only a guide, and the actual investment decision is up to you. Always synthesize different information, seek professional advice, and invest wisely. We wish you the best of luck on your investment journey!<\/p>","protected":false},"excerpt":{"rendered":"<p>\uc548\ub155\ud558\uc138\uc694, \uc8fc\uc2dd \ud22c\uc790\uc5d0 \uad00\uc2ec \uc788\ub294 \uc5ec\ub7ec\ubd84! \uc624\ub298\uc740 \uc815\ub9d0 \ud765\ubbf8\uc9c4\uc9c4\ud55c \uc8fc\uc81c\ub85c&#8230;<\/p>","protected":false},"author":3,"featured_media":4092,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[3],"tags":[631,634,632,635,633],"class_list":["post-4088","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python-coding","tag-631","tag-634","tag-632","tag-635","tag-633"],"taxonomy_info":{"category":[{"value":3,"label":"\ud30c\uc774\uc36c(Python)"}],"post_tag":[{"value":631,"label":"\uc0bc\uc131\uc804\uc790"},{"value":634,"label":"\uc5d0\ub7ec\ubc14\uadf8\ub798\ud504"},{"value":632,"label":"\uc8fc\uac00\ubd84\uc11d"},{"value":635,"label":"\uc8fc\uc2dd\ud22c\uc790"},{"value":633,"label":"\ud30c\uc774\uc36c\ub370\uc774\ud130\uc2dc\uac01\ud654"}]},"featured_image_src_large":["https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/12\/\uc0bc\uc131\uc804\uc790-10\ub144-\uc8fc\uac00-\ubcc0\ub3d9-\ud3ec\uc2a4\ud2b8-\uc378\ub124\uc77c-600x600.jpg",600,600,true],"author_info":{"display_name":"TERE","author_link":"https:\/\/secondlife.lol\/en\/author\/tere\/"},"comment_info":0,"category_info":[{"term_id":3,"name":"\ud30c\uc774\uc36c(Python)","slug":"python-coding","term_group":0,"term_taxonomy_id":3,"taxonomy":"category","description":"","parent":20,"count":119,"filter":"raw","cat_ID":3,"category_count":119,"category_description":"","cat_name":"\ud30c\uc774\uc36c(Python)","category_nicename":"python-coding","category_parent":20}],"tag_info":[{"term_id":631,"name":"\uc0bc\uc131\uc804\uc790","slug":"%ec%82%bc%ec%84%b1%ec%a0%84%ec%9e%90","term_group":0,"term_taxonomy_id":632,"taxonomy":"post_tag","description":"","parent":0,"count":3,"filter":"raw"},{"term_id":634,"name":"\uc5d0\ub7ec\ubc14\uadf8\ub798\ud504","slug":"%ec%97%90%eb%9f%ac%eb%b0%94%ea%b7%b8%eb%9e%98%ed%94%84","term_group":0,"term_taxonomy_id":634,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":632,"name":"\uc8fc\uac00\ubd84\uc11d","slug":"%ec%a3%bc%ea%b0%80%eb%b6%84%ec%84%9d","term_group":0,"term_taxonomy_id":631,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":635,"name":"\uc8fc\uc2dd\ud22c\uc790","slug":"%ec%a3%bc%ec%8b%9d%ed%88%ac%ec%9e%90","term_group":0,"term_taxonomy_id":635,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":633,"name":"\ud30c\uc774\uc36c\ub370\uc774\ud130\uc2dc\uac01\ud654","slug":"%ed%8c%8c%ec%9d%b4%ec%8d%ac%eb%8d%b0%ec%9d%b4%ed%84%b0%ec%8b%9c%ea%b0%81%ed%99%94","term_group":0,"term_taxonomy_id":633,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"}],"_links":{"self":[{"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/posts\/4088","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/comments?post=4088"}],"version-history":[{"count":3,"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/posts\/4088\/revisions"}],"predecessor-version":[{"id":4094,"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/posts\/4088\/revisions\/4094"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/media\/4092"}],"wp:attachment":[{"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/media?parent=4088"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/categories?post=4088"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/tags?post=4088"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}