{"id":214427,"date":"2024-10-30T12:56:49","date_gmt":"2024-10-30T16:56:49","guid":{"rendered":"https:\/\/ibkrcampus.com\/campus\/?p=214427"},"modified":"2024-10-30T12:56:21","modified_gmt":"2024-10-30T16:56:21","slug":"trading-using-llm-generative-ai-sentiment-analysis-in-finance-part-i","status":"publish","type":"post","link":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/trading-using-llm-generative-ai-sentiment-analysis-in-finance-part-i\/","title":{"rendered":"Trading using LLM: Generative AI &amp; Sentiment Analysis in Finance &#8211; Part I"},"content":{"rendered":"\n<p>In recent years, large language models (LLMs) like GPT-4 have revolutionised various industries, including finance. These powerful models, capable of processing vast amounts of unstructured text, are increasingly being used by professional traders to gain insights into market sentiment, develop trading strategies, and automate complex financial tasks.<\/p>\n\n\n\n<p>You must be aware of how&nbsp;<a href=\"https:\/\/blog.quantinsti.com\/sentiment-analysis-trading\/\">sentiment analysis<\/a>&nbsp;is being done by traders with the help of news, but if you wish to learn more about the same, you can enrol into this course with the link&nbsp;<a href=\"https:\/\/quantra.quantinsti.com\/course\/news-sentiment-trading-strategies\">here<\/a>.<\/p>\n\n\n\n<p>In this blog, you will explore how LLMs are integrated into trading workflows, using tools like FinBERT, Whisper, and more to enhance decision-making and performance.<\/p>\n\n\n\n<p>Please note that we have prepared the content in this article almost entirely from a QuantInsti course by Dr. Hamlet Medina and Dr. Ernest Chan.<\/p>\n\n\n\n<p><strong>About the speakers<\/strong><\/p>\n\n\n\n<p>Dr Ernest Chan is the CEO of Predictnow.ai and Dr Hamlet Medina is the Chief Data Scientist, Criteo and in the webinar, they discuss how LLMs can help us analyse the sentiment of event transcripts. <\/p>\n\n\n\n<p><em>Visit <a href=\"https:\/\/blog.quantinsti.com\/trading-using-llm\/\">QuantInsti <\/a>to watch the webinar.<\/em><\/p>\n\n\n\n<p>Here is what this blog covers:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>What is an LLM or a Generative AI?<\/li>\n\n\n\n<li>How can LLMs be improved?<\/li>\n\n\n\n<li>What are financial LLMs?<\/li>\n\n\n\n<li>The role of sentiment analysis in trading using LLMs<\/li>\n\n\n\n<li>Sentiment analysis trading process<\/li>\n\n\n\n<li>Sentiment analysis of FOMC transcripts<\/li>\n\n\n\n<li>Real-world applications<\/li>\n\n\n\n<li>LLM models that help with sentiment analysis<\/li>\n\n\n\n<li>How to understand sentiment scores?<\/li>\n\n\n\n<li>FAQs<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-an-llm-or-a-generative-ai\">What is an LLM or a Generative AI?<\/h2>\n\n\n\n<p>A Large Language Model (LLM) is a generative AI that understands and generates human-like text. Models like OpenAI&#8217;s GPT or Google&#8217;s BERT are trained on massive amounts of data, such as books, articles, and websites. These models are built using billions of parameters, which help them perform tasks like answering questions, summarising information, translating languages, and analysing sentiment.<\/p>\n\n\n\n<p>They are called generative AIs because unlike traditional AI, which typically focuses on recognising patterns or making decisions based on existing data, generative AI can produce original outputs by predicting what comes next in a sequence.<\/p>\n\n\n\n<p>Because of their flexibility, LLMs are used in many fields, including finance, healthcare, law, and customer service. In finance, for example, LLMs can analyse news, reports, or social media to provide insights for market predictions, risk management, and strategy development.<\/p>\n\n\n\n<p>For instance, given the sentence, \u201cDue to the pandemic declaration, the S&amp;P 500,\u201d an LLM might predict &#8220;declined&#8221; as the next word based on the previous words.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"1000\" height=\"300\" data-src=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/10\/prediction-llm-quantinsti.jpg\" alt=\"\" class=\"wp-image-214433 lazyload\" style=\"--smush-placeholder-width: 1000px; aspect-ratio: 1000\/300;width:950px;height:auto\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/10\/prediction-llm-quantinsti.jpg 1000w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/10\/prediction-llm-quantinsti-700x210.jpg 700w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/10\/prediction-llm-quantinsti-300x90.jpg 300w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/10\/prediction-llm-quantinsti-768x230.jpg 768w\" data-sizes=\"(max-width: 1000px) 100vw, 1000px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n\n\n\n<p>Figure: Prediction by LLMs<\/p>\n\n\n\n<p><strong>How are LLMs able to predict the next word?<\/strong><\/p>\n\n\n\n<p>You can use any data you have access to for training the LLM model. In fact, you can use the entire internet to train the LLM. Once you have given the input, the LLM will give you an output. Further, it will check the predicted output with the actual output variable and based on the error, it will adjust its prediction accordingly. This process, called pre-training, is the foundation of how LLMs understand language.<\/p>\n\n\n\n<p>This was about the introduction of LLMs, but if you wish to learn more about the particular LLM model known as \u201cChatGPT\u201d and how it can help with trading, you must read this blog&nbsp;<a href=\"https:\/\/blog.quantinsti.com\/algorithmic-trading-chatgpt\/\">here<\/a>.<\/p>\n\n\n\n<p>This blog covers almost everything that you need to know about trading with ChatGPT including the steps of implementation using prompts. Also, the blog will take you through ChatGPT\u2019s machine learning usage, strategies, the future and so much more!<\/p>\n\n\n\n<p>Further, we will continue the discussion about LLMs and then find out how they can be improved to maximise their use.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-can-llms-be-improved\">How can LLMs be improved?<\/h2>\n\n\n\n<p>After pre-training, LLMs are often further enhanced through techniques like Reinforcement Learning through Human Feedback (RLHF) conducted by specialised teams within organisations (such as ChatGPT and OpenAI) that develop LLMs. In RLHF, human reviewers rank multiple outputs generated by the LLM.<\/p>\n\n\n\n<p>For example, for a given sentence, outputs like &#8220;declined,&#8221; &#8220;exploded,&#8221; or &#8220;jumped&#8221; might be produced, with &#8220;declined&#8221; being ranked the highest by human reviewers as shown in the image below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1000\" height=\"359\" data-src=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/10\/quantinsti-multiple-output.jpg\" alt=\"\" class=\"wp-image-214434 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/10\/quantinsti-multiple-output.jpg 1000w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/10\/quantinsti-multiple-output-700x251.jpg 700w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/10\/quantinsti-multiple-output-300x108.jpg 300w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/10\/quantinsti-multiple-output-768x276.jpg 768w\" data-sizes=\"(max-width: 1000px) 100vw, 1000px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1000px; aspect-ratio: 1000\/359;\" \/><\/figure>\n\n\n\n<p>Figure: Multiple Output Prediction by LLMs<\/p>\n\n\n\n<p>The model then learns from these rankings, improving its predictions for future tasks.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1000\" height=\"260\" data-src=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/10\/quantinsti-ranking-output.jpg\" alt=\"\" class=\"wp-image-214436 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/10\/quantinsti-ranking-output.jpg 1000w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/10\/quantinsti-ranking-output-700x182.jpg 700w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/10\/quantinsti-ranking-output-300x78.jpg 300w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/10\/quantinsti-ranking-output-768x200.jpg 768w\" data-sizes=\"(max-width: 1000px) 100vw, 1000px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1000px; aspect-ratio: 1000\/260;\" \/><\/figure>\n\n\n\n<p>Figure: Ranking of LLM Output by Human Reviewers<\/p>\n\n\n\n<p>Further, let us discuss the meaning of financial LLMs and their use in trading.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-are-financial-llms\"><br>What are financial LLMs?<\/h2>\n\n\n\n<p>While general-purpose LLMs are helpful, models trained on specific data types perform even better for niche tasks. This is where financial LLMs come in. Models like BloombergGPT and FinBERT have been fine-tuned on financial datasets, allowing them to better understand and predict outcomes within the financial sector.<\/p>\n\n\n\n<p>For instance, FinBERT is trained on top of the BERT model using datasets from financial news articles and financial phrase banks, enabling it to capture the nuances of finance-specific language.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1000\" height=\"285\" data-src=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/10\/quantinsti-training-finbert.jpg\" alt=\"\" class=\"wp-image-214437 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/10\/quantinsti-training-finbert.jpg 1000w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/10\/quantinsti-training-finbert-700x200.jpg 700w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/10\/quantinsti-training-finbert-300x86.jpg 300w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/10\/quantinsti-training-finbert-768x219.jpg 768w\" data-sizes=\"(max-width: 1000px) 100vw, 1000px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1000px; aspect-ratio: 1000\/285;\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Figure: Training of FinBERT<br>Next, let us check out the role of sentiment analysis in trading using LLMs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"the-role-of-sentiment-analysis-in-trading-using-llms\">The role of sentiment analysis in trading using LLMs<\/h2>\n\n\n\n<p>Dr. Hamlet Medina explains how one of the alternative data techniques, that is, sentiment analysis plays a critical role in finance by converting qualitative data, such as news articles, speeches, and reports, into quantitative insights that can influence trading strategies.<\/p>\n\n\n\n<p>By leveraging advanced natural language processing (NLP) models like ChatGPT, financial institutions can systematically assess the sentiment behind news reports or statements from influential figures, such as central bank officials, and use this information to make informed market decisions.<\/p>\n\n\n\n<p>Sentiment analysis in this context involves determining whether the tone of a news article or speech is positive, negative, or neutral. This sentiment can reflect market conditions, investor confidence, or potential economic shifts. Dr. Medina highlights that models like ChatGPT are trained on vast datasets, allowing them to recognise patterns in language and sentiment across different sources. These models then evaluate the emotional and factual content of texts, extracting insights about market direction or volatility.<\/p>\n\n\n\n<p>For example, if a central bank statement suggests a cautious economic outlook, sentiment analysis could flag this as a potential signal for market downturns, prompting traders to adjust their positions accordingly. By translating complex linguistic data into actionable insights, sentiment analysis tools have become essential for predictive modelling and risk management in modern finance.<\/p>\n\n\n\n<p>Further, to develop your career in modern methods in finance, there is this course that covers various aspects of trading, investment decisions &amp; applications using News Analytics, Sentiment Analysis and Alternative Data. This course is titled Certificate in Sentiment Analysis and Alternative Data for Finance (CSAF) and you can access it&nbsp;<a href=\"https:\/\/www.quantinsti.com\/csaf\">here<\/a>.<\/p>\n\n\n\n<p>Let us now see what is meant by the sentiment analysis trading process.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"sentiment-analysis-trading-process\">Sentiment analysis trading process<\/h2>\n\n\n\n<p>The sentiment analysis trading process involves a series of steps that transform raw financial text data into actionable trading insights. Here\u2019s a streamlined approach that traders can follow:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1000\" height=\"457\" data-src=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/10\/quantinsti-sentiment-analysis-trading-process.jpg\" alt=\"\" class=\"wp-image-214440 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/10\/quantinsti-sentiment-analysis-trading-process.jpg 1000w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/10\/quantinsti-sentiment-analysis-trading-process-700x320.jpg 700w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/10\/quantinsti-sentiment-analysis-trading-process-300x137.jpg 300w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/10\/quantinsti-sentiment-analysis-trading-process-768x351.jpg 768w\" data-sizes=\"(max-width: 1000px) 100vw, 1000px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1000px; aspect-ratio: 1000\/457;\" \/><\/figure>\n\n\n\n<p>Figure: Sentiment Analysis Trading Process<\/p>\n\n\n\n<p><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Data Collection:\u00a0<\/strong>Gather raw data from sources like FOMC transcripts or earnings calls. This can be in text, audio, or video form from official websites.<\/li>\n\n\n\n<li><strong>Data Preprocessing:\u00a0<\/strong>Clean the data by transcribing, removing irrelevant content, and segmenting it to ensure it&#8217;s ready for analysis.<\/li>\n\n\n\n<li><strong>Sentiment Scoring:<\/strong>\u00a0Use models like FinBERT to assign sentiment scores (positive, negative, or neutral) to the processed data.<\/li>\n\n\n\n<li><strong>Trading Strategy:\u00a0<\/strong>Apply these sentiment scores to your strategy by setting thresholds to trigger trades based on market sentiment shifts during key events.<\/li>\n\n\n\n<li><strong>Performance Analysis:<\/strong>\u00a0Evaluate both strategy and trade-level performance to study profitability.<\/li>\n<\/ol>\n\n\n\n<p><\/p>\n\n\n\n<p>This process allows traders to effectively incorporate sentiment analysis into their trading strategies for better decision-making.<\/p>\n\n\n\n<p>Let\u2019s understand how this sentiment analysis trading process is applied to analyse the FOMC transcripts and trade as per the sentiment.<\/p>\n\n\n\n<p><em>Stay tuned for the next installment to learn about sentiment analysis of FOMC transcripts<\/em><\/p>\n\n\n\n<p><em>Originally posted on <a href=\"https:\/\/blog.quantinsti.com\/trading-using-llm\/\">QuantInsti<\/a>.<\/em><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In recent years, large language models (LLMs) like GPT-4 have revolutionised various industries, including finance.<\/p>\n","protected":false},"author":368,"featured_media":182355,"comment_status":"open","ping_status":"closed","sticky":true,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[339,343,349,338,341],"tags":[5494,7617,17951,15374,16986,17952,17949,17950],"contributors-categories":[13654],"class_list":{"0":"post-214427","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-data-science","8":"category-programing-languages","9":"category-python-development","10":"category-ibkr-quant-news","11":"category-quant-development","12":"tag-data-collection","13":"tag-data-preprocessing","14":"tag-finbert","15":"tag-generative-ai","16":"tag-gpt-4","17":"tag-large-language-models-llms","18":"tag-performance-analysis","19":"tag-sentiment-scoring","20":"contributors-categories-quantinsti"},"pp_statuses_selecting_workflow":false,"pp_workflow_action":"current","pp_status_selection":"publish","acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.9 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Trading using LLM: Generative AI &amp; Sentiment Analysis in Finance &#8211; Part I<\/title>\n<meta name=\"description\" content=\"In recent years, large language models (LLMs) like GPT-4 have revolutionised various industries, including finance.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/posts\/214427\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Trading using LLM: Generative AI &amp; Sentiment Analysis in Finance \u2013 Part I\" \/>\n<meta property=\"og:description\" content=\"In recent years, large language models (LLMs) like GPT-4 have revolutionised various industries, including finance.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/trading-using-llm-generative-ai-sentiment-analysis-in-finance-part-i\/\" \/>\n<meta property=\"og:site_name\" content=\"IBKR Campus US\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-30T16:56:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/blue-abstract-server.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"563\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Chainika Thakar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Chainika Thakar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\n\t    \"@context\": \"https:\\\/\\\/schema.org\",\n\t    \"@graph\": [\n\t        {\n\t            \"@type\": \"NewsArticle\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/trading-using-llm-generative-ai-sentiment-analysis-in-finance-part-i\\\/#article\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/trading-using-llm-generative-ai-sentiment-analysis-in-finance-part-i\\\/\"\n\t            },\n\t            \"author\": {\n\t                \"name\": \"Chainika Thakar\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/c97b4c6a477fa019494f67cff50fcb10\"\n\t            },\n\t            \"headline\": \"Trading using LLM: Generative AI &amp; Sentiment Analysis in Finance &#8211; Part I\",\n\t            \"datePublished\": \"2024-10-30T16:56:49+00:00\",\n\t            \"mainEntityOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/trading-using-llm-generative-ai-sentiment-analysis-in-finance-part-i\\\/\"\n\t            },\n\t            \"wordCount\": 1297,\n\t            \"commentCount\": 0,\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/trading-using-llm-generative-ai-sentiment-analysis-in-finance-part-i\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2023\\\/02\\\/blue-abstract-server.jpg\",\n\t            \"keywords\": [\n\t                \"data collection\",\n\t                \"Data Preprocessing\",\n\t                \"FinBERT\",\n\t                \"Generative AI\",\n\t                \"GPT-4\",\n\t                \"Large Language Models (LLMs)\",\n\t                \"Performance Analysis\",\n\t                \"Sentiment Scoring\"\n\t            ],\n\t            \"articleSection\": [\n\t                \"Data Science\",\n\t                \"Programming Languages\",\n\t                \"Python Development\",\n\t                \"Quant\",\n\t                \"Quant Development\"\n\t            ],\n\t            \"inLanguage\": \"en-US\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"CommentAction\",\n\t                    \"name\": \"Comment\",\n\t                    \"target\": [\n\t                        \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/trading-using-llm-generative-ai-sentiment-analysis-in-finance-part-i\\\/#respond\"\n\t                    ]\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"WebPage\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/trading-using-llm-generative-ai-sentiment-analysis-in-finance-part-i\\\/\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/trading-using-llm-generative-ai-sentiment-analysis-in-finance-part-i\\\/\",\n\t            \"name\": \"Trading using LLM: Generative AI &amp; Sentiment Analysis in Finance - Part I | IBKR Campus US\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\"\n\t            },\n\t            \"primaryImageOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/trading-using-llm-generative-ai-sentiment-analysis-in-finance-part-i\\\/#primaryimage\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/trading-using-llm-generative-ai-sentiment-analysis-in-finance-part-i\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2023\\\/02\\\/blue-abstract-server.jpg\",\n\t            \"datePublished\": \"2024-10-30T16:56:49+00:00\",\n\t            \"description\": \"In recent years, large language models (LLMs) like GPT-4 have revolutionised various industries, including finance.\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"ReadAction\",\n\t                    \"target\": [\n\t                        \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/trading-using-llm-generative-ai-sentiment-analysis-in-finance-part-i\\\/\"\n\t                    ]\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"ImageObject\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/trading-using-llm-generative-ai-sentiment-analysis-in-finance-part-i\\\/#primaryimage\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2023\\\/02\\\/blue-abstract-server.jpg\",\n\t            \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2023\\\/02\\\/blue-abstract-server.jpg\",\n\t            \"width\": 1000,\n\t            \"height\": 563,\n\t            \"caption\": \"Autocorrelation and Autocovariance: Calculation, Examples, and More \u2013 Part II\"\n\t        },\n\t        {\n\t            \"@type\": \"WebSite\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"name\": \"IBKR Campus US\",\n\t            \"description\": \"Financial Education from Interactive Brokers\",\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"SearchAction\",\n\t                    \"target\": {\n\t                        \"@type\": \"EntryPoint\",\n\t                        \"urlTemplate\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/?s={search_term_string}\"\n\t                    },\n\t                    \"query-input\": {\n\t                        \"@type\": \"PropertyValueSpecification\",\n\t                        \"valueRequired\": true,\n\t                        \"valueName\": \"search_term_string\"\n\t                    }\n\t                }\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"Organization\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\",\n\t            \"name\": \"Interactive Brokers\",\n\t            \"alternateName\": \"IBKR\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"logo\": {\n\t                \"@type\": \"ImageObject\",\n\t                \"inLanguage\": \"en-US\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\",\n\t                \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"width\": 669,\n\t                \"height\": 669,\n\t                \"caption\": \"Interactive Brokers\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\"\n\t            },\n\t            \"publishingPrinciples\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/about-ibkr-campus\\\/\",\n\t            \"ethicsPolicy\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/cyber-security-notice\\\/\"\n\t        },\n\t        {\n\t            \"@type\": \"Person\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/c97b4c6a477fa019494f67cff50fcb10\",\n\t            \"name\": \"Chainika Thakar\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/author\\\/chainikathakar\\\/\"\n\t        }\n\t    ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Trading using LLM: Generative AI &amp; Sentiment Analysis in Finance &#8211; Part I","description":"In recent years, large language models (LLMs) like GPT-4 have revolutionised various industries, including finance.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/posts\/214427\/","og_locale":"en_US","og_type":"article","og_title":"Trading using LLM: Generative AI & Sentiment Analysis in Finance \u2013 Part I","og_description":"In recent years, large language models (LLMs) like GPT-4 have revolutionised various industries, including finance.","og_url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/trading-using-llm-generative-ai-sentiment-analysis-in-finance-part-i\/","og_site_name":"IBKR Campus US","article_published_time":"2024-10-30T16:56:49+00:00","og_image":[{"width":1000,"height":563,"url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/blue-abstract-server.jpg","type":"image\/jpeg"}],"author":"Chainika Thakar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Chainika Thakar","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/trading-using-llm-generative-ai-sentiment-analysis-in-finance-part-i\/#article","isPartOf":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/trading-using-llm-generative-ai-sentiment-analysis-in-finance-part-i\/"},"author":{"name":"Chainika Thakar","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/c97b4c6a477fa019494f67cff50fcb10"},"headline":"Trading using LLM: Generative AI &amp; Sentiment Analysis in Finance &#8211; Part I","datePublished":"2024-10-30T16:56:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/trading-using-llm-generative-ai-sentiment-analysis-in-finance-part-i\/"},"wordCount":1297,"commentCount":0,"publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/trading-using-llm-generative-ai-sentiment-analysis-in-finance-part-i\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/blue-abstract-server.jpg","keywords":["data collection","Data Preprocessing","FinBERT","Generative AI","GPT-4","Large Language Models (LLMs)","Performance Analysis","Sentiment Scoring"],"articleSection":["Data Science","Programming Languages","Python Development","Quant","Quant Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/trading-using-llm-generative-ai-sentiment-analysis-in-finance-part-i\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/trading-using-llm-generative-ai-sentiment-analysis-in-finance-part-i\/","url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/trading-using-llm-generative-ai-sentiment-analysis-in-finance-part-i\/","name":"Trading using LLM: Generative AI &amp; Sentiment Analysis in Finance - Part I | IBKR Campus US","isPartOf":{"@id":"https:\/\/ibkrcampus.com\/campus\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/trading-using-llm-generative-ai-sentiment-analysis-in-finance-part-i\/#primaryimage"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/trading-using-llm-generative-ai-sentiment-analysis-in-finance-part-i\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/blue-abstract-server.jpg","datePublished":"2024-10-30T16:56:49+00:00","description":"In recent years, large language models (LLMs) like GPT-4 have revolutionised various industries, including finance.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/trading-using-llm-generative-ai-sentiment-analysis-in-finance-part-i\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/trading-using-llm-generative-ai-sentiment-analysis-in-finance-part-i\/#primaryimage","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/blue-abstract-server.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/blue-abstract-server.jpg","width":1000,"height":563,"caption":"Autocorrelation and Autocovariance: Calculation, Examples, and More \u2013 Part II"},{"@type":"WebSite","@id":"https:\/\/ibkrcampus.com\/campus\/#website","url":"https:\/\/ibkrcampus.com\/campus\/","name":"IBKR Campus US","description":"Financial Education from Interactive Brokers","publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ibkrcampus.com\/campus\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ibkrcampus.com\/campus\/#organization","name":"Interactive Brokers","alternateName":"IBKR","url":"https:\/\/ibkrcampus.com\/campus\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","width":669,"height":669,"caption":"Interactive Brokers"},"image":{"@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/"},"publishingPrinciples":"https:\/\/www.interactivebrokers.com\/campus\/about-ibkr-campus\/","ethicsPolicy":"https:\/\/www.interactivebrokers.com\/campus\/cyber-security-notice\/"},{"@type":"Person","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/c97b4c6a477fa019494f67cff50fcb10","name":"Chainika Thakar","url":"https:\/\/www.interactivebrokers.com\/campus\/author\/chainikathakar\/"}]}},"jetpack_featured_media_url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/blue-abstract-server.jpg","_links":{"self":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/214427","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/users\/368"}],"replies":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/comments?post=214427"}],"version-history":[{"count":0,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/214427\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media\/182355"}],"wp:attachment":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media?parent=214427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/categories?post=214427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/tags?post=214427"},{"taxonomy":"contributors-categories","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/contributors-categories?post=214427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}