<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Florian Sabani on Medium]]></title>
        <description><![CDATA[Stories by Florian Sabani on Medium]]></description>
        <link>https://medium.com/@sabaniflorian?source=rss-bfa11e77e37------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Vd8Kpl17N8E3yw2PnOV0ZA.jpeg</url>
            <title>Stories by Florian Sabani on Medium</title>
            <link>https://medium.com/@sabaniflorian?source=rss-bfa11e77e37------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 06:32:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sabaniflorian/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How I 10x’ed my NextJs website thanks to real-time updates.]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://levelup.gitconnected.com/how-i-10xed-my-nextjs-website-thanks-to-real-time-updates-cb694963124e?source=rss-bfa11e77e37------2"><img src="https://cdn-images-1.medium.com/max/2072/1*jb9nCqBR18c-fpVvnuULgg.png" width="2072"></a></p><p class="medium-feed-snippet">Hey folks &#x1F44B;, my name is Florian, and I&#x2019;m a SaaS wizard &#x1F9D9;&#x200D;&#x2642;&#xFE0F;, let&#x2019;s see how to improve the UX of YOUR NextJs app.</p><p class="medium-feed-link"><a href="https://levelup.gitconnected.com/how-i-10xed-my-nextjs-website-thanks-to-real-time-updates-cb694963124e?source=rss-bfa11e77e37------2">Continue reading on Level Up Coding »</a></p></div>]]></description>
            <link>https://levelup.gitconnected.com/how-i-10xed-my-nextjs-website-thanks-to-real-time-updates-cb694963124e?source=rss-bfa11e77e37------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb694963124e</guid>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[next]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[full-stack-developer]]></category>
            <dc:creator><![CDATA[Florian Sabani]]></dc:creator>
            <pubDate>Mon, 03 Jun 2024 15:55:45 GMT</pubDate>
            <atom:updated>2024-06-03T15:55:45.194Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[I used Wing-cloud to build a website, here are my takeaways]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://levelup.gitconnected.com/i-used-wing-cloud-to-build-a-website-here-are-my-takeaways-4cfb52758e94?source=rss-bfa11e77e37------2"><img src="https://cdn-images-1.medium.com/max/776/1*j5vyv4utwckQYGKfKBrIpA.png" width="776"></a></p><p class="medium-feed-snippet">Hi, I just tried Wingcloud and immediately flew here to blog about it and share opinions.</p><p class="medium-feed-link"><a href="https://levelup.gitconnected.com/i-used-wing-cloud-to-build-a-website-here-are-my-takeaways-4cfb52758e94?source=rss-bfa11e77e37------2">Continue reading on Level Up Coding »</a></p></div>]]></description>
            <link>https://levelup.gitconnected.com/i-used-wing-cloud-to-build-a-website-here-are-my-takeaways-4cfb52758e94?source=rss-bfa11e77e37------2</link>
            <guid isPermaLink="false">https://medium.com/p/4cfb52758e94</guid>
            <category><![CDATA[infrastructure-as-code]]></category>
            <category><![CDATA[infrastructure]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[winglang]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Florian Sabani]]></dc:creator>
            <pubDate>Thu, 19 Oct 2023 03:07:02 GMT</pubDate>
            <atom:updated>2023-10-19T03:07:02.860Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How to Build a Cloud Candlestick Database using AWS Timestream Serverless]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://levelup.gitconnected.com/how-to-build-a-cloud-candlestick-database-aws-timestream-serverless-55028c84404b?source=rss-bfa11e77e37------2"><img src="https://cdn-images-1.medium.com/max/939/1*TqZZO2Ohqy7krjjt2JOmlw.png" width="939"></a></p><p class="medium-feed-snippet">In this tutorial, we will explore how to build a serverless cloud architecture that can automatically store price candlesticks for 1000+&#x2026;</p><p class="medium-feed-link"><a href="https://levelup.gitconnected.com/how-to-build-a-cloud-candlestick-database-aws-timestream-serverless-55028c84404b?source=rss-bfa11e77e37------2">Continue reading on Level Up Coding »</a></p></div>]]></description>
            <link>https://levelup.gitconnected.com/how-to-build-a-cloud-candlestick-database-aws-timestream-serverless-55028c84404b?source=rss-bfa11e77e37------2</link>
            <guid isPermaLink="false">https://medium.com/p/55028c84404b</guid>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[trading-bot]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[algorithmic-trading]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <dc:creator><![CDATA[Florian Sabani]]></dc:creator>
            <pubDate>Sun, 24 Sep 2023 20:51:05 GMT</pubDate>
            <atom:updated>2023-09-25T17:25:58.414Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How to Securely Pass Secrets to Lambda | AWS CDK ]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://levelup.gitconnected.com/how-to-securely-pass-secrets-to-lambda-aws-cdk-186599049262?source=rss-bfa11e77e37------2"><img src="https://cdn-images-1.medium.com/max/1375/1*Sq5QWyod7QrJTiyZvWTITA.png" width="1375"></a></p><p class="medium-feed-snippet">In this blog post, I&#x2019;ll share the approach I use for storing and managing secrets in an AWS CDK project.</p><p class="medium-feed-link"><a href="https://levelup.gitconnected.com/how-to-securely-pass-secrets-to-lambda-aws-cdk-186599049262?source=rss-bfa11e77e37------2">Continue reading on Level Up Coding »</a></p></div>]]></description>
            <link>https://levelup.gitconnected.com/how-to-securely-pass-secrets-to-lambda-aws-cdk-186599049262?source=rss-bfa11e77e37------2</link>
            <guid isPermaLink="false">https://medium.com/p/186599049262</guid>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[secrets]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[cdk]]></category>
            <dc:creator><![CDATA[Florian Sabani]]></dc:creator>
            <pubDate>Sat, 16 Sep 2023 14:12:26 GMT</pubDate>
            <atom:updated>2023-09-19T17:53:47.998Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How to Trigger On DynamoDB Changes to SNS | AWS CDK]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://awstip.com/how-to-sync-dynamodb-changes-to-sns-aws-cdk-19b2d84910c?source=rss-bfa11e77e37------2"><img src="https://cdn-images-1.medium.com/max/1204/1*M0MSNohC54PpZzvmtNI7TA.png" width="1204"></a></p><p class="medium-feed-snippet">&#x1F44B; Greetings everyone! In this tutorial, we&#x2019;ll build a solution that detects changes within an AWS DynamoDB Table and triggers the&#x2026;</p><p class="medium-feed-link"><a href="https://awstip.com/how-to-sync-dynamodb-changes-to-sns-aws-cdk-19b2d84910c?source=rss-bfa11e77e37------2">Continue reading on AWS Tip »</a></p></div>]]></description>
            <link>https://awstip.com/how-to-sync-dynamodb-changes-to-sns-aws-cdk-19b2d84910c?source=rss-bfa11e77e37------2</link>
            <guid isPermaLink="false">https://medium.com/p/19b2d84910c</guid>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[dynamodb]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Florian Sabani]]></dc:creator>
            <pubDate>Fri, 18 Aug 2023 22:43:09 GMT</pubDate>
            <atom:updated>2023-09-29T18:16:38.382Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[I moved 80% of my AWS Servers to Tokyo, see why . . .]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://awstip.com/i-moved-80-of-my-aws-servers-to-tokyo-see-why-8cda269aa3a3?source=rss-bfa11e77e37------2"><img src="https://cdn-images-1.medium.com/max/1079/1*Wcnof20WBLHjzsRehexJ0A.png" width="1079"></a></p><p class="medium-feed-snippet">Hello there, I&#x2019;m Florian, a 22-year-old tech enthusiast.</p><p class="medium-feed-link"><a href="https://awstip.com/i-moved-80-of-my-aws-servers-to-tokyo-see-why-8cda269aa3a3?source=rss-bfa11e77e37------2">Continue reading on AWS Tip »</a></p></div>]]></description>
            <link>https://awstip.com/i-moved-80-of-my-aws-servers-to-tokyo-see-why-8cda269aa3a3?source=rss-bfa11e77e37------2</link>
            <guid isPermaLink="false">https://medium.com/p/8cda269aa3a3</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[startup-lessons]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[tokyo]]></category>
            <dc:creator><![CDATA[Florian Sabani]]></dc:creator>
            <pubDate>Mon, 01 May 2023 22:56:48 GMT</pubDate>
            <atom:updated>2023-05-06T17:10:39.548Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Assign Static IP to your Lambda — AWS CDK]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://awstip.com/assign-static-ip-to-your-lambda-aws-cdk-a540590d1dba?source=rss-bfa11e77e37------2"><img src="https://cdn-images-1.medium.com/max/1000/0*V-O4l6jSLcbbUeky.jpg" width="1000"></a></p><p class="medium-feed-snippet">In order for your Lambda Function to communicate with your third-party provider, they may require an IP Allow List.</p><p class="medium-feed-link"><a href="https://awstip.com/assign-static-ip-to-your-lambda-aws-cdk-a540590d1dba?source=rss-bfa11e77e37------2">Continue reading on AWS Tip »</a></p></div>]]></description>
            <link>https://awstip.com/assign-static-ip-to-your-lambda-aws-cdk-a540590d1dba?source=rss-bfa11e77e37------2</link>
            <guid isPermaLink="false">https://medium.com/p/a540590d1dba</guid>
            <category><![CDATA[lambda]]></category>
            <category><![CDATA[ip]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Florian Sabani]]></dc:creator>
            <pubDate>Wed, 19 Apr 2023 21:34:45 GMT</pubDate>
            <atom:updated>2024-02-03T19:20:27.987Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Leaky Bucket and AWS CDK —Easiest implementation possible]]></title>
            <link>https://awstip.com/leaky-bucket-and-aws-cdk-easiest-implementation-possible-679037b0a5d9?source=rss-bfa11e77e37------2</link>
            <guid isPermaLink="false">https://medium.com/p/679037b0a5d9</guid>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[sqs]]></category>
            <category><![CDATA[traffic]]></category>
            <category><![CDATA[leaky-bucket]]></category>
            <dc:creator><![CDATA[Florian Sabani]]></dc:creator>
            <pubDate>Wed, 19 Apr 2023 14:39:05 GMT</pubDate>
            <atom:updated>2023-04-20T18:31:47.262Z</atom:updated>
            <content:encoded><![CDATA[<p>In this post, <strong>you will see</strong> how to regulate traffic and avoid congestion in the most straightforward way using AWS CDK.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*Gs2ohUOvEHMngROMcc8_cg.png" /><figcaption>Photo by <a href="https://www.scaler.com/topics/leaky-bucket-algorithm/">Scaler</a></figcaption></figure><h3>Contents:</h3><ol><li>Your Lambda Function</li><li>Your Messages Queue</li><li>Bind Your Lambda to Your Queue</li><li>Manage Traffic Congestion</li><li>An Example</li><li>Further support</li></ol><p><a href="https://medium.com/@sabaniflorian/leaky-bucket-and-aws-cdk-easiest-implementation-possible-679037b0a5d9">^Back to top</a></p><h3><strong>Your Lambda Function</strong></h3><p>Let’s say you have a Lambda function defined in your AWS CDK IaC project, which will probably look something like this (using TypeScript):</p><pre>    const lambdaFunction = new NodejsFunction(stack, id, {<br>        architecture: Architecture.ARM_64,<br>        runtime: Runtime.NODEJS_16_X,<br>        entry: `${__dirname}/my-lambda.ts`,<br>        logRetention: RetentionDays.ONE_DAY,<br>        memorySize: 1024,<br>    });</pre><p>Now, AWS has a soft limit of 1000 concurrent Lambda functions (per type) you can run, but in your use case, this Lambda could interact with other third-party services so you have to be careful about how often you interact.</p><h4>Decouple is the answer.</h4><p>Decoupling the Lambda, with its own invocation you can “manage the traffic” avoiding congestion, let’s see how.</p><h3>Your Messages Queue</h3><p>Let’s define an AWS SQS that we’ll use to store all “<em>Lambda invocation requests</em>”.</p><p>Every time we need to invoke our Lambda Function, we send a message in this queue.</p><pre>    const queue = new Queue(stack, id, {<br>        visibilityTimeout: Duration.minutes(15),<br>        encryption: QueueEncryption.KMS_MANAGED<br>    });</pre><p>For the payload of each message contained by this Queue, we’ll include the body parameters requested by our Lambda to function (if any).</p><h3>Bind Your Lambda to Your Queue</h3><p>Now let’s use a bindQueueToLambda function to set our Lambda as <em>the</em> <em>Poller</em> of the Queue we just created.</p><pre>    bindQueueToLambda(<br>        queue,<br>        lambdaFunction<br>    );</pre><p>That means: every time we send a message in the Queue, this Lambda Function will be invoked, and will process the payload contained by the Queue. (<em>implementation below</em>)</p><h3>Manage Traffic Congestion</h3><p>To implement a Leaky Bucket Algorithm using those two components it’s enough to just set the maximum number of concurrent Lambda Functions that can poll messages from the Queue:</p><pre>    bindQueueToFunction(<br>        ordersSQS,<br>        placeOrdersFunction,<br>        2  // &lt;-- Max number of concurrent Functions<br>    );</pre><p>This means only 2 Lambda Functions can work at the same instant time, and the traffic is regulated in such a way that other messages will be processed as soon as one of the “running” Lambda Functions is available.</p><p>You can adapt your <em>max value </em>of <em>concurrent Lambda Functions </em>based on your limitations and your calculations.</p><p>Please note: The Lambda handler code used as Poller must execute the process synchronously, otherwise, all messages would be polled from the queue in no time and traffic would potentially be interrupted again.</p><p>Here is the rest of the implementation:</p><pre>export const bindQueueToFunction = (<br>    fromQueue:Queue,<br>    toFunction:NodejsFunction,<br>    maxConcurrency?:number) =&gt; {<br><br>    toFunction.addEventSource(new SqsEventSource(fromQueue,{<br>        batchSize: 1,<br>        maxBatchingWindow: Duration.seconds(10),<br>        maxConcurrency: maxConcurrency // &lt;-- Define max desired concurrent Lambda<br>    }));<br><br>    fromQueue.grantSendMessages(toFunction); // &lt;-- In case you want to delay the execution of a particular run<br>    fromQueue.grantConsumeMessages(toFunction);<br><br>    toFunction.addToRolePolicy(new PolicyStatement({<br>        resources: [fromQueue.queueArn],<br>        actions: [<br>            &#39;sqs:ReceiveMessage&#39;,<br>            &#39;sqs:DeleteMessage&#39;,<br>            &#39;sqs:GetQueueAttributes&#39;,<br>        ],<br>    }));<br><br>    return toFunction;<br>};</pre><h3>Example Use Case Scenario</h3><p>This is particularly useful when for some reason you have to fetch data from a third-party provider every X minutes, and the number of calls scales based on the number of users you have.</p><p>In the case of strict API usage limitation, using this technique you can quickly prevent IP bans or errors incoming from the third-party provider.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=679037b0a5d9" width="1" height="1" alt=""><hr><p><a href="https://awstip.com/leaky-bucket-and-aws-cdk-easiest-implementation-possible-679037b0a5d9">Leaky Bucket and AWS CDK —Easiest implementation possible</a> was originally published in <a href="https://awstip.com/">AWS Tip</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dijkstra’s algorithm: the little-known secret behind the world’s most efficient systems]]></title>
            <link>https://medium.com/@sabaniflorian/dijkstras-algorithm-the-little-known-secret-behind-the-world-s-most-efficient-systems-57ce26d34b85?source=rss-bfa11e77e37------2</link>
            <guid isPermaLink="false">https://medium.com/p/57ce26d34b85</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[graph]]></category>
            <category><![CDATA[efficiency]]></category>
            <category><![CDATA[dijkstra]]></category>
            <dc:creator><![CDATA[Florian Sabani]]></dc:creator>
            <pubDate>Wed, 14 Dec 2022 13:55:35 GMT</pubDate>
            <atom:updated>2022-12-14T13:55:35.041Z</atom:updated>
            <content:encoded><![CDATA[<p>Dijkstra’s algorithm, named after its <strong>Dutch</strong> inventor <em>Edsger Dijkstra</em>, is a widely used algorithm for finding the shortest path between two nodes in a network.</p><h4>How has it changed our lives?</h4><p>This algorithm is commonly used in computer science and engineering, and has had a significant impact on a variety of fields including <strong>transportation</strong>, <strong>networking</strong>, and <strong>logistics</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8RCZFnZjvXnZBUxs.png" /></figure><p>One of the key applications of Dijkstra’s algorithm is in routing and navigation. By finding the shortest path between two points, the algorithm can be used to determine the most efficient route for a vehicle to take in a transportation network. This has been particularly useful in the development of <strong>transportation systems</strong>, allowing for more efficient and effective movement of people and goods.</p><p>In addition to transportation, Dijkstra’s algorithm has also been used in the field of networking. In computer networks, the algorithm can be used to find the shortest path between two nodes, allowing for more efficient routing of data. This has helped to improve the performance of networks and has played a key role in the development of the <strong>internet</strong>.</p><p>Furthermore, Dijkstra’s algorithm has also been used in logistics and supply chain management. By finding the shortest path between two locations, the algorithm can be used to determine the most efficient route for transporting goods. This has helped to improve the efficiency of supply chain operations and has contributed to the growth of the global economy.</p><h4>Conclusion</h4><p>Overall, Dijkstra’s algorithm has had a significant impact on the world. By enabling the efficient routing of people, goods, and data, the algorithm has helped to improve the performance of transportation, networking, and logistics systems. It continues to be an important tool in a variety of fields, and its impact on the world is likely to continue for many years to come.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57ce26d34b85" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Can ChatGPT Solve University Exams?]]></title>
            <link>https://medium.com/@sabaniflorian/can-chatgpt-solve-university-exams-81dfab8e700?source=rss-bfa11e77e37------2</link>
            <guid isPermaLink="false">https://medium.com/p/81dfab8e700</guid>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[university]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Florian Sabani]]></dc:creator>
            <pubDate>Tue, 13 Dec 2022 16:35:54 GMT</pubDate>
            <atom:updated>2022-12-14T00:32:44.422Z</atom:updated>
            <content:encoded><![CDATA[<p>The newest language model, <strong>Chat GPT</strong>, is an open artificial intelligence created and trained exclusively for conversations.</p><p>What happens if during a conversation it is asked to solve a <em>university exam</em> exercise?</p><p>In this blog I will share my experience with some exercises from a Probability and Statistics exam found Online.</p><h4>First Exercise Problem</h4><p>As a first question, I chose a problem with multiple variables and no numbers, because I wanted to see if ChatGPT can process an answer even in the absence of numbers or formulas.</p><blockquote>Suppose you are taking a multiple-choice test with c choices for each question. In answering a question on this test, the probability that you know the answer is p. If you don’t know the answer, you choose one at random. What is the probability that you knew the answer to a question, given that you answered it correctly?</blockquote><h4>First Exercise Solution</h4><p>The official solution of this exam exercise is the one below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*s4Ul93DQ4AjLWLLvyI4Sjw.png" /><figcaption>The solution</figcaption></figure><p>But that’s boring, so let’s see if ChatGPT can also find the answer.</p><h4>First Exercise ChatGPT Solution</h4><p>The response was mind blowing:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*0XwmOc0tWlwKi9g_2zbm0w.png" /></figure><p>ChatGPT was then able to formulate the correct answer and provide an example of counterevidence.</p><p>Both solutions therefore turn out to be the same:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*unAWYOq63s__mJU_eRqc9w.png" /><figcaption>Compared University vs ChatGPT solutions for the same exercise problem.</figcaption></figure><h4>Second Exercise</h4><blockquote>Suppose 100 people all toss a hat into a box and then proceed to randomly pick out a hat. What is the expected number of people to get their own hat back?</blockquote><h4>Second Exercise Solution</h4><p>The official solution of this exam exercise is the one below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*63v4cxgjLpHuObsUxoHmqA.png" /><figcaption>University solution</figcaption></figure><h4>Second Exercise ChatGPT Solution</h4><p>Also in this example the AI was able to deduce the correct expected value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*8zmFbixa0rrGC_UNwA2r5w.png" /><figcaption>ChatGPT Solution</figcaption></figure><h4>Conclusions</h4><p>ChatGPT certainly seems able to answer some mathematical questions of probability and statistics; in future experiments we will also try longer and more complex exercises to analyze how close it comes to ideal solutions.</p><h4>What about Other Subjects?</h4><p>Very interesting experiments can be questions related to History, Geography, Philosophy, Computer Science, Economics and whatnot.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81dfab8e700" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>