<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Event Horizons</title>
	<atom:link href="https://theeventhorizons.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://theeventhorizons.com/</link>
	<description>Immerse yourself in our universe</description>
	<lastBuildDate>Mon, 22 Jan 2024 16:34:23 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>How to Build an Host ? Episode I</title>
		<link>https://theeventhorizons.com/how-to-build-an-host/</link>
					<comments>https://theeventhorizons.com/how-to-build-an-host/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 02 Jan 2024 13:24:00 +0000</pubDate>
				<category><![CDATA[Artificial Intelligence]]></category>
		<guid isPermaLink="false">https://theeventhorizons.com/?p=6463</guid>

					<description><![CDATA[<p>In the year 2051, a fortunate group of young scientists is granted the exclusive opportunity to explore the mysteries of WestWorld. Their behind-the-scenes journey takes an extraordinary turn as they are invited to a unique conference orchestrated by the enigmatic park director, Dr. Ford. At the core of this encounter lies a captivating dive into the realm of Deep Learning, offering participants an unprecedented experience and unveiling the secrets of the symbiosis between cutting-edge technology and the bold imagination of WestWorld.</p>
<p>The article <a href="https://theeventhorizons.com/how-to-build-an-host/">How to Build an Host ? Episode I</a> first appeared on <a href="https://theeventhorizons.com">The Event Horizons</a>.</p>
]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="6463" class="elementor elementor-6463">
						<section class="elementor-section elementor-top-section elementor-element elementor-element-2713baa1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2713baa1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-76531a71" data-id="76531a71" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-17d9412e elementor-align-center elementor-widget elementor-widget-button" data-id="17d9412e" data-element_type="widget" data-e-type="widget" data-widget_type="button.default">
				<div class="elementor-widget-container">
									<div class="elementor-button-wrapper">
					<a class="elementor-button elementor-button-link elementor-size-sm" href="https://theeventhorizons.com/category/ai-revolution/">
						<span class="elementor-button-content-wrapper">
									<span class="elementor-button-text">Artificial Intelligence</span>
					</span>
					</a>
				</div>
								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1a88d474 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1a88d474" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2ed08983" data-id="2ed08983" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-33747dc9 elementor-widget elementor-widget-heading" data-id="33747dc9" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-xxl">How to Build a Host?</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3b9ae900 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3b9ae900" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-27d84eb2" data-id="27d84eb2" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-125e65df elementor-widget elementor-widget-heading" data-id="125e65df" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Episode I</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-45651093 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="45651093" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-754d95da" data-id="754d95da" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-763f295 elementor-widget elementor-widget-heading" data-id="763f295" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">By Jordan Moles on January 2, 2024</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6afd12ed elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6afd12ed" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3a04e740" data-id="3a04e740" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-20cd08b7 elementor-widget elementor-widget-image" data-id="20cd08b7" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img fetchpriority="high" decoding="async" width="1536" height="864" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-westworld-1536x864.jpg" class="attachment-1536x1536 size-1536x1536 wp-image-6090" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-westworld-1536x864.jpg 1536w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-westworld-300x169.jpg 300w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-westworld-1024x576.jpg 1024w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-westworld-768x432.jpg 768w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-westworld-800x450.jpg 800w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-westworld.jpg 1920w" sizes="(max-width: 1536px) 100vw, 1536px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3ce6a5cf elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3ce6a5cf" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5e94b08b" data-id="5e94b08b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1c5f44a5 elementor-widget elementor-widget-text-editor" data-id="1c5f44a5" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="text-align: center;"><strong>

In the year 2051, a fortunate group of young scientists is granted the exclusive opportunity to explore the mysteries of WestWorld. Their behind-the-scenes journey takes an extraordinary turn as they are invited to a unique conference orchestrated by the enigmatic park director, Dr. Ford. At the core of this encounter lies a captivating dive into the realm of Deep Learning, offering participants an unprecedented experience and unveiling the secrets of the symbiosis between cutting-edge technology and the bold imagination of WestWorld.</strong></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-11dc3b87 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="11dc3b87" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c0dc08d" data-id="c0dc08d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5c638dbf elementor-widget elementor-widget-spacer" data-id="5c638dbf" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-67518d57 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="67518d57" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5104bff7" data-id="5104bff7" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1e070692 elementor-widget elementor-widget-spacer" data-id="1e070692" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-55cb804 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="55cb804" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4c8089f9" data-id="4c8089f9" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-480b1028 elementor-widget elementor-widget-heading" data-id="480b1028" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">At the Crossroads of Intelligence</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3d0aa02f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3d0aa02f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-78c4f0c0" data-id="78c4f0c0" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4785abe2 elementor-widget elementor-widget-text-editor" data-id="4785abe2" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									Ladies and gentlemen, welcome to WestWorld, a groundbreaking amusement park where technological innovation and artistic audacity converge to create an unparalleled immersive experience. I am Dr. Ford, the Director of this groundbreaking park, and I am here to unveil the computational intricacies and mathematical vision that underpin this extraordinary project.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4deb4dd3 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4deb4dd3" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-42a78c09" data-id="42a78c09" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5cfc8c26 elementor-widget elementor-widget-image" data-id="5cfc8c26" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img decoding="async" width="1024" height="538" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-a5e9b61afb0895fd15817d69041bdf43d1-Westworld-Panton2-f.2x.rsocial.w600-1024x538.webp" class="attachment-large size-large wp-image-6252" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-a5e9b61afb0895fd15817d69041bdf43d1-Westworld-Panton2-f.2x.rsocial.w600-1024x538.webp 1024w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-a5e9b61afb0895fd15817d69041bdf43d1-Westworld-Panton2-f.2x.rsocial.w600-300x158.webp 300w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-a5e9b61afb0895fd15817d69041bdf43d1-Westworld-Panton2-f.2x.rsocial.w600-768x403.webp 768w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-a5e9b61afb0895fd15817d69041bdf43d1-Westworld-Panton2-f.2x.rsocial.w600.webp 1200w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: HBO</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-32be84da" data-id="32be84da" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-722d27f0 elementor-widget elementor-widget-image" data-id="722d27f0" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img decoding="async" width="1000" height="565" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-5845336865edfe5f0f8b4dff.webp" class="attachment-large size-large wp-image-6251" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-5845336865edfe5f0f8b4dff.webp 1000w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-5845336865edfe5f0f8b4dff-300x170.webp 300w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-5845336865edfe5f0f8b4dff-768x434.webp 768w" sizes="(max-width: 1000px) 100vw, 1000px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: HBO</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2b664e1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2b664e1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3150a84c" data-id="3150a84c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1454a0be elementor-widget elementor-widget-text-editor" data-id="1454a0be" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Our ambition extends far beyond a mere recreation of the Wild West. WestWorld pushes the boundaries of imagination by introducing hosts, androids of unparalleled sophistication capable of interacting indistinguishably with our visitors. It&#8217;s not just entertainment; it&#8217;s an exploration of the deepest realms of artificial intelligence: Deep Learning.</p><p>At the heart of this technologically forged paradise, our quest aims to continually push the boundaries of what&#8217;s possible. Our hosts don&#8217;t merely replicate preprogrammed actions; they react, learn, and evolve in real-time. Nurtured for years by a vast database, we&#8217;ve trained, validated, and subjected them to tests (supervised learning), ensuring they provide a unique experience and have the ability to learn autonomously thereafter.</p><p><span style="font-size: 15px; color: var( --e-global-color-text );">The neural networks that power them, drawing inspiration from the complexity of the human brain, equip them with the versatility needed to perform a variety of tasks, from driving a carriage to horseback riding, from reading to writing, from recognizing their counterparts to expressing empathy through emotion recognition. This sublime union between machine and human thought goes beyond classical Machine Learning models such as K-Nearest Neighbors, decision trees, or support vector machines. Each interaction with a visitor represents an opportunity to refine their cognitive skills (unsupervised learning), providing a unique experience at every moment, even if this aspect will not be explored in this conference.</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2494806c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2494806c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-226242ae" data-id="226242ae" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-15e400f6 elementor-widget elementor-widget-text-editor" data-id="15e400f6" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>At WestWorld, our mission extends beyond providing simple entertainment; we give birth to virtual worlds that transcend reality. For enlightened minds like yours, eminent actors in this endeavor, it&#8217;s an expedition to the frontier of technology and humanity, a fusion of artistic creativity and advanced computing power. Our goal today is to initiate you into the fundamental concepts of neural networks by introducing the multilayer perceptron and unveiling the process through which our hosts learn to recognize numbers. In an upcoming conference, we will explore in detail how they manage to identify other individuals. Get ready to embark on an adventure where the line between man and machine blurs, opening horizons as vast as imagination itself.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-79e222af elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="79e222af" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-286a7437" data-id="286a7437" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-59c5d6fa elementor-widget elementor-widget-image" data-id="59c5d6fa" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="576" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-990-1024x576.jpg" class="attachment-large size-large wp-image-6325" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-990-1024x576.jpg 1024w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-990-300x169.jpg 300w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-990-768x432.jpg 768w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-990-800x450.jpg 800w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-990.jpg 1280w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: HBO</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3dec71d1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3dec71d1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-403c4eb6" data-id="403c4eb6" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-407c43d9 elementor-widget elementor-widget-spacer" data-id="407c43d9" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-590b78aa elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="590b78aa" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4719cd1c" data-id="4719cd1c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1ca7fb53 elementor-widget elementor-widget-heading" data-id="1ca7fb53" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">At the Beginning: The Biological Neuron</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2d76817a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2d76817a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4048c73e" data-id="4048c73e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-559651c3 elementor-widget elementor-widget-text-editor" data-id="559651c3" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Numbering around 86 billion and connected by thousands or even tens of thousands of synapses, these highly specialized cells, encoded in our genetic heritage for billions of years, are called neurons.</p><p>Assembled into a network, these neurons, which we classify as &#8220;biological&#8221; in contrast to &#8220;artificial,&#8221; generate human thought and what we label as intelligence. However, they are not the only brain cells in action. Other cell types play a fundamental role and contribute to the neuronal process, with their essential presence being indispensable to the very existence of neurons.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-161a4c0c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="161a4c0c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-10adf631" data-id="10adf631" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4e6b03b6 elementor-widget elementor-widget-heading" data-id="4e6b03b6" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-medium">The structure</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-704d9e99 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="704d9e99" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-50145066" data-id="50145066" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5543c685 elementor-widget elementor-widget-text-editor" data-id="5543c685" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The fundamental structure of the nervous system, consisting of interconnected excitable cells, plays a crucial role in the transmission of information within our neural network. It comprises several key components that orchestrate its function.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-540aefbe elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="540aefbe" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1258fa53" data-id="1258fa53" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-62228405 elementor-widget elementor-widget-text-editor" data-id="62228405" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><strong>The dendrites</strong> act as interfaces with the environment, forming the neuron&#8217;s input. In large numbers, these extensions respond to various stimuli, such as light at the eyes or pressure on the skin, generating electrical discharges, also called action potentials, directed toward the cell body. The synapse, the connection point between neurons, plays a crucial role at this juncture, where the neuron receives signals from previous neurons or from the outside. These signals, whether inhibitory or excitatory (+1 or -1), converge onto the neuron, and when their sum exceeds a critical threshold, the neuron activates, thus producing an electrical signal.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5d239f83 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5d239f83" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-205e94db" data-id="205e94db" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-605f5b9a elementor-widget elementor-widget-text-editor" data-id="605f5b9a" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><strong>The cell body</strong>, central to the process, performs a summation of the intensity of electrical influx from all dendrites. If this sum exceeds a critical threshold, the neuron activates and generates an electrical discharge transmitted to the axon, the neuron&#8217;s single output pathway. This critical threshold, determining supra-threshold excitation, holds big significance.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-314a3dfb elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="314a3dfb" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7399aad7" data-id="7399aad7" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3fe5e2c2 elementor-widget elementor-widget-text-editor" data-id="3fe5e2c2" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><strong>The axon</strong>, as the common final pathway, branches into multiple extensions, connecting the neuron to other neurons through the following dendrites and synapses. These points of connection, anatomically represented as synaptic clefts, are essential for the transfer of information between neurons. The axon&#8217;s termination, marked by neurotransmitter vesicles, releases these chemical messengers into the synaptic cleft. In turn, the dendrite of the next neuron, equipped with receptors, binds the neurotransmitters, thus triggering the formation of an electrical current in the dendrite.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-50385d4f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="50385d4f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-55b23d22" data-id="55b23d22" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-567907ee elementor-widget elementor-widget-text-editor" data-id="567907ee" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Regarding <strong>the information</strong> transmitted by the neuron, it is important to understand its electrochemical dualism. Initially created in electrical form at the dendrites in response to a stimulus, the information propagates through the cell body to the axon. At its termination, the electrical influx triggers the release of neurotransmitters, transforming the information into a chemical form at the synapse.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5704ce9d elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5704ce9d" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-19185102" data-id="19185102" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3965fe47 elementor-widget elementor-widget-image" data-id="3965fe47" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="850" height="616" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Representation-dun-neurone-biologique.png" class="attachment-large size-large wp-image-6262" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Representation-dun-neurone-biologique.png 850w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Representation-dun-neurone-biologique-300x217.png 300w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Representation-dun-neurone-biologique-768x557.png 768w" sizes="(max-width: 850px) 100vw, 850px" />											<figcaption class="widget-image-caption wp-caption-text">Simplified neuron representation</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-1107ab6e" data-id="1107ab6e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1c216f77 elementor-widget elementor-widget-image" data-id="1c216f77" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="683" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-westworld-episode-9-ss02-1024x683.webp" class="attachment-large size-large wp-image-6275" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-westworld-episode-9-ss02-1024x683.webp 1024w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-westworld-episode-9-ss02-300x200.webp 300w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-westworld-episode-9-ss02-768x512.webp 768w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-westworld-episode-9-ss02.webp 1440w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: HBO</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1b6e3c07 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1b6e3c07" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-51bcdbe8" data-id="51bcdbe8" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1bae50f2 elementor-widget elementor-widget-text-editor" data-id="1bae50f2" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>It is important to emphasize that this information flows in only one specific direction, from the dendrites to the axon. The dendrite captures the signal, and the axon broadcasts it, creating unidirectionality in the flow of neuronal information. This subtle electrochemical dance within the neuron forms the foundation of our understanding, thoughts, and interaction with the world around us.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2cddd5b4 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2cddd5b4" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4cf84f46" data-id="4cf84f46" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2b4266f8 elementor-widget elementor-widget-heading" data-id="2b4266f8" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-medium">How does it Works ? </h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-21b4684a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="21b4684a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-71c70e3" data-id="71c70e3" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-20775a9c elementor-widget elementor-widget-text-editor" data-id="20775a9c" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>As the pivot of the nervous system, it reveals itself as the master cell capable of transmitting electrochemical signals throughout the organism. These signals, resulting from depolarizations of the plasma membrane and the release of chemical molecules at connection points with other cells, form the foundation of neurotransmission.</p><p>Each neuron, dedicated to specific tasks, contributes to a complex network that enables diverse functions such as memory, motor skills, learning ease, and even speech recognition, among others.</p><p>The variety of neurons, reflecting the diversity of roles they fulfill, makes them essential actors in the complex orchestration of the functions of the nervous system. Through their extensions, the dendrites and the axon, these cells establish vital connections with innervated organs and other neurons, consolidating their central role in the functions of the nervous system.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4d881e17 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4d881e17" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-79b1c168" data-id="79b1c168" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-41408f91 elementor-widget elementor-widget-spacer" data-id="41408f91" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6431439f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6431439f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7879012b" data-id="7879012b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-904dcca elementor-widget elementor-widget-heading" data-id="904dcca" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">The First Artificial Neuron in History</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1dac8663 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1dac8663" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-25488b95" data-id="25488b95" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6b3f5472 elementor-widget elementor-widget-text-editor" data-id="6b3f5472" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Ladies and gentlemen, it is now appropriate to introduce to you the famous artificial neuron, a major concept in computer science inaugurated by W. McCulloch and W. Pitt as early as 1943, a bygone era.</p><p>Although devoid of physical reality, this remarkable element provides a simple algorithmic replica of its biological counterpart, thus marking the beginning of a fascinating journey into the world of artificial intelligence.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-7fd33fe2 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="7fd33fe2" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1aeb0668" data-id="1aeb0668" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-62e06c8 elementor-widget elementor-widget-heading" data-id="62e06c8" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-medium">Its Structure and Functioning

</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-32431538 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="32431538" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4890903c" data-id="4890903c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5bc12cc7 elementor-widget elementor-widget-text-editor" data-id="5bc12cc7" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The structure of the artificial neuron is characterized by several key elements, including input and synaptic weights, the cell body, and the output. Each of these aspects contributes crucially to information processing within artificial neural networks. Let&#8217;s explore each of them in detail.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4fdba021 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4fdba021" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1dd7f0dd" data-id="1dd7f0dd" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1992ffe6 elementor-widget elementor-widget-heading" data-id="1992ffe6" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">We Collect the Information​</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-460d839e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="460d839e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-6f91ad30" data-id="6f91ad30" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-52caeae1 elementor-widget elementor-widget-text-editor" data-id="52caeae1" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Let&#8217;s start with the input. In computer science, the input represents the data to be processed, such as a sequence of characters, an image, a gold density, or even a video.</p><p>Each artificial neuron receives a variable number of inputs from upstream neurons, which we&#8217;ll denote as X. These inputs are signals that activate the neuron and are accompanied by weights (represented by &#8220;w&#8221; for &#8220;weight&#8221;) that quantify the strength of the connection.</p><p>The set of these inputs forms the first stage of information processing by the artificial neuron.</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-75356533" data-id="75356533" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-72c8a3a5 elementor-widget elementor-widget-image" data-id="72c8a3a5" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="191" height="300" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Inputs-191x300.png" class="attachment-medium size-medium wp-image-6269" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Inputs-191x300.png 191w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Inputs-652x1024.png 652w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Inputs.png 666w" sizes="(max-width: 191px) 100vw, 191px" />											<figcaption class="widget-image-caption wp-caption-text">Representation of input variables and associated weights</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-394f0e71 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="394f0e71" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1be2abad" data-id="1be2abad" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-581338b elementor-widget elementor-widget-heading" data-id="581338b" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">The Artificial Cell Body: a Mathematical Function</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3b2f1043 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3b2f1043" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-280c5a85" data-id="280c5a85" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-37965297 elementor-widget elementor-widget-text-editor" data-id="37965297" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><strong>The Aggregation Phase</strong>: Inspired by the functioning of dendrites, synaptic weights are assigned to each input value, representing the relative importance of different connections to the neuron. The inputs, thus weighted, are then summed, incorporating a bias (a constant value). For now, we consider synaptic weights of either +1 (excitatory) or -1 (inhibitory), but we will generalize this later.</p><p><strong>The Activation Phase</strong>: Following the aggregation phase, an activation function determines whether the neuron should be activated. Initially, we choose a threshold function (known as the Heaviside step function). This function returns an output \(y=1\) if the previous weighted sum exceeds a threshold value and 0 otherwise (here is a graphical representation).</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-5858b99d" data-id="5858b99d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3887f34a elementor-widget elementor-widget-image" data-id="3887f34a" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="588" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-functions-1024x588.png" class="attachment-large size-large wp-image-6270" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-functions-1024x588.png 1024w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-functions-300x172.png 300w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-functions-768x441.png 768w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-functions.png 1142w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Representation of the summation and activation function</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-254a53a4 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="254a53a4" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2fe4ddb" data-id="2fe4ddb" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4373f74c elementor-widget elementor-widget-text-editor" data-id="4373f74c" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Activation functions play a essential role in information processing and can take various forms, including the step function, the sigmoid function (remember the sigmoid), the rectified linear unit (ReLU) function, or even the hyperbolic tangent function.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-24d28c8f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="24d28c8f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-25 elementor-top-column elementor-element elementor-element-53d7435e" data-id="53d7435e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4e6f454b elementor-widget elementor-widget-image" data-id="4e6f454b" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="684" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-seuil-1024x684.png" class="attachment-large size-large wp-image-6331" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-seuil-1024x684.png 1024w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-seuil-300x200.png 300w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-seuil-768x513.png 768w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-seuil.png 1192w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-25 elementor-top-column elementor-element elementor-element-610c2488" data-id="610c2488" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-22eb178 elementor-widget elementor-widget-image" data-id="22eb178" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="682" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-sigmoid-1024x682.png" class="attachment-large size-large wp-image-6333" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-sigmoid-1024x682.png 1024w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-sigmoid-300x200.png 300w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-sigmoid-768x511.png 768w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-sigmoid.png 1184w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-25 elementor-top-column elementor-element elementor-element-7b1303f" data-id="7b1303f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6021f37f elementor-widget elementor-widget-image" data-id="6021f37f" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="685" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-relu-1024x685.png" class="attachment-large size-large wp-image-6334" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-relu-1024x685.png 1024w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-relu-300x201.png 300w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-relu-768x514.png 768w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-relu.png 1190w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-25 elementor-top-column elementor-element elementor-element-16481ad" data-id="16481ad" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-17674ddd elementor-widget elementor-widget-image" data-id="17674ddd" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="687" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-tanh-1024x687.png" class="attachment-large size-large wp-image-6332" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-tanh-1024x687.png 1024w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-tanh-300x201.png 300w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-tanh-768x515.png 768w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-tanh.png 1186w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-324b46f5 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="324b46f5" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4f909fc4" data-id="4f909fc4" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-45edea70 elementor-widget elementor-widget-heading" data-id="45edea70" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">
Processed Information</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3d75b394 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3d75b394" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4591dc67" data-id="4591dc67" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3969033e elementor-widget elementor-widget-text-editor" data-id="3969033e" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The output of the artificial neuron is the final result of the information processing contained in the input data X, either y=0 (activated) or y=1 (deactivated). It can be transmitted to other neurons, thus forming a complex chain of calculations that characterizes the overall operation of artificial neural networks.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-15f0a7f9 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="15f0a7f9" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-48b35623" data-id="48b35623" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3f1615b9 elementor-widget elementor-widget-image" data-id="3f1615b9" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="850" height="616" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Representation-dun-neurone-biologique.png" class="attachment-large size-large wp-image-6262" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Representation-dun-neurone-biologique.png 850w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Representation-dun-neurone-biologique-300x217.png 300w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Representation-dun-neurone-biologique-768x557.png 768w" sizes="(max-width: 850px) 100vw, 850px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-5d19dff2" data-id="5d19dff2" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-440c71c1 elementor-widget elementor-widget-image" data-id="440c71c1" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="682" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-0_Yu2EmUvwW2-2sbtK-1024x682.jpg" class="attachment-large size-large wp-image-6308" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-0_Yu2EmUvwW2-2sbtK-1024x682.jpg 1024w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-0_Yu2EmUvwW2-2sbtK-300x200.jpg 300w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-0_Yu2EmUvwW2-2sbtK-768x512.jpg 768w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-0_Yu2EmUvwW2-2sbtK.jpg 1400w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: HBO</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-209be50b" data-id="209be50b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2b954a97 elementor-widget elementor-widget-image" data-id="2b954a97" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="523" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-neuron-1024x523.png" class="attachment-large size-large wp-image-6271" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-neuron-1024x523.png 1024w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-neuron-300x153.png 300w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-neuron-768x392.png 768w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-neuron.png 1132w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-76c13be2 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="76c13be2" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7348dcdc" data-id="7348dcdc" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-568760c4 elementor-widget elementor-widget-text-editor" data-id="568760c4" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>This initial model of the artificial neuron was later termed the &#8220;Threshold Logic Unit&#8221; due to its ability to process only logical inputs of either 0 or 1. Researchers successfully demonstrated that this model could replicate certain logical functions such as the AND and OR gates. By interconnecting multiple units in a manner similar to the connections between neurons in our brains, it seemed possible to solve virtually any boolean logic problem.</p><p>Despite the excessive enthusiasm generated by this announcement, I want to assure you that, at the time, a significant portion of the scientific community believed that we could develop artificial intelligences capable of entirely replacing humans.</p><p>Scientist in the audience, looking at the hosts next to Dr. Ford: &#8220;They weren&#8217;t entirely wrong!&#8221; <em>Laughter in the room</em>.</p><p>Dr. Ford resumes with a smile: Indeed, not entirely wrong, just that their timeline wasn&#8217;t suited to this prediction. Nevertheless, this anticipation did not materialize directly. Although this model laid the groundwork for what is now known as Deep Learning, it had several limitations, notably the absence of a learning algorithm. Thus, users had to manually determine the values of the parameters &#8220;W&#8221; if they wished to apply this model to real-world applications.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-40ec9e1d elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="40ec9e1d" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7b668020" data-id="7b668020" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7ef10102 elementor-widget elementor-widget-spacer" data-id="7ef10102" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5147c501 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5147c501" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4f0c4b2" data-id="4f0c4b2" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-307ba29f elementor-widget elementor-widget-heading" data-id="307ba29f" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-medium">A Simple Example</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3681acae elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3681acae" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5c6dd8d0" data-id="5c6dd8d0" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4d4d69c7 elementor-widget elementor-widget-text-editor" data-id="4d4d69c7" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Normally, these are basics, but let&#8217;s start with a brief explanation of Boolean algebra for the two scientists in the background.</p><p>Boolean algebra, named after the British mathematician George Boole, is a branch of mathematics that focuses on the representation and manipulation of logical information through operations on variables called booleans. These variables can only take two values, typically denoted as 0 and 1, representing the states false (no) and true (yes), respectively.</p><p>Widely used in computer science, electronics, and other information processing-related fields, Boolean algebra is fundamental to the design of logical circuits, algorithms, and serves as the basis for propositional logic.</p><p>In Boolean algebra, the fundamental operations are logical AND, logical OR, and logical NOT. These operations apply to pairs of Boolean variables and produce a Boolean result.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-604fa7cc elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="604fa7cc" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4e48edf2" data-id="4e48edf2" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4d481c8b elementor-widget elementor-widget-heading" data-id="4d481c8b" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">
An Example within an Example​</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5582ba9a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5582ba9a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-30736621" data-id="30736621" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1011abbc elementor-widget elementor-widget-text-editor" data-id="1011abbc" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Now, to better understand these operations, let&#8217;s consider an example of a room with a switch A and a sensor B detecting the presence of people, controlling the lighting.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6e427780 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6e427780" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-418432f8" data-id="418432f8" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-288bf632 elementor-widget elementor-widget-text-editor" data-id="288bf632" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Switch A <strong>AND</strong> Sensor B (A <strong>AND</strong> B):<br />&#8211; If switch A is on (A = 1) AND sensor B detects people (B = 1), then condition C &#8220;the light turns on&#8221; is TRUE (C = 1).<br />&#8211; If switch A is off (A = 0), even if sensor B detects people (B = 1), condition C is FALSE (C = 0).<br />&#8211; If switch A is on (A = 1) but sensor B does not detect people (B = 0), condition C is also FALSE (C=0).<br />&#8211; If both switch A and sensor B are off (A=0 and B=0), condition C is FALSE (C=0).</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-647785d8 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="647785d8" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-16b4dfbe" data-id="16b4dfbe" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-707430cc elementor-widget elementor-widget-text-editor" data-id="707430cc" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Switch A <strong>OR</strong> Sensor B (A <strong>OR</strong> B):<br />&#8211; If switch A is on (A = 1) OR sensor B detects people (B = 1), then condition C is TRUE (C=1).<br />&#8211; If switch A is off (A = 0) OR sensor B detects people (B = 1), then condition C is TRUE (C=1).<br />&#8211; If both, if switch A is on (A = 1) or sensor B does not detect people (B = 0), then the condition is TRUE (C=1).<br />&#8211; If switch A is off (A = 0) or sensor B does not detect people (B=0), then condition C is FALSE (C = 0).</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6f43c0ca elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6f43c0ca" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2c8fbff0" data-id="2c8fbff0" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1020585d elementor-widget elementor-widget-text-editor" data-id="1020585d" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>In these examples, the AND operation requires the switch to be on and people to be detected for the condition to be true. Conversely, the OR operation requires either the switch to be on or people to be detected for the condition to be true.</p><p>We can summarize everything in these two tables:</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-17032a3e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="17032a3e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-2e5a5766" data-id="2e5a5766" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-17a12752 elementor-widget elementor-widget-shortcode" data-id="17a12752" data-element_type="widget" data-e-type="widget" data-widget_type="shortcode.default">
				<div class="elementor-widget-container">
							<div class="elementor-shortcode">
<table id="tablepress-37" class="tablepress tablepress-id-37">
<thead>
<tr class="row-1">
	<th class="column-1">A</th><th class="column-2">B</th><th class="column-3">A AND B</th>
</tr>
</thead>
<tbody class="row-striping row-hover">
<tr class="row-2">
	<td class="column-1">0</td><td class="column-2">0</td><td class="column-3">0</td>
</tr>
<tr class="row-3">
	<td class="column-1">0</td><td class="column-2">1</td><td class="column-3">0</td>
</tr>
<tr class="row-4">
	<td class="column-1">1</td><td class="column-2">0</td><td class="column-3">0</td>
</tr>
<tr class="row-5">
	<td class="column-1">1</td><td class="column-2">1</td><td class="column-3">1</td>
</tr>
</tbody>
</table>
</div>
						</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-79d5f6a3" data-id="79d5f6a3" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6bd964ca elementor-widget elementor-widget-shortcode" data-id="6bd964ca" data-element_type="widget" data-e-type="widget" data-widget_type="shortcode.default">
				<div class="elementor-widget-container">
							<div class="elementor-shortcode">
<table id="tablepress-38" class="tablepress tablepress-id-38">
<thead>
<tr class="row-1">
	<th class="column-1">A</th><th class="column-2">B</th><th class="column-3">A OR B</th>
</tr>
</thead>
<tbody class="row-striping row-hover">
<tr class="row-2">
	<td class="column-1">0</td><td class="column-2">0</td><td class="column-3">0</td>
</tr>
<tr class="row-3">
	<td class="column-1">0</td><td class="column-2">1</td><td class="column-3">1</td>
</tr>
<tr class="row-4">
	<td class="column-1">1</td><td class="column-2">0</td><td class="column-3">1</td>
</tr>
<tr class="row-5">
	<td class="column-1">1</td><td class="column-2">1</td><td class="column-3">1</td>
</tr>
</tbody>
</table>
</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-145f12b0 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="145f12b0" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4f98eb8e" data-id="4f98eb8e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-ded5b12 elementor-widget elementor-widget-text-editor" data-id="ded5b12" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>These basic operations can be combined to form more complex logical expressions, allowing for the representation of conditions (not just two, as in the previous example) and logical reasoning.</p><p>Boolean algebra finds practical applications in the design of logic circuits, control systems, computer science, and other fields where binary logic is used to model states and decisions.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-18d6df53 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="18d6df53" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f1f1204" data-id="f1f1204" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-576e1d5e elementor-widget elementor-widget-spacer" data-id="576e1d5e" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-7ac812ad elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="7ac812ad" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3219d6f0" data-id="3219d6f0" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3895d341 elementor-widget elementor-widget-heading" data-id="3895d341" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-medium">Revenons au Neurone</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5112f922 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5112f922" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-28ba8e1e" data-id="28ba8e1e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-16ba151f elementor-widget elementor-widget-text-editor" data-id="16ba151f" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The scientist from the background raises his hand to ask a question: &#8220;But what does a neuron have to do with Boolean algebra?&#8221;</p><p>Dr. Ford delves into the explanations: &#8220;Let&#8217;s simplify and consider a formal neuron that simply accepts two input variables \(x_1\) and \(x_2\) arranged in an input vector (this is the information the neuron receives).</p><p>\begin{equation*} \mathbf{X}=\left[ \begin{array}{c} x_{1} \\ x_{2} \end{array} \right]. \end{equation*}</p><p>Knowing that the inputs can only take the values 0 or 1 in our case, we have only 4 possible input vectors:</p><p>\begin{equation*} \left[ \begin{array}{c} 0 \\ 0 \end{array} \right]\quad \left[ \begin{array}{c} 0 \\ 1 \end{array} \right]\quad \left[ \begin{array}{c} 1 \\ 0 \end{array} \right]\quad \left[ \begin{array}{c} 1 \\ 1 \end{array} \right] \end{equation*}&#8221;</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6dd490e7 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6dd490e7" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-c177caa" data-id="c177caa" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-47546f31 elementor-widget elementor-widget-text-editor" data-id="47546f31" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>They are also defined by two synaptic parameters \(w_1\) and \(w_2\), which are also placed in a vector, denoted as \(\mathbf{W}\).</p><p>\begin{equation*} \mathbf{W}=\left[ \begin{array}{c} w_{1} \\ w_{2} \end{array} \right]. \end{equation*}</p><p>These can take values of either 1 or -1. So, as before, we have only 4 possible weight vectors:</p><p>\begin{equation*} \left[ \begin{array}{c} -1 \\ -1 \end{array} \right]\quad \left[ \begin{array}{c} -1 \\ 1 \end{array} \right]\quad \left[ \begin{array}{c} 1 \\ -1 \end{array} \right]\quad \left[ \begin{array}{c} 1 \\ 1 \end{array} \right] \end{equation*}</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-372a1f9a" data-id="372a1f9a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-345cd62a elementor-widget elementor-widget-image" data-id="345cd62a" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="800" height="450" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-smartphone-pliable-westworld.jpg" class="attachment-large size-large wp-image-6313" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-smartphone-pliable-westworld.jpg 800w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-smartphone-pliable-westworld-300x169.jpg 300w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-smartphone-pliable-westworld-768x432.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: HBO</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-204ef9e4 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="204ef9e4" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-fbda8b3" data-id="fbda8b3" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-20ad0d94 elementor-widget elementor-widget-text-editor" data-id="20ad0d94" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Now we can begin <strong>the aggregation phase</strong>, which first takes an input, associates it with a corresponding weight, sums it up, and adds a bias denoted as b. Here is the result:</p><p>\[ \Sigma = w_1 x_1 + w_2 x_2 + b \]</p><p>We place all of this in a table.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3b6e1dd9 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3b6e1dd9" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-613bf2d6" data-id="613bf2d6" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-57ebfb2a elementor-widget elementor-widget-text-editor" data-id="57ebfb2a" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Then we move on to <strong>the activation phase</strong>, meaning we introduce the obtained value \(\Sigma\) into our threshold function, denoted as H, which determines the neuron&#8217;s output as follows:</p><p>\[ y = H(\Sigma + b) \]</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-17c0ebb4 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="17c0ebb4" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4a95b322" data-id="4a95b322" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2d585dac elementor-widget elementor-widget-text-editor" data-id="2d585dac" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Applying a similar reasoning, we observe that a neuron with a single input can either have no effect (identity neuron) or perform a logical NOT operation.</p><p>By establishing a connection with Boolean algebra, we have demonstrated how this model can perform fundamental logical operations, such as OR and AND.</p><p>However, despite its advancements, this model alone has two major limitations: firstly, it is limited to simple operations, and secondly, it lacks any learning mechanism. As illustrated earlier, the only operations we can perform are OR and AND, and we must manually determine the weight values to carry out these specific logical operations. These limitations have motivated the further development of more sophisticated models in the field of Deep Learning. By networking these neuron models, we gain the ability to solve virtually any Boolean logic problem. Furthermore, if we allow the model to learn autonomously, it becomes possible to address more complex issues and significantly expand its capabilities.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-872d6fe elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="872d6fe" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-10b2cf92" data-id="10b2cf92" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-45181443 elementor-widget elementor-widget-spacer" data-id="45181443" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-7f6dd949 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="7f6dd949" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6e5246ee" data-id="6e5246ee" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5e6d1252 elementor-widget elementor-widget-heading" data-id="5e6d1252" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">The advent of the Perceptron</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-348677f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="348677f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3a180d81" data-id="3a180d81" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-57083638 elementor-widget elementor-widget-text-editor" data-id="57083638" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The perceptron, designed by the American psychologist Frank Rosenblatt around fifteen years after the introduction of the formal neuron concept by McCulloch and Pitt, represents a significant advancement with the introduction of the first Deep Learning learning algorithm.</p><p>The perceptron model shares a striking similarity with the one we have just studied. In fact, the only difference between the perceptron and the previous formal neuron lies in the addition of a learning algorithm that enables it to determine the values of its parameters W, in order to achieve the desired outputs y, thus eliminating the need for manual search by humans.</p><p>F. Rosenblatt drew inspiration from Hebb&#8217;s law in neuroscience, suggesting that the strengthening of synaptic connections between two biological neurons occurs when they are excited together, a phenomenon known as the &#8220;cells that fire together, wire together&#8221; principle. This synaptic plasticity is crucial in the construction of memory and learning.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-774b6dec elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="774b6dec" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6f0f2846" data-id="6f0f2846" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-227e1030 elementor-widget elementor-widget-heading" data-id="227e1030" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-medium">The Hebb's Law</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-788f6b0b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="788f6b0b" data-element_type="section" data-e-type="section" data-settings="{&quot;background_background&quot;:&quot;classic&quot;}">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6207a567" data-id="6207a567" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-688dd1b8 elementor-widget elementor-widget-text-editor" data-id="688dd1b8" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The learning algorithm of the perceptron involves training the artificial neuron on reference data (X, y). With each activation of the input X simultaneously with the presence of the output y in the data, the parameters W are strengthened. F. Rosenblatt formulated this idea with the following equation:<br />\[ W^* = W + \delta(y_{\text{ref}} &#8211; y)X \]<br />where the new weights \( W^* \) are updated with a learning rate \( \delta \). \( y_{\text{ref}} \) is the reference output, y is the output produced by the neuron, and X is the neuron&#8217;s input.</p><p>This formula adjusts the weights to minimize the difference between the expected output and the output produced by the neuron. Thus, if the neuron produces an output different from the expected one (e.g., y=0 instead of y=1), the weights associated with the activated inputs are increased. This process continues until the neuron&#8217;s output converges to the expected output.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5b83b880 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5b83b880" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-47effd45" data-id="47effd45" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1265987c elementor-widget elementor-widget-heading" data-id="1265987c" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-medium">Model Limitations</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5c6058db elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5c6058db" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-4aaf7c93" data-id="4aaf7c93" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-959e9c9 elementor-widget elementor-widget-text-editor" data-id="959e9c9" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Ladies and gentlemen of the scientific community, let us now consider a perceptron composed solely of two inputs \(x_1\) and \(x_2\). Its aggregation function is thus \(f(x_1, x_2) = w_1x_1 + w_2x_2\), and, due to its form, it can model linear relationships. However, this simplicity comes with limitations when faced with nonlinear problems.</p><p>Dr. Ford astutely points out, &#8220;The perceptron, at its core, is like a tool with a narrow perspective. It may succeed in making rough predictions, but it struggles to grasp the complexity of nonlinear relationships present in the real world.&#8221;</p><p>A scientist from the audience, displaying a profound understanding, remarks, &#8220;It&#8217;s like trying to predict the behavior of a circle by drawing only a line with a ruler.&#8221;</p><p>Dr. Ford, smiling, responds, &#8220;Exactly! That&#8217;s why we are exploring more complex approaches to model the richness of relationships.&#8221;</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-2a0333a2" data-id="2a0333a2" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-bf5b5e2 elementor-widget elementor-widget-image" data-id="bf5b5e2" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="773" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Frontiere-lineaire-1024x773.png" class="attachment-large size-large wp-image-6229" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Frontiere-lineaire-1024x773.png 1024w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Frontiere-lineaire-300x227.png 300w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Frontiere-lineaire-768x580.png 768w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Frontiere-lineaire.png 1266w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Classification with a perceptron</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-531c34d2 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="531c34d2" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7b27cffe" data-id="7b27cffe" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-50c90787 elementor-widget elementor-widget-heading" data-id="50c90787" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-medium">A few more Perceptrons</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4204912d elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4204912d" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-493d62b9" data-id="493d62b9" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-59855a6d elementor-widget elementor-widget-text-editor" data-id="59855a6d" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>To overcome this initial problem, let&#8217;s first introduce three perceptrons that we will connect together. The first two will each receive inputs \(x_1\) and \(x_2\), perform their calculations based on their parameters, and then send an output \(y\) to the third perceptron. The third one will also perform its own calculations to produce a final output.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-521a73cd elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="521a73cd" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-68821879" data-id="68821879" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5ec3b72 elementor-widget elementor-widget-image" data-id="5ec3b72" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="576" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-06westworld-videoSixteenByNineJumbo1600-1024x576.jpg" class="attachment-large size-large wp-image-6259" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-06westworld-videoSixteenByNineJumbo1600-1024x576.jpg 1024w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-06westworld-videoSixteenByNineJumbo1600-300x169.jpg 300w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-06westworld-videoSixteenByNineJumbo1600-768x432.jpg 768w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-06westworld-videoSixteenByNineJumbo1600-1536x864.jpg 1536w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-06westworld-videoSixteenByNineJumbo1600-800x450.jpg 800w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-06westworld-videoSixteenByNineJumbo1600.jpg 1600w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: HBO</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-7e42d7b4" data-id="7e42d7b4" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4e529e51 elementor-widget elementor-widget-text-editor" data-id="4e529e51" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p> </p><p> </p><p>Try programming three neurons as described above, and you can plot the graphical representation of the final output based on the inputs \(x_1\) and \(x_2\). This will yield a nonlinear model, much more interesting.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-273d915b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="273d915b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-239b6d31" data-id="239b6d31" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-31db75d7 elementor-widget elementor-widget-text-editor" data-id="31db75d7" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>This model will then be your first artificial neural network, consisting of 3 neurons distributed across two layers: an input layer and an output layer. You can add as many layers and neurons as you want, but the more you add, the more computational time and resources will be required for simulating complex results. You can also change the topology, meaning the nature of connections between neurons. This will depend on the problem at hand. That&#8217;s what we will explore next.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-487aa9fe elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="487aa9fe" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-670b147e" data-id="670b147e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-51a57b4e elementor-widget elementor-widget-heading" data-id="51a57b4e" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">Neural Networks</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-40217f8d elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="40217f8d" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6561c34e" data-id="6561c34e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3fb5156a elementor-widget elementor-widget-text-editor" data-id="3fb5156a" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Neural networks, also known as artificial neural networks, are computational models inspired by the structure and functioning of the human brain. They consist of interconnected artificial neurons organized into layers. Each neuron receives inputs, performs processing operations, and then produces an output. These outputs are then transmitted to the neurons in the next layer, creating a layered architecture.</p><p>Neural networks typically include three main types of layers:</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-7d21e5c4 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="7d21e5c4" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-1c1adabb" data-id="1c1adabb" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-13215b6b elementor-widget elementor-widget-text-editor" data-id="13215b6b" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>1. <strong>Input Layer:</strong> Receiving input data from the system, each node in this layer represents a feature or input variable.</p><p>2. <strong>Hidden Layers:</strong> These layers perform data transformation operations. Each node in a hidden layer takes inputs, applies weights and biases, and produces an output. They are really important for the network to learn complex representations of the data.</p><p>3. <strong>Output Layer:</strong> Producing the final prediction or classification, this layer synthesizes the information learned by the hidden layers to generate the ultimate output.</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-6e510c02" data-id="6e510c02" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-51740747 elementor-widget elementor-widget-image" data-id="51740747" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="850" height="616" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Representation-dun-neurone-biologique-1.png" class="attachment-large size-large wp-image-6327" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Representation-dun-neurone-biologique-1.png 850w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Representation-dun-neurone-biologique-1-300x217.png 300w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Representation-dun-neurone-biologique-1-768x557.png 768w" sizes="(max-width: 850px) 100vw, 850px" />											<figcaption class="widget-image-caption wp-caption-text">Representation of a two-layer neural network (5 neurons in each layer) with 3 input neurons and 1 output neuron</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-29bd2fe6 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="29bd2fe6" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-55eb8d21" data-id="55eb8d21" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1e2a3201 elementor-widget elementor-widget-text-editor" data-id="1e2a3201" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The choice of hidden units is an active area of research in machine learning. The number of hidden layers is referred to as the depth of the neural network. The question of how many layers make a network &#8220;deep&#8221; does not have a single answer. Generally, deeper networks have the capacity to learn more complex functions.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-f5952d4 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="f5952d4" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-233c3ab3" data-id="233c3ab3" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-61e84d6 elementor-widget elementor-widget-text-editor" data-id="61e84d6" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>There are several types of neural networks based on the topology of connections between neurons. The topology can vary depending on the specific architecture of the network, but some regularities are commonly observed. Here are some examples of topologies:</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6b72098d elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6b72098d" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-17b18cb7" data-id="17b18cb7" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-9219e61 elementor-widget elementor-widget-text-editor" data-id="9219e61" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>• <strong>Multi-layer perceptron (MLP)</strong>: Each neuron in a layer is connected to all neurons in the next layer. It is a simple configuration used, notably, for image classification.</p><p>• <strong>Convolutional Neural Network  (CNN)</strong>: Specialized in image processing, it uses filters to analyze local parts, reducing the number of parameters and extracting important features.</p><p>• <strong>Recurrent Neural Network (RNN)</strong>: Designed to process sequential data, it uses recurrent connections to consider the temporal sequence of data.</p><p>• <strong>Long Short-Term Memory (LSTM)</strong>: An extension of RNNs, LSTMs handle longer sequences by mitigating the vanishing gradient problem.</p><p>• <strong>The Autoencoder Network</strong>: Intended for unsupervised learning, the autoencoder network consists of an encoder layer and a decoder layer. Its goal is to reproduce the input while generating a latent representation. Emphasis is on dimension reduction, particularly useful with large volumes of data. By substituting this data with a representation in a lower-dimensional space, processor efficiency is optimized, enhancing the model&#8217;s effectiveness (discussed in another article).</p><p>• <strong>Residual Neural Network</strong> (ResNet): Introduced to address the vanishing gradient problem, ResNets use residual connections to facilitate learning of deeper representations.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3936ca3b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3936ca3b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6b62aef9" data-id="6b62aef9" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6a0fdd7c elementor-widget elementor-widget-text-editor" data-id="6a0fdd7c" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>In this exploration, we will particularly focus on feedforward neural networks. It is the first type of artificial neural network, the simplest one, where information moves only forward, from input nodes to output nodes, without cycles or loops (it is said to be acyclic, distinguishing it from recurrent networks). The single perceptron we have already seen, and its well-known extension, the multi-layer perceptron, which we will delve into shortly.</p><p>But by the way, I forgot, how do we train a neural network to do what we ask of it, meaning how do we find the parameters \(w\) and \(b\) to obtain the right model?</p><p><em>The entire audience remains silent.</em></p><p>Don&#8217;t worry; we are about to discuss that now.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1fccb6d4 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1fccb6d4" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a0a8c3e" data-id="a0a8c3e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-77b5556e elementor-widget elementor-widget-heading" data-id="77b5556e" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">Cognitive Programming of Hosts for Handwritten Digit Recognition: The Multilayer Perceptron</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2430130d elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2430130d" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-181a9c4e" data-id="181a9c4e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1ed6e70c elementor-widget elementor-widget-text-editor" data-id="1ed6e70c" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Before our hosts can excel in more advanced tasks, such as recognizing humans or even emotions, it is imperative to initiate them into the fundamentals, starting with the recognition of handwritten digits because, as the proverb goes, &#8220;Before learning to run, one must learn to walk.&#8221;</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-433f0fb7 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="433f0fb7" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-58110930" data-id="58110930" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7e24e8d elementor-widget elementor-widget-text-editor" data-id="7e24e8d" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p> </p><p> </p><p>To guide them in this (supervised) learning, we use a series of images of digits, each visually representing the correspondence between the handwritten form and the respective digit.</p><p>Next, our hosts are challenged to recognize the presented digits.</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-7c13ca5e" data-id="7c13ca5e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-17bda28 elementor-widget elementor-widget-image" data-id="17bda28" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="576" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Prospective_hosts_for_new_narratives-1024x576.webp" class="attachment-large size-large wp-image-6254" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Prospective_hosts_for_new_narratives-1024x576.webp 1024w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Prospective_hosts_for_new_narratives-300x169.webp 300w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Prospective_hosts_for_new_narratives-768x432.webp 768w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Prospective_hosts_for_new_narratives-1536x864.webp 1536w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Prospective_hosts_for_new_narratives-800x450.webp 800w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Prospective_hosts_for_new_narratives.webp 1920w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: HBO</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2a12435a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2a12435a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-602424cc" data-id="602424cc" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-58944eae elementor-widget elementor-widget-text-editor" data-id="58944eae" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>This classification model forms the first artificial neural network for our hosts, comprising an input layer, several hidden layers (to be determined), and an output layer. Such a multilayer network, where complexity can be increased by adding more layers and neurons, but it will require more computational time.</p><p>Now, let&#8217;s explore the process to which our hosts are subjected during their programming to master this task.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-92f84b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="92f84b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8515df4" data-id="8515df4" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-66804f60 elementor-widget elementor-widget-heading" data-id="66804f60" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-medium">Assimilation des Données d'Entraînement (DataSet)</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3259f4cc elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3259f4cc" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2316d493" data-id="2316d493" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7aec259d elementor-widget elementor-widget-text-editor" data-id="7aec259d" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Our hosts are supplied with training data, consisting of 60,000 examples of 28 pixel by 28 pixel resolution grayscale images of handwritten digits and their respective correspondences. This data is needed for teaching hosts to generalize from existing examples. And 10,000 test images of the same format to examine them, i.e. how well they have classified the images. Here are the numbers from 0 to 9:</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-470042c9 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="470042c9" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-25 elementor-top-column elementor-element elementor-element-19e06ba3" data-id="19e06ba3" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-95b4ba8 elementor-widget elementor-widget-image" data-id="95b4ba8" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="147" height="142" src="https://theeventhorizons.com/wp-content/uploads/2024/01/digit-0.png" class="attachment-large size-large wp-image-6208" alt="" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-25 elementor-top-column elementor-element elementor-element-6765843" data-id="6765843" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-22acd3c8 elementor-widget elementor-widget-image" data-id="22acd3c8" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="143" height="126" src="https://theeventhorizons.com/wp-content/uploads/2024/01/digit-1.png" class="attachment-large size-large wp-image-6210" alt="" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-25 elementor-top-column elementor-element elementor-element-5fc3286e" data-id="5fc3286e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-38432ec3 elementor-widget elementor-widget-image" data-id="38432ec3" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="147" height="126" src="https://theeventhorizons.com/wp-content/uploads/2024/01/digit-2.png" class="attachment-large size-large wp-image-6215" alt="" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-25 elementor-top-column elementor-element elementor-element-30aa4aaf" data-id="30aa4aaf" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4866aae7 elementor-widget elementor-widget-image" data-id="4866aae7" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="155" height="123" src="https://theeventhorizons.com/wp-content/uploads/2024/01/digit-3.png" class="attachment-large size-large wp-image-6214" alt="" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-492f8ae6 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="492f8ae6" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-25 elementor-top-column elementor-element elementor-element-5328415" data-id="5328415" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4e4df152 elementor-widget elementor-widget-image" data-id="4e4df152" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="147" height="124" src="https://theeventhorizons.com/wp-content/uploads/2024/01/digit-4.png" class="attachment-large size-large wp-image-6213" alt="" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-25 elementor-top-column elementor-element elementor-element-3b57fb52" data-id="3b57fb52" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-41575163 elementor-widget elementor-widget-image" data-id="41575163" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="167" height="131" src="https://theeventhorizons.com/wp-content/uploads/2024/01/digit-5.png" class="attachment-large size-large wp-image-6212" alt="" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-25 elementor-top-column elementor-element elementor-element-3790038f" data-id="3790038f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5b642a4b elementor-widget elementor-widget-image" data-id="5b642a4b" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="138" height="130" src="https://theeventhorizons.com/wp-content/uploads/2024/01/digit-6.png" class="attachment-large size-large wp-image-6211" alt="" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-25 elementor-top-column elementor-element elementor-element-5a296c68" data-id="5a296c68" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-60ab20a1 elementor-widget elementor-widget-image" data-id="60ab20a1" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="142" height="142" src="https://theeventhorizons.com/wp-content/uploads/2024/01/digit-7.png" class="attachment-large size-large wp-image-6218" alt="" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2ca46dd7 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2ca46dd7" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-25 elementor-top-column elementor-element elementor-element-5ade1e61" data-id="5ade1e61" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-8ef9bf4 elementor-widget elementor-widget-image" data-id="8ef9bf4" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="141" height="133" src="https://theeventhorizons.com/wp-content/uploads/2024/01/digit-8.png" class="attachment-large size-large wp-image-6217" alt="" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-25 elementor-top-column elementor-element elementor-element-5ed2bab8" data-id="5ed2bab8" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7e8bc774 elementor-widget elementor-widget-image" data-id="7e8bc774" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="143" height="145" src="https://theeventhorizons.com/wp-content/uploads/2024/01/digit-9.png" class="attachment-large size-large wp-image-6216" alt="" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-25 elementor-top-column elementor-element elementor-element-76a0980b" data-id="76a0980b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap">
							</div>
		</div>
				<div class="elementor-column elementor-col-25 elementor-top-column elementor-element elementor-element-4ad722d9" data-id="4ad722d9" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap">
							</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2146af3 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2146af3" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f619d57" data-id="f619d57" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-49225925 elementor-widget elementor-widget-text-editor" data-id="49225925" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Such images are simply arrays of data containing numbers from 0 to 255. Each of the 60,000 arrays is &#8220;flattened&#8221; to form 60,000 X vectors with 784 coordinates corresponding to the total number of pixels in an image with a y label between 0 and 9.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-148cccfd elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="148cccfd" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-74b5e3cc" data-id="74b5e3cc" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2ec6413a elementor-widget elementor-widget-heading" data-id="2ec6413a" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-medium">Building the Cognitive Model</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3c905c1c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3c905c1c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b7e3058" data-id="b7e3058" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2e802d11 elementor-widget elementor-widget-text-editor" data-id="2e802d11" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The cognitive model represents the structure of the neural network in our hosts&#8217; minds, encompassing aspects such as the number of layers, the number of neurons per layer, learning parameters (W and b), and even activation functions. Model design is highly dependent on the specific nature of the task at hand.</p><p>Weights and biases will undergo continuous adjustments throughout training to minimize the error between model predictions and expected outputs. Appropriate initialization and updating of these parameters is useful to optimize network performance. Other parameters such as the number of layers and the number of neurons will be adjusted manually to find the most efficient model within a reasonable timeframe and without consuming excessive resources, as it is undesirable for a host to take 30 seconds to recognize a handwritten digit, or to be inactive during this task.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-222f4f00 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="222f4f00" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6a96005a" data-id="6a96005a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7d4a51 elementor-widget elementor-widget-heading" data-id="7d4a51" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Forward propagation</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-219c6b3b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="219c6b3b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-54222ddc" data-id="54222ddc" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1e12021b elementor-widget elementor-widget-text-editor" data-id="1e12021b" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The first step in this cognitive process is forward propagation: the host brain circulates information from the pixels of the first layer to the last, producing an output y (the handwritten digit label).</p><p>Let&#8217;s analyze how it works.</p><p>• The input layer consists of just 784 neurons, each analyzing one pixel of the image. It has no parameters.</p><p>• The hidden layers (sigmoid): next, we endow our hosts with two hidden layers, each comprising 100 neurons with a sigmoid activation function.</p><p>The output of the first layer is a vector \(A^1\) containing 100 coordinates (one for each neuron). The calculations carried out for each element are simple and are based on the perceptron model: we calculate the aggregation function and then apply the activation function to it.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-da2bc0 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="da2bc0" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-b201e72" data-id="b201e72" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-51c126f7 elementor-widget elementor-widget-image" data-id="51c126f7" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="576" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Westworld-S01-EP03-Ford-2x-1024x576.jpg" class="attachment-large size-large wp-image-6298" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Westworld-S01-EP03-Ford-2x-1024x576.jpg 1024w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Westworld-S01-EP03-Ford-2x-300x169.jpg 300w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Westworld-S01-EP03-Ford-2x-768x432.jpg 768w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Westworld-S01-EP03-Ford-2x-800x450.jpg 800w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Westworld-S01-EP03-Ford-2x.jpg 1200w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: HBO</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-731799bf" data-id="731799bf" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7f33e7b2 elementor-widget elementor-widget-text-editor" data-id="7f33e7b2" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-weight: 400;">We write everything compactly in matrix form.</p><p style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-weight: 400;">\begin{align*}<br />Z^{1} &amp;= W^{1}\cdot X+b^1\\<br />A^{1} &amp;= \frac{1}{1+\exp{(-Z^{1})}}<br />\end{align*}</p><p style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-weight: 400;">The second hidden layer provides a vector \(A^2\) also containing 100 coordinates. We do the same for the second layer</p><p style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-weight: 400;"><span style="font-size: 15px; color: var( --e-global-color-text );">\begin{align*}<br />Z^{2} &amp;= W^{2}\cdot A^{1}+b^2\\<br />A^{2} &amp;= \frac{1}{1+\exp{(-Z^{2})}}<br />\end{align*}</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-38b5c07c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="38b5c07c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-69413cdb" data-id="69413cdb" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5063d40b elementor-widget elementor-widget-text-editor" data-id="5063d40b" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-weight: 400;">• The output layer: Finally, since the aim is to classify numbers from 0 to 9, an output layer of 10 neurons, accompanied by a softmax activation function, is more than sufficient.</p><p style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-weight: 400;">\begin{align*}<br />Z^{3} &amp;= W^{3}\cdot A^{2}+b^2\\<br />A^{2} &amp;= \frac{1}{1+\exp{(-Z^{3})}}<br />\end{align*}</p><p style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-weight: 400;">The softmax function assigns probabilities to each possible class. For each input image, it assigns a probability of belonging to class 0, 1, 2, &#8230;, up to 9. Here&#8217;s an example</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-c7ab28b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="c7ab28b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-4a335b97" data-id="4a335b97" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-56a86bda elementor-widget elementor-widget-image" data-id="56a86bda" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="300" height="293" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-7-300x293.png" class="attachment-medium size-medium wp-image-6360" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-7-300x293.png 300w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-7.png 708w" sizes="(max-width: 300px) 100vw, 300px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-98e1d1" data-id="98e1d1" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-56296c1a elementor-widget elementor-widget-image" data-id="56296c1a" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="683" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-bernard-and-elsie-westworld-1-1024x683.webp" class="attachment-large size-large wp-image-6361" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-bernard-and-elsie-westworld-1-1024x683.webp 1024w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-bernard-and-elsie-westworld-1-300x200.webp 300w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-bernard-and-elsie-westworld-1-768x512.webp 768w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-bernard-and-elsie-westworld-1.webp 1200w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: HBO</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-19b82cd8 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="19b82cd8" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4c7c6146" data-id="4c7c6146" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-67e57378 elementor-widget elementor-widget-shortcode" data-id="67e57378" data-element_type="widget" data-e-type="widget" data-widget_type="shortcode.default">
				<div class="elementor-widget-container">
							<div class="elementor-shortcode">
<table id="tablepress-41" class="tablepress tablepress-id-41">
<thead>
<tr class="row-1">
	<th class="column-1">Digits</th><th class="column-2">0</th><th class="column-3">1</th><th class="column-4">2</th><th class="column-5">3</th><th class="column-6">4</th><th class="column-7">5</th><th class="column-8">6</th><th class="column-9">7</th><th class="column-10">8</th><th class="column-11">9</th>
</tr>
</thead>
<tbody class="row-striping row-hover">
<tr class="row-2">
	<td class="column-1">Probabilities</td><td class="column-2">0.00000028</td><td class="column-3">0.00000000023</td><td class="column-4">0.000017</td><td class="column-5">0.000070</td><td class="column-6">0.00000000019</td><td class="column-7">0.00000030</td><td class="column-8">0.000000000018</td><td class="column-9">0.99</td><td class="column-10">0.0000018</td><td class="column-11">0.000022</td>
</tr>
</tbody>
</table>
</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4e5f00a9 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4e5f00a9" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-9a46122" data-id="9a46122" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-68a5a968 elementor-widget elementor-widget-text-editor" data-id="68a5a968" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>According to this table, there&#8217;s virtually no doubt that this number is 99% 7, so the host will assign it this number. In general, the host will assign the image the label with the highest probability.</p><p>This function therefore allows results to be interpreted as the confidence of the model in each class, and facilitates decision-making in the context of a multiclass classification task.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2138407b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2138407b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6f663378" data-id="6f663378" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-690da542 elementor-widget elementor-widget-heading" data-id="690da542" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Cognitive Error Analysis: The Cost Function</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3377e208 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3377e208" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5a74b463" data-id="5a74b463" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-681ecd5d elementor-widget elementor-widget-text-editor" data-id="681ecd5d" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>In the second phase, the host neural network analyzes the error between the model&#8217;s output y (its prediction) and the expected reference output (y_{text{ref}}). This evaluation is carried out using a cost function frequently used in classification tasks, including handwritten digit recognition. In this case, it&#8217;s the categorical cross-entropy, which we&#8217;ve already encountered (in another form).</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-7f3dc85a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="7f3dc85a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-2898102d" data-id="2898102d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2549a28f elementor-widget elementor-widget-image" data-id="2549a28f" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="1024" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-square-1479700865-ep08-ss01-1920.jpg" class="attachment-large size-large wp-image-6280" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-square-1479700865-ep08-ss01-1920.jpg 1024w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-square-1479700865-ep08-ss01-1920-300x300.jpg 300w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-square-1479700865-ep08-ss01-1920-150x150.jpg 150w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-square-1479700865-ep08-ss01-1920-768x768.jpg 768w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-square-1479700865-ep08-ss01-1920-600x600.jpg 600w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: HBO</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-5ae94c00" data-id="5ae94c00" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-682677e6 elementor-widget elementor-widget-text-editor" data-id="682677e6" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-weight: 400;"> </p><p style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-weight: 400;"> </p><p style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-weight: 400;">We recall its expression:</p><p style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-weight: 400;">\begin{align*}L(W,b)=-\frac{1}{n}\sum_{k=1}^n\left[y^{(k)}\log{y_{\text{ref}}}+\left(1-y^{(k)}\right)\log{\left(1-y_{\text{ref}}\right)}\right].\end{align*}</p><p style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-weight: 400;">In general, \(y_{ref}\) can be the final output but also any neuron layer output \(A^{i}\) with i the i-th layer which we place in an array named \(\mathbf{A}\). This gives the following matrix formula:</p><p style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-weight: 400;">\begin{align*}L(W,b)=-\frac{1}{n}\left[\mathbf{y}\log{\mathbf{A}}+\left(1-\mathbf{y}\right)\log{\left(1-\mathbf{A}\right)}\right].\end{align*}</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5e688d80 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5e688d80" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-38b76859" data-id="38b76859" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-36183987 elementor-widget elementor-widget-text-editor" data-id="36183987" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-weight: 400; color: var( --e-global-color-text );">This is a fundamental element in the cognitive analysis of the model, and measures the difference between the probabilities predicted by the model and the actual probabilities of the classes. Its aim is to appropriately quantify the discrepancy between the neural network&#8217;s predictions and the true labels associated with the digit images. Efficient minimization of this cost function during training helps to fine-tune the model parameters for better performance. de chiffres. Une minimisation efficace de cette fonction coût lors de l&#8217;entraînement contribue à affiner les paramètres du modèle pour une meilleure performance.</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1f15c69e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1f15c69e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-68bd6bf8" data-id="68bd6bf8" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-178af13b elementor-widget elementor-widget-heading" data-id="178af13b" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Mechanisms of Comprehension</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5ca67c58 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5ca67c58" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-32f5e6f8" data-id="32f5e6f8" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-24a6fa2b elementor-widget elementor-widget-text-editor" data-id="24a6fa2b" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The third step is backpropagation. The hosts measure how this cost function varies in relation to each layer of the model, working backwards from the last to the first. In other words, they will analyze the error of the output and the penultimate layer, then the penultimate layer and the penultimate layer and so on, all the way back to the input layer.</p><p>In short, we need to calculate how the error propagates from the output to the input in order to reduce it. On this network with two hidden layers, this results in 6 terrifying expressions (if you remember just the previous sentence, that&#8217;s fine):</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-14a17729 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="14a17729" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-542cadd4" data-id="542cadd4" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7ebadc2e elementor-widget elementor-widget-text-editor" data-id="7ebadc2e" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Starting with the last one (from the exit to the second one)</p><p>\begin{align*}<br />\frac{\partial L(\mathbf{W},b)}{\partial \mathbf{W}^3} =\frac{\partial L}{\partial \mathbf{A}^3} \times \frac{\partial \mathbf{A}^3}{\partial \mathbf{Z}^3} \times \frac{\partial \mathbf{Z}^3}{\partial \mathbf{W}^3}<br />\end{align*}</p><p>\begin{align*}<br />\frac{\partial L(\mathbf{W},b)}{\partial \mathbf{b}^3} =\frac{\partial L}{\partial \mathbf{A}^3} \times \frac{\partial \mathbf{A}^3}{\partial \mathbf{Z}^3} \times \frac{\partial \mathbf{Z}^3}{\partial \mathbf{b}^3}<br />\end{align*}</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-43482346" data-id="43482346" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1c98ee8e elementor-widget elementor-widget-text-editor" data-id="1c98ee8e" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>penultimate (second to first)</p><p>\begin{align*}\frac{\partial L(\mathbf{W},b)}{\partial \mathbf{W}^2} =\frac{\partial L}{\partial \mathbf{A}^3} \times \frac{\partial \mathbf{A}^3}{\partial \mathbf{Z}^3} \times \frac{\partial \mathbf{Z}^3}{\partial \mathbf{A}^2}\times\frac{\partial \mathbf{A}^2}{\partial \mathbf{Z}^2} \times \frac{\partial \mathbf{Z}^2}{\partial \mathbf{W}^2}\end{align*}</p><p>\begin{align*}\frac{\partial L(\mathbf{W},b)}{\partial \mathbf{W}^2} =\frac{\partial L}{\partial \mathbf{A}^3} \times \frac{\partial \mathbf{A}^3}{\partial \mathbf{Z}^3} \times \frac{\partial \mathbf{Z}^3}{\partial \mathbf{A}^2}\times\frac{\partial \mathbf{A}^2}{\partial \mathbf{Z}^2} \times \frac{\partial \mathbf{Z}^2}{\partial \mathbf{}^2}\end{align*}</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-39317883 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="39317883" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-5ffb2e38" data-id="5ffb2e38" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7db6a2e2 elementor-widget elementor-widget-text-editor" data-id="7db6a2e2" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>and finally the Input (from the first to the input)</p><p>\begin{align*}\frac{\partial L(\mathbf{W},b)}{\partial \mathbf{W}^1} =\frac{\partial L}{\partial \mathbf{A}^3} \times \frac{\partial \mathbf{A}^3}{\partial \mathbf{Z}^3} \times \frac{\partial \mathbf{Z}^3}{\partial \mathbf{A}^2}\times\frac{\partial \mathbf{A}^2}{\partial \mathbf{Z}^2}\times \frac{\partial \mathbf{Z}^2}{\partial \mathbf{A}^1}\times\frac{\partial \mathbf{A}^1}{\partial \mathbf{Z}^1} \times \frac{\partial \mathbf{Z}^1}{\partial \mathbf{W}^1} \end{align*}</p><p>\begin{align*}\frac{\partial L(\mathbf{W},b)}{\partial \mathbf{b}^1} =\frac{\partial L}{\partial \mathbf{A}^3} \times \frac{\partial \mathbf{A}^3}{\partial \mathbf{Z}^3} \times \frac{\partial \mathbf{Z}^3}{\partial \mathbf{A}^2}\times\frac{\partial \mathbf{A}^2}{\partial \mathbf{Z}^2}\times \frac{\partial \mathbf{Z}^2}{\partial \mathbf{A}^1}\times\frac{\partial \mathbf{A}^1}{\partial \mathbf{Z}^1} \times \frac{\partial \mathbf{Z}^1}{\partial \mathbf{b}^1} \end{align*}</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-e555828" data-id="e555828" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-43035bd8 elementor-widget elementor-widget-image" data-id="43035bd8" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="577" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-anthony_hopkins_as_dr._robert_ford_and_jeffrey_wright_as_bernard_lowe-_credit_john_p._johnson_hbo-h_2016-1024x577.webp" class="attachment-large size-large wp-image-6263" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-anthony_hopkins_as_dr._robert_ford_and_jeffrey_wright_as_bernard_lowe-_credit_john_p._johnson_hbo-h_2016-1024x577.webp 1024w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-anthony_hopkins_as_dr._robert_ford_and_jeffrey_wright_as_bernard_lowe-_credit_john_p._johnson_hbo-h_2016-300x169.webp 300w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-anthony_hopkins_as_dr._robert_ford_and_jeffrey_wright_as_bernard_lowe-_credit_john_p._johnson_hbo-h_2016-768x433.webp 768w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-anthony_hopkins_as_dr._robert_ford_and_jeffrey_wright_as_bernard_lowe-_credit_john_p._johnson_hbo-h_2016-800x450.webp 800w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-anthony_hopkins_as_dr._robert_ford_and_jeffrey_wright_as_bernard_lowe-_credit_john_p._johnson_hbo-h_2016.webp 1296w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: HBO</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-66d8d440 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="66d8d440" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-76ff6b1" data-id="76ff6b1" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7f466011 elementor-widget elementor-widget-heading" data-id="7f466011" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Optimisation Mentale</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-287bf42f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="287bf42f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-232c92e8" data-id="232c92e8" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-226be7c0 elementor-widget elementor-widget-text-editor" data-id="226be7c0" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Finally, the fourth stage is mental optimization. Hosts mentally adjust each model parameter using gradient descent (remember that? see the article <a href="https://theeventhorizons.com/wall-e-the-little-gold-miner/">Wall-E: The Little Gold Miner</a>), before returning to the first stage, forward propagation, to start a new training cycle.</p>
<p><span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400;">\begin{align*}\mathbf{W^*}=\mathbf{W}-\delta \frac{\partial }{\partial \mathbf{b}}L(\mathbf{W},\mathbf{b})\\<br />\mathbf{W^*}=\mathbf{W}-\delta \frac{\partial }{\partial \mathbf{W}}L(\mathbf{W},\mathbf{b})<br />\end{align*}</span></p>
<p>where <span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: var( --e-global-color-text );">\(\delta\) </span><span style="font-size: 15px; color: var( --e-global-color-text );">is the learning rate of all neurons.</span></p>
<p>In summary, this process enables our hosts to master handwritten digit recognition to some extent, with a success rate of around 83%, although this performance is not exceptional. Here are some of the mistakes our guests make:</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-51231de7 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="51231de7" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-25 elementor-top-column elementor-element elementor-element-288aabbe" data-id="288aabbe" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-efb2b7d elementor-widget elementor-widget-image" data-id="efb2b7d" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="362" height="428" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-erreur-Pred-8-True-3.png" class="attachment-large size-large wp-image-6247" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-erreur-Pred-8-True-3.png 362w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-erreur-Pred-8-True-3-254x300.png 254w" sizes="(max-width: 362px) 100vw, 362px" />											<figcaption class="widget-image-caption wp-caption-text">Prediction of an 8 when it's actually a 3</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-25 elementor-top-column elementor-element elementor-element-24c08d5c" data-id="24c08d5c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-54098f8 elementor-widget elementor-widget-image" data-id="54098f8" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="444" height="424" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-erreur-pred-4-true-7.png" class="attachment-large size-large wp-image-6246" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-erreur-pred-4-true-7.png 444w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-erreur-pred-4-true-7-300x286.png 300w" sizes="(max-width: 444px) 100vw, 444px" />											<figcaption class="widget-image-caption wp-caption-text">Prediction of an 4 when it's actually a 7</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-25 elementor-top-column elementor-element elementor-element-4cb2f131" data-id="4cb2f131" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6079b78a elementor-widget elementor-widget-image" data-id="6079b78a" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="450" height="428" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-erreur-pred-1-true-7.png" class="attachment-large size-large wp-image-6245" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-erreur-pred-1-true-7.png 450w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-erreur-pred-1-true-7-300x285.png 300w" sizes="(max-width: 450px) 100vw, 450px" />											<figcaption class="widget-image-caption wp-caption-text">Prediction of an 1 when it's actually a 7</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-25 elementor-top-column elementor-element elementor-element-6ebe990c" data-id="6ebe990c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4a2cd029 elementor-widget elementor-widget-image" data-id="4a2cd029" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="344" height="422" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-erreur-Pred-7-True-2.png" class="attachment-large size-large wp-image-6241" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-erreur-Pred-7-True-2.png 344w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-erreur-Pred-7-True-2-245x300.png 245w" sizes="(max-width: 344px) 100vw, 344px" />											<figcaption class="widget-image-caption wp-caption-text">Prediction of an 7 when it's actually a 2</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-44f87d7a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="44f87d7a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-365dd4d0" data-id="365dd4d0" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7a2a5171 elementor-widget elementor-widget-text-editor" data-id="7a2a5171" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Clearly, some handwritten numbers can be confusing, even to the human eye, while others seem to be unmistakably identifiable, like the 3 above.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-768e1b82 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="768e1b82" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-720627fb" data-id="720627fb" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-32ce60b elementor-widget elementor-widget-image" data-id="32ce60b" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="998" height="562" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Capture-decran-2023-12-30-a-12.13.12.png" class="attachment-large size-large wp-image-6253" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Capture-decran-2023-12-30-a-12.13.12.png 998w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Capture-decran-2023-12-30-a-12.13.12-300x169.png 300w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Capture-decran-2023-12-30-a-12.13.12-768x432.png 768w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-Capture-decran-2023-12-30-a-12.13.12-800x450.png 800w" sizes="(max-width: 998px) 100vw, 998px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: HBO</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-735c752f" data-id="735c752f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6d3e72a4 elementor-widget elementor-widget-text-editor" data-id="6d3e72a4" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p> </p><p>So, by adjusting a few parameters, it becomes relatively easy to significantly improve the model&#8217;s performance and reach 94% accuracy, a key skill in their journey towards acquiring more advanced cognitive tasks.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-56b45330 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="56b45330" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6f0eb62b" data-id="6f0eb62b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4f27037 elementor-widget elementor-widget-text-editor" data-id="4f27037" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>As our guests progress, they&#8217;ll broaden their scope of expertise, unlocking new possibilities for more immersive experiences at Westworld.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1fbf37b9 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1fbf37b9" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4f4f32d6" data-id="4f4f32d6" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2327fad elementor-widget elementor-widget-spacer" data-id="2327fad" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-70927d43 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="70927d43" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3880ad21" data-id="3880ad21" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-353a529 elementor-widget elementor-widget-heading" data-id="353a529" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">The Hosts of Westworld: From Numbers to Faces.</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-48c829eb elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="48c829eb" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-48d339bb" data-id="48d339bb" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-13d3b5fa elementor-widget elementor-widget-text-editor" data-id="13d3b5fa" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>In conclusion, my dear guests, our first exploration into the mysteries of Deep Learning ends here. I&#8217;m delighted to have revealed a number of concepts to you, including formal neurons, perceptrons and multi-layer perceptrons. We&#8217;ve analyzed a concrete example where the hosts of Westworld, through their processors, have acquired the ability to recognize and interpret handwritten numbers with disconcerting accuracy.</p><p><br />But make no mistake, this neural network alone is far from sufficient when the world to be analyzed has a higher resolution. The number of training parameters that had to be adjusted for our multi-layer perceptron (there were many! 89,610 parameters) of just two hidden layers of 100 neurons was relatively small to be run on low-power machines. Now imagine simulating such a model with hundreds of layers and thousands of neurons per layer. It would be impossible! This is why other techniques have been developed, such as convolutional neural networks, which use filters to analyze characteristic elements of the image.</p><p>Finally, and I&#8217;ll leave it at that, don&#8217;t visualize an artificial intelligence that discerns faces, complex objects or emotions as &#8220;intelligent&#8221;. For even if hosts seem to come strikingly close to humanity in their interactions, let&#8217;s always remember that they are nothing more than machines.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6d14cc11 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6d14cc11" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ae568b1" data-id="ae568b1" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4f17b5cf elementor-widget elementor-widget-heading" data-id="4f17b5cf" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Dr. Ford - "Remember, hosts are not real. They are not conscious." </h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3eb09039 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3eb09039" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-325a4a90" data-id="325a4a90" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-54a86532 elementor-widget elementor-widget-image" data-id="54a86532" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="538" src="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-evan-rachel-wood_0-e13754e8634b47599d929fa18d27c50e-1-1024x538.jpg" class="attachment-large size-large wp-image-6287" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2024/01/Image-evan-rachel-wood_0-e13754e8634b47599d929fa18d27c50e-1-1024x538.jpg 1024w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-evan-rachel-wood_0-e13754e8634b47599d929fa18d27c50e-1-300x158.jpg 300w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-evan-rachel-wood_0-e13754e8634b47599d929fa18d27c50e-1-768x403.jpg 768w, https://theeventhorizons.com/wp-content/uploads/2024/01/Image-evan-rachel-wood_0-e13754e8634b47599d929fa18d27c50e-1.jpg 1200w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: HBO</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6785891b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6785891b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5551bb3e" data-id="5551bb3e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7128c04 elementor-widget elementor-widget-spacer" data-id="7128c04" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-45b69fa elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="45b69fa" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-16ab8ace" data-id="16ab8ace" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4a5c9154 elementor-widget elementor-widget-heading" data-id="4a5c9154" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">Bibliography</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-54462be1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="54462be1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-18327974" data-id="18327974" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4e53edee elementor-widget elementor-widget-text-editor" data-id="4e53edee" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>F. Rosenblatt, The Perceptron, A perceiving and recognizing automaton, Cornell Aeronautical Laboratory,‎ 1957</p>
<p>F. Rosenblatt, The Perceptron: A Probabilistic Model For Information Storage And Organization in the Brain, Psychological Review, vol. 65, no 6,‎ 1958</p>
<p>M. Tommasi, Le Perceptron, Apprentissage automatique : les réseaux de neurones, cours à l&#8217;université de Lille 3.</p>
<p>D.B. Parker, Learning Logic , Massachusetts Institute of Technology, Cambridge MA,‎ 1985.</p>
<p>G. Saint-Cirgue, Machine Learnia, Youtube Channel.</p>
<p>USI Events, Deep learning, Yann LeCun on Youtube.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-d11d5fc elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="d11d5fc" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-418d170b" data-id="418d170b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1504f5ed elementor-widget elementor-widget-spacer" data-id="1504f5ed" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-29d75073 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="29d75073" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e27a55f" data-id="e27a55f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-e266f3 elementor-view-default elementor-position-block-start elementor-mobile-position-block-start elementor-widget elementor-widget-icon-box" data-id="e266f3" data-element_type="widget" data-e-type="widget" data-widget_type="icon-box.default">
				<div class="elementor-widget-container">
							<div class="elementor-icon-box-wrapper">

						<div class="elementor-icon-box-icon">
				<span  class="elementor-icon">
				<i aria-hidden="true" class="fab fa-python"></i>				</span>
			</div>
			
			
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6f133bdd elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6f133bdd" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5369a112" data-id="5369a112" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4e0d0259 elementor-widget elementor-widget-heading" data-id="4e0d0259" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Note: for more information on the code provided, please visit GitHub. Link in the footer!</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-17579f0c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="17579f0c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5bfd721c" data-id="5bfd721c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7c62523 elementor-widget elementor-widget-toggle" data-id="7c62523" data-element_type="widget" data-e-type="widget" data-widget_type="toggle.default">
				<div class="elementor-widget-container">
							<div class="elementor-toggle">
							<div class="elementor-toggle-item">
					<div id="elementor-tab-title-1301" class="elementor-tab-title" data-tab="1" role="button" aria-controls="elementor-tab-content-1301" aria-expanded="false">
												<span class="elementor-toggle-icon elementor-toggle-icon-left" aria-hidden="true">
															<span class="elementor-toggle-icon-closed"><i class="fas fa-caret-right"></i></span>
								<span class="elementor-toggle-icon-opened"><i class="elementor-toggle-icon-opened fas fa-caret-up"></i></span>
													</span>
												<a class="elementor-toggle-title" tabindex="0">Handmade Perceptron</a>
					</div>

					<div id="elementor-tab-content-1301" class="elementor-tab-content elementor-clearfix" data-tab="1" role="region" aria-labelledby="elementor-tab-title-1301"><p></p>
<pre class="wp-block-code has-black-background-color has-background"><code class="language-python line-numbers" lang="python">
import numpy as np
import matplotlib.pyplot as plt

# Set the random seed for reproducibility
np.random.seed(42)

# Generate points for class 0
class0_points = np.random.normal(loc=[3, 6], scale=[1, 1], size=(200, 2))

# Generate points for class 1
class1_points = np.random.normal(loc=[7, 3], scale=[1, 1], size=(200, 2))

M0 = np.zeros((class0_points.shape[0], 1))
M1 = np.ones((class1_points.shape[0], 1))

X = np.concatenate([class0_points, class1_points], axis=0)
y = np.concatenate([M0, M1], axis=0)


# Create an initialization function to initialize parameters W and b of our model
def initialization(X):
    np.random.seed(seed=0)
    W = np.random.randn(X.shape[1], 1)
    b = np.random.randn(1)
    return W, b

W, b = initialization(X)

print(W.shape)

# Next, create an iterative algorithm where we repeat the following functions in a loop:

# Start with the function that represents our artificial neuron model, where we find the function Z = X.W + b and the activation function A
def model(X, W, b):
    Z = X.dot(W) + b
    A = 1 / (1 + np.exp(-Z))
    return A

A = model(X, W, b)

# Next, create an evaluation function, i.e., the cost function that evaluates the model's performance by comparing the output A to the reference data y
def log_loss(A, y):
    return (1 / len(y)) * np.sum(-y * np.log(A) - (1 - y) * np.log(1 - A))

# In parallel, calculate the gradients of this cost function
def gradients(A, X, y):
    dW = (1 / len(y)) * np.dot(X.T, A - y)
    db = (1 / len(y)) * np.sum(A - y)
    return dW, db

dW, db = gradients(A, X, y)

print(dW.shape)
print(db.shape)

# Finally, use these gradients in an update function that updates the parameters W and b to reduce the model's errors
def update(dW, db, W, b, learning_rate):
    W = W - learning_rate * dW
    b = b - learning_rate * db
    return W, b

# Create a prediction function
def predict(X, W, b):
    A = model(X, W, b)
    return A >= 0.5

# Create an artificial neuron
def artificial_neuron(X, y, learning_rate=0.1, n_iter=100):
    # Initialize W, b
    W, b = initialization(X)

    # Visualize the loss
    Loss = []

    # Create a training loop
    for i in range(n_iter):
        A = model(X, W, b)
        Loss.append(log_loss(A, y))
        dW, db = gradients(A, X, y)
        W, b = update(dW, db, W, b, learning_rate)

    # Calculate predictions for all data
    y_pred = predict(X, W, b)

    # Display the performance of our model (e.g., accuracy), comparing the reference data y with our predictions
    # print(accuracy_score(y, y_pred))

    # Visualize the loss to see if our model has learned well
    plt.plot(Loss)
    plt.grid(ls='--')
    plt.show()
    return W, b

# Train the artificial neuron
W, b = artificial_neuron(X, y)

# Test on new data
new_data = np.array([6, 4])

plt.scatter(X[:, 0], X[:, 1], c=y, cmap='Dark2', label='Class 0 (Blue) / Class 1 (Orange)')
plt.scatter(new_data[0], new_data[1], c='red', label='New Data (Red)')
plt.title('Classification with an Artificial Neuron')
plt.xlabel('Feature 1')
plt.ylabel('Feature 2')
plt.grid(ls='--')
plt.legend()
plt.show()

prediction = predict(new_data, W, b)
print(f"Prediction for new data: {prediction}")

# Create the decision boundary
x0 = np.linspace(-1, 11, 100)
x1 = (-W[0] * x0 - b) / W[1]

plt.plot(x0, x1, c='red', lw=2, ls='--', label='Decision Boundary')
plt.scatter(X[:, 0], X[:, 1], c=y, cmap='Dark2', label='Class 0 (Green) / Class 1 (Grey)')
plt.title('Classification with a Perceptron and Decision Boundary')
plt.xlabel('Feature 1')
plt.ylabel('Feature 2')
plt.grid(ls='--')
plt.legend()
plt.show()



</code></pre>
<p></p></div>
				</div>
							<div class="elementor-toggle-item">
					<div id="elementor-tab-title-1302" class="elementor-tab-title" data-tab="2" role="button" aria-controls="elementor-tab-content-1302" aria-expanded="false">
												<span class="elementor-toggle-icon elementor-toggle-icon-left" aria-hidden="true">
															<span class="elementor-toggle-icon-closed"><i class="fas fa-caret-right"></i></span>
								<span class="elementor-toggle-icon-opened"><i class="elementor-toggle-icon-opened fas fa-caret-up"></i></span>
													</span>
												<a class="elementor-toggle-title" tabindex="0">Handmade Multilayer perceptron for digit recognition</a>
					</div>

					<div id="elementor-tab-content-1302" class="elementor-tab-content elementor-clearfix" data-tab="2" role="region" aria-labelledby="elementor-tab-title-1302">
<pre class="wp-block-code has-black-background-color has-background"><code class="language-python line-numbers" lang="python">
import numpy as np
import matplotlib.pyplot as plt
from tqdm import tqdm
from sklearn.metrics import log_loss, accuracy_score
from keras.datasets import mnist
from sklearn.preprocessing import OneHotEncoder

# Load MNIST data
(X_train, y_train), (X_test, y_test) = mnist.load_data()


# Display one image for each digit
fig, ax = plt.subplots(nrows=1, ncols=10, figsize=(20, 4))
for digit in range(10):
    digit_indices = np.where(y_train == digit)[0]
    ax[digit].imshow(255 - X_train[digit_indices[0]], cmap='gray')
    ax[digit].set_title(f'Digit {digit}')
    ax[digit].axis('off')

plt.tight_layout()
plt.show()



# Reshape and normalize input data
X_train_reshape = X_train.reshape(X_train.shape[0], -1) / 255.0
X_test_reshape = X_test.reshape(X_test.shape[0], -1) / 255.0

# Transpose labels if needed
y_train = y_train.reshape(-1, 1)
y_test = y_test.reshape(-1, 1)

# One-hot encode labels
encoder = OneHotEncoder(sparse=False, categories='auto')
y_train_onehot = encoder.fit_transform(y_train)
y_test_onehot = encoder.transform(y_test)

# Select a subset of data
m_train = 5000
m_test = 1000

X_train_reshape = X_train_reshape[:m_train, :]
X_test_reshape = X_test_reshape[:m_test, :]
y_train_onehot = y_train_onehot[:m_train, :]
y_test_onehot = y_test_onehot[:m_test, :]

print(X_train_reshape.shape)
print(X_test_reshape.shape)
print(y_train_onehot.shape)
print(y_test_onehot.shape)




# Neural network initialization function
def initialization(dimensions):
    np.random.seed(seed=0)
    parameters = {}
    C = len(dimensions)
    for c in range(1, C):
        parameters['W' + str(c)] = np.random.randn(dimensions[c], dimensions[c-1])
        parameters['b' + str(c)] = np.random.randn(dimensions[c], 1)
    return parameters

# Neural network forward propagation function
def forward_propagation(X, parameters):
    activations = {'A0': X}
    C = len(parameters) // 2
    for c in range(1, C + 1):
        Z = parameters['W' + str(c)].dot(activations['A' + str(c-1)]) + parameters['b' + str(c)]
        activations['A' + str(c)] = 1 / (1 + np.exp(-Z))
    return activations

# Neural network backpropagation function
def back_propagation(X, y, activations, parameters):
    m = y.shape[1]
    C = len(parameters) // 2
    dZ = activations['A' + str(C)] - y
    gradients = {}
    for c in reversed(range(1, C + 1)):
        gradients['dW' + str(c)] = (1/m) * np.dot(dZ, activations['A' + str(c-1)].T)
        gradients['db' + str(c)] = (1/m) * np.sum(dZ, axis=1, keepdims=True)
        if c > 1:
            dZ = np.dot(parameters['W' + str(c)].T, dZ) * activations['A' + str(c-1)] * (1 - activations['A' + str(c-1)])
    return gradients

# Neural network update function
def update(gradients, parameters, learning_rate):
    C = len(parameters) // 2
    for c in range(1, C + 1):
        parameters['W' + str(c)] = parameters['W' + str(c)] - learning_rate * gradients['dW' + str(c)]
        parameters['b' + str(c)] = parameters['b' + str(c)] - learning_rate * gradients['db' + str(c)]
    return parameters

# Neural network prediction function
def predict(X, parameters):
    activations = forward_propagation(X, parameters)
    C = len(parameters) // 2
    Af = activations['A' + str(C)]
    return (Af >= 0.5).astype(int)

# Neural network training function
def neural_network(X, y, hidden_layers=(100, 100), learning_rate=0.1, n_iter=1000):
    np.random.seed(0)
    dimensions = [X.shape[0]] + list(hidden_layers) + [y.shape[0]]
    parameters = initialization(dimensions)
    train_loss = []
    train_acc = []
    for i in tqdm(range(n_iter)):
        activations = forward_propagation(X, parameters)
        gradients = back_propagation(X, y, activations, parameters)
        parameters = update(gradients, parameters, learning_rate)
        if i % 10 == 0:
            C = len(parameters) // 2
            train_loss.append(log_loss(y, activations['A' + str(C)]))
            y_pred = predict(X, parameters)
            current_accuracy = accuracy_score(y.flatten(), y_pred.flatten())
            train_acc.append(current_accuracy)
    plt.figure(figsize=(12, 4))
    plt.subplot(1, 2, 1)
    plt.plot(train_loss, label='train loss')
    plt.legend()
    plt.subplot(1, 2, 2)
    plt.plot(train_acc, label='train acc')
    plt.legend()
    plt.show()
    return parameters

# Train the neural network
parameters = neural_network(X_train_reshape.T, y_train_onehot.T, hidden_layers=(100, 100), learning_rate=0.1, n_iter=5000)

# Predict on test data
y_pred = predict(X_test_reshape.T, parameters)

# Print accuracy on test data
test_accuracy = accuracy_score(y_test_onehot.flatten(), y_pred.flatten())
print(f"Test Accuracy: {test_accuracy}")





</code></pre>
</div>
				</div>
							<div class="elementor-toggle-item">
					<div id="elementor-tab-title-1303" class="elementor-tab-title" data-tab="3" role="button" aria-controls="elementor-tab-content-1303" aria-expanded="false">
												<span class="elementor-toggle-icon elementor-toggle-icon-left" aria-hidden="true">
															<span class="elementor-toggle-icon-closed"><i class="fas fa-caret-right"></i></span>
								<span class="elementor-toggle-icon-opened"><i class="elementor-toggle-icon-opened fas fa-caret-up"></i></span>
													</span>
												<a class="elementor-toggle-title" tabindex="0">Multilayer perceptron for digit recognition</a>
					</div>

					<div id="elementor-tab-content-1303" class="elementor-tab-content elementor-clearfix" data-tab="3" role="region" aria-labelledby="elementor-tab-title-1303">
<pre class="wp-block-code has-black-background-color has-background"><code class="language-python line-numbers" lang="python">

import numpy as np
import tensorflow as tf
import keras
import matplotlib.pyplot as plt
from keras.datasets import mnist


# Load MNIST data
(X_train, y_train), (X_test, y_test) = mnist.load_data()

# Display one image for each digit
fig, ax = plt.subplots(nrows=1, ncols=10, figsize=(20, 4))
for digit in range(10):
    digit_indices = np.where(y_train == digit)[0]
    ax[digit].imshow(255 - X_train[digit_indices[0]], cmap='gray')
    ax[digit].set_title(f'Digit {digit}')
    ax[digit].axis('off')

plt.tight_layout()
#plt.show()

# Reshape and normalize input data
X_train = X_train/ 255.0
X_test = X_test / 255.0




hidden1 = 100
hidden2 = 100

model = keras.Sequential([
    keras.layers.Input((28, 28)),
    keras.layers.Flatten(),
    keras.layers.Dense(hidden1, activation='relu'),
    keras.layers.Dense(hidden2, activation='relu'),
    keras.layers.Dense(10, activation='softmax')
])

model.compile(optimizer='adam',
              loss='sparse_categorical_crossentropy',
              metrics=['accuracy'])

batch_size = 512
epochs = 16

history = model.fit(X_train, y_train,
                    batch_size=batch_size,
                    epochs=epochs,
                    verbose=1,
                    validation_data=(X_test, y_test))

# Plot the training history
plt.plot(history.history['accuracy'], label='train accuracy')
plt.plot(history.history['val_accuracy'], label='validation accuracy')
plt.xlabel('Epochs')
plt.ylabel('Accuracy')
plt.legend()
#plt.show()

plt.plot(history.history['loss'], label='train loss')
plt.plot(history.history['val_loss'], label='validation loss')
plt.xlabel('Epochs')
plt.ylabel('Loss')
plt.legend()
#plt.show()

# Evaluate the model on the test set
score = model.evaluate(X_test, y_test, verbose=0)
print('Test Loss:', score[0])
print('Test Accuracy:', score[1])

# Predictions on the test set
y_pred = model.predict(X_test)
y_pred_classes = np.argmax(y_pred, axis=-1)






print(y_pred[0])


plt.figure(figsize=(20, 4))
plt.imshow(255 - X_test[0], cmap='gray')  
plt.title(f'Digit: {y_test[0]}')
plt.axis('off')
plt.show()

print(model.summary())



</code></pre>
<p></p>
</div>
				</div>
								</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				</div>
		<p>The article <a href="https://theeventhorizons.com/how-to-build-an-host/">How to Build an Host ? Episode I</a> first appeared on <a href="https://theeventhorizons.com">The Event Horizons</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theeventhorizons.com/how-to-build-an-host/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Waste Allocation Load Lifter: Earth Class </title>
		<link>https://theeventhorizons.com/waste-allocation-load-lifter-earth-class/</link>
					<comments>https://theeventhorizons.com/waste-allocation-load-lifter-earth-class/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 02 Dec 2023 19:19:35 +0000</pubDate>
				<category><![CDATA[Artificial Intelligence]]></category>
		<guid isPermaLink="false">https://theeventhorizons.com/?p=5944</guid>

					<description><![CDATA[<p>Wall-E, faithful to his mission and amidst some gold estimations, doesn't forget his main task: sorting garbage. During his expeditions to remote places on the planet, he discovers the ultimate challenge that stimulates his curious mind. Among the objects he collects, Wall-E finds a varied collection of old electronic components, some in good condition that he takes back to the base, and others faulty that he stores in a corner.</p>
<p>Passionate about such objects, he starts unscrewing, tearing apart, and carefully categorizing each component into two distinct categories (binary classification): on one side, the valuable metal pieces that he will sort later (multiclass classification), and on the other, the worthless plastic. The fundamental question is: how does he carry out such a mission?</p>
<p>The article <a href="https://theeventhorizons.com/waste-allocation-load-lifter-earth-class/">Waste Allocation Load Lifter: Earth Class </a> first appeared on <a href="https://theeventhorizons.com">The Event Horizons</a>.</p>
]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="5944" class="elementor elementor-5944">
						<section class="elementor-section elementor-top-section elementor-element elementor-element-1cdc1b3e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1cdc1b3e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-370c0913" data-id="370c0913" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-74b7d0bc elementor-align-center elementor-widget elementor-widget-button" data-id="74b7d0bc" data-element_type="widget" data-e-type="widget" data-widget_type="button.default">
				<div class="elementor-widget-container">
									<div class="elementor-button-wrapper">
					<a class="elementor-button elementor-button-link elementor-size-sm" href="https://theeventhorizons.com/category/ai-revolution/">
						<span class="elementor-button-content-wrapper">
									<span class="elementor-button-text">Artificial Intelligence</span>
					</span>
					</a>
				</div>
								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4a914ee2 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4a914ee2" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-79c80760" data-id="79c80760" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6550506e elementor-widget elementor-widget-heading" data-id="6550506e" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-xxl">Waste Allocation Load Lifter: Earth Class</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6b819805 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6b819805" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2d3dce32" data-id="2d3dce32" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-20035764 elementor-widget elementor-widget-heading" data-id="20035764" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Episode III</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-24d85493 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="24d85493" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4bde30ed" data-id="4bde30ed" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3c94bb48 elementor-widget elementor-widget-heading" data-id="3c94bb48" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">By Jordan Moles on December 2, 2023</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1af9769f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1af9769f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4502b39f" data-id="4502b39f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7b91be5c elementor-widget elementor-widget-image" data-id="7b91be5c" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1536" height="783" src="https://theeventhorizons.com/wp-content/uploads/2023/11/Image-Capture-decran-2023-11-23-a-19.20.31-1536x783.png" class="attachment-1536x1536 size-1536x1536 wp-image-5657" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/Image-Capture-decran-2023-11-23-a-19.20.31-1536x783.png 1536w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-Capture-decran-2023-11-23-a-19.20.31-300x153.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-Capture-decran-2023-11-23-a-19.20.31-1024x522.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-Capture-decran-2023-11-23-a-19.20.31-768x391.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-Capture-decran-2023-11-23-a-19.20.31-2048x1044.png 2048w" sizes="(max-width: 1536px) 100vw, 1536px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-19467de9 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="19467de9" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3dc3fe87" data-id="3dc3fe87" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7e509134 elementor-widget elementor-widget-text-editor" data-id="7e509134" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="text-align: center;"><strong>As a robot faithful to its mission and amidst occasional gold estimations, Wall-E does not forget its primary task: sorting waste. It is during its expeditions to remote locations on the planet that it encounters the ultimate challenge that stimulates its curious mind. Among the objects it gathers, Wall-E comes across a diverse collection of old electronic components—some in good condition that it brings back to the base, and others defective that it stores in a corner.</strong></p><p style="text-align: center;"><strong>Passionate about such objects, it begins to unscrew, pull apart, and carefully categorize each component into two distinct categories (binary classification): on one side, the precious metal pieces that it will sort later (multiclass classification), and on the other, the worthless plastic. The fundamental question is: how does it accomplish such a mission?</strong></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-48abd477 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="48abd477" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2b2f6e88" data-id="2b2f6e88" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-68858bc4 elementor-widget elementor-widget-spacer" data-id="68858bc4" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5e7729ca elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5e7729ca" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2c394564" data-id="2c394564" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-16d88573 elementor-widget elementor-widget-heading" data-id="16d88573" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">It is strongly recommended to have read episodes I and II before continuing!</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-d8273d0 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="d8273d0" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-28c6ce60" data-id="28c6ce60" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-71a26e65 elementor-widget elementor-widget-spacer" data-id="71a26e65" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5348e3c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5348e3c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-24d76ab3" data-id="24d76ab3" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4d2a3993 elementor-widget elementor-widget-heading" data-id="4d2a3993" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">Wall-E's New Horizons: The Classification</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5700f470 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5700f470" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-26224099" data-id="26224099" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-30c52e2c elementor-widget elementor-widget-text-editor" data-id="30c52e2c" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The epic journey of our intrepid lone robot, Wall-E, takes on a fascinating new dimension as he explores the vast realm of classification. After brilliantly mastering the art of regression in the previous episode (see the article &#8220;<a href="https://theeventhorizons.com/wall-e-the-little-gold-miner/">Wall-E: The Little Gold Miner</a>&#8220;), Wall-E courageously embarks on a new phase by delving into binary classification between precious metals and plastics. This initial preparatory step marks the beginning of a more complex quest, where Wall-E boldly deploys his classification skills to navigate through the diverse metals that line his path.</p><p>Building on his initial successes, Wall-E decides to broaden his scope by tackling the multi-class classification of metals, making the K-Nearest Neighbors (KNN) algorithm his preferred ally. This new challenge requires Wall-E to gain a deeper understanding, as he must not only distinguish between two categories but also classify different types of metals such as bronze, gold, and silver.</p><p>This new phase of his adventure marks Wall-E&#8217;s transformation towards broader and more sophisticated classification horizons. Each step of this exploration adds a new dimension to his skills, preparing Wall-E to face more complex challenges than simple binary sorting. In this endeavor, model selection proves crucial to ensure the accuracy of his predictions. Wall-E apprehends the importance of the cross-validation process and meticulously explores the nuances of hyperparameter tuning, thereby ensuring the robustness and efficiency of his model.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-47a1e37 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="47a1e37" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-23424bdf" data-id="23424bdf" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-a7b0b03 elementor-widget elementor-widget-spacer" data-id="a7b0b03" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-743cec1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="743cec1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1c54a42a" data-id="1c54a42a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1e5916f1 elementor-widget elementor-widget-heading" data-id="1e5916f1" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">The Key Element: Always the Data</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-b6d8774 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="b6d8774" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3e9ebfbc" data-id="3e9ebfbc" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6a3993a1 elementor-widget elementor-widget-text-editor" data-id="6a3993a1" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>In his exploration to decipher the nature of electronic components, Wall-E draws upon the information stored during his learning experiences with his creators. This approach aims to build an extensive and diverse set of samples, running in parallel with his challenges related to regression.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4bce17de elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4bce17de" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6ad511c1" data-id="6ad511c1" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-33fa7901 elementor-widget elementor-widget-heading" data-id="33fa7901" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-medium">
Meeting the Samples</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-55e2d51a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="55e2d51a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-38f8acb7" data-id="38f8acb7" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-14de4088 elementor-widget elementor-widget-text-editor" data-id="14de4088" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Each example \(k\) was an element with specific characteristics, such as density \(x^{(k)}\), thermal conductivity \(x_2^{(k)}\), electrical conductivity \(x_3^{(k)}\), etc. To illustrate our case simply, we will consider only the density variable \(x^{(k)}\) for now.</p><p>Thus, for each sample \(k\), Wall-E notes whether it is a metal (labeled as \(y^{(k)}=1\)) or plastic (labeled as \(y^{(k)}=0\)). These samples and their labels form his training dataset. Here is a concrete example of 5 samples (among the 650 he already knows).</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6fc0fc38 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6fc0fc38" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1f218901" data-id="1f218901" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5415289f elementor-widget elementor-widget-shortcode" data-id="5415289f" data-element_type="widget" data-e-type="widget" data-widget_type="shortcode.default">
				<div class="elementor-widget-container">
							<div class="elementor-shortcode">
<table id="tablepress-29" class="tablepress tablepress-id-29">
<thead>
<tr class="row-1">
	<td class="column-1"></td><th class="column-2">Density</th><th class="column-3">Type of Component</th>
</tr>
</thead>
<tbody class="row-striping row-hover">
<tr class="row-2">
	<td class="column-1">Sample 1</td><td class="column-2">2.165747</td><td class="column-3">Plastic</td>
</tr>
<tr class="row-3">
	<td class="column-1">Sample 2</td><td class="column-2">7.151579</td><td class="column-3">Metal</td>
</tr>
<tr class="row-4">
	<td class="column-1">Sample 3</td><td class="column-2">0.901240</td><td class="column-3">Plastic</td>
</tr>
<tr class="row-5">
	<td class="column-1">Sample 4</td><td class="column-2">19.24357</td><td class="column-3">Metal</td>
</tr>
<tr class="row-6">
	<td class="column-1">Sample 5</td><td class="column-2">12.54564</td><td class="column-3">Metal</td>
</tr>
</tbody>
</table>
</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-25dcc8d0 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="25dcc8d0" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5bf9d3bf" data-id="5bf9d3bf" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-23c5b12 elementor-widget elementor-widget-spacer" data-id="23c5b12" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-265a11e6 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="265a11e6" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f31eac4" data-id="f31eac4" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2ffdb73d elementor-widget elementor-widget-heading" data-id="2ffdb73d" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-medium">The Decision Boundaries</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6cfde128 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6cfde128" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7ea199bb" data-id="7ea199bb" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2aaa6e20 elementor-widget elementor-widget-text-editor" data-id="2aaa6e20" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The difference with the previous problem is that here we need to define what we call a <strong>decision boundary</strong>. Let&#8217;s explain this concept simply. Instead of looking at each object individually, Wall-E decides to divide this space into different regions. Each region would be intended to receive a specific type of object, either metal or plastic. The boundaries of these regions will define decision boundaries, and that&#8217;s where the heart of the classification problem lies.</p><p>When Wall-E draws these boundaries, he wants to ensure that similar objects are in the same region. This means that objects close to each other in density tend to have the same label, either metal or plastic. Ideally, he would like these two groups to be perfectly separated, as if they were in distinct boxes. A simple line could do the trick.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5385d280 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5385d280" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-3d590ea7" data-id="3d590ea7" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4f2b25e9 elementor-widget elementor-widget-image" data-id="4f2b25e9" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="754" src="https://theeventhorizons.com/wp-content/uploads/2023/11/Image-GoodThreshold-1024x754.png" class="attachment-large size-large wp-image-5683" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/Image-GoodThreshold-1024x754.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-GoodThreshold-300x221.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-GoodThreshold-768x566.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-GoodThreshold.png 1252w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Representation of the good Decision Boundary Classifying an Object as Either Metal or Plastic</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-85b93cc" data-id="85b93cc" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-23a5b59 elementor-widget elementor-widget-image" data-id="23a5b59" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="763" src="https://theeventhorizons.com/wp-content/uploads/2023/11/Image-BadThreshold-1024x763.png" class="attachment-large size-large wp-image-5682" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/Image-BadThreshold-1024x763.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-BadThreshold-300x223.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-BadThreshold-768x572.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-BadThreshold.png 1246w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Representation of a bad Decision Boundary Classifying an Object as Either Metal or Plastic</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-279cc120 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="279cc120" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6891cfda" data-id="6891cfda" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-27a3f58e elementor-widget elementor-widget-text-editor" data-id="27a3f58e" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>However, reality is not always so simple. Sometimes, there are objects that are misplaced and end up on the other side of the line. This is what happens in our example when some plastics have a higher density than some metals (such as rubber and lithium, which end up on the left side of the decision boundary). This poses a challenge for Wall-E. He must now judge his work based on the quality of the separation. The clearer the separation, the better. Misclassified objects are like errors on his sorting sheet, and as usual, he wants to minimize these errors.</p><p>Wall-E is also aware that he should not complicate things by drawing zigzagging and complex boundaries. These complicated boundaries might capture all objects, but it could also lead to overfitting, where each object is in its own region. This is called overfitting (we&#8217;ll see that in a few sections).</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5efc2f07 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5efc2f07" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-69b7edca" data-id="69b7edca" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap">
							</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-39083cf elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="39083cf" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c7df810" data-id="c7df810" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6259a46c elementor-widget elementor-widget-spacer" data-id="6259a46c" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
				<div class="elementor-element elementor-element-5b0b9859 elementor-widget elementor-widget-spacer" data-id="5b0b9859" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-74aa5053 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="74aa5053" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3bb6b94f" data-id="3bb6b94f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2714a270 elementor-widget elementor-widget-heading" data-id="2714a270" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">Creation of the Binary Classification Model</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2c6172eb elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2c6172eb" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2af4e376" data-id="2af4e376" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7dd556a1 elementor-widget elementor-widget-text-editor" data-id="7dd556a1" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Driven by the desire to make sense of these electronic components, Wall-E embarks on the creation of a binary classification model. This model will take the features of a component as input and output a prediction of its nature. After exploring different approaches, including linear regression as he knows with the function \(f(x) = ax + b\) (with parameters a and b) that does not fit the data at all,</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-186fab74 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="186fab74" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-341ae039" data-id="341ae039" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2fdcb001 elementor-widget elementor-widget-image" data-id="2fdcb001" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="780" src="https://theeventhorizons.com/wp-content/uploads/2023/11/Image-Linear-1024x780.png" class="attachment-large size-large wp-image-5692" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/Image-Linear-1024x780.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-Linear-300x229.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-Linear-768x585.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-Linear.png 1236w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Regression Curve on the Material Names Based on Their Density</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-4f7b6623" data-id="4f7b6623" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-663b41d7 elementor-widget elementor-widget-image" data-id="663b41d7" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="604" src="https://theeventhorizons.com/wp-content/uploads/2023/11/Image-Capture-decran-2023-11-23-a-19.19.24-1024x604.png" class="attachment-large size-large wp-image-5698" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/Image-Capture-decran-2023-11-23-a-19.19.24-1024x604.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-Capture-decran-2023-11-23-a-19.19.24-300x177.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-Capture-decran-2023-11-23-a-19.19.24-768x453.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-Capture-decran-2023-11-23-a-19.19.24-1536x905.png 1536w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-Capture-decran-2023-11-23-a-19.19.24.png 2036w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Crédits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-278f2129 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="278f2129" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-7dbab5c2" data-id="7dbab5c2" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-73d34d4e elementor-widget elementor-widget-text-editor" data-id="73d34d4e" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Wall-E opts instead for a classic <strong>Logistic Regression model</strong>, whose associated function (ranging between 0 and 1) is expressed as follows:</p><p>\begin{align*}<br />\sigma(x)=\frac{1}{1+\exp{(-x)}}<br />\end{align*}<br />It is called the logistic or <strong>sigmoid function</strong> (due to its &#8220;S&#8221;-shaped curve, see figure on the side).</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-4dd0429" data-id="4dd0429" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-35829a1a elementor-widget elementor-widget-image" data-id="35829a1a" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="775" src="https://theeventhorizons.com/wp-content/uploads/2023/11/Image-Sigmoid-1024x775.png" class="attachment-large size-large wp-image-5687" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/Image-Sigmoid-1024x775.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-Sigmoid-300x227.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-Sigmoid-768x581.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-Sigmoid.png 1242w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Representation of the Logistic or Sigmoid Function</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-57f7b74e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="57f7b74e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-25e67b6a" data-id="25e67b6a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-33fe4985 elementor-widget elementor-widget-text-editor" data-id="33fe4985" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>By applying this function to our dataset, we obtain<br />\begin{align*}<br />\sigma(z)=\frac{1}{1+\exp{(-z)}}<br />\end{align*}</p><p>where \(z\) can be a linear function like \(ax + b\) or a polynomial function like \(ax^2 + bx + c\) (a polynomial of degree 2), with \(a\), \(b\), and \(c\) as parameters to be adjusted.</p><p>The significant advantage of such a function is that we can easily define a decision boundary by setting what is called a <strong>decision threshold value</strong>.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2cb19302 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2cb19302" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-55324385" data-id="55324385" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5fceed78 elementor-widget elementor-widget-image" data-id="5fceed78" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="767" src="https://theeventhorizons.com/wp-content/uploads/2023/11/Image-LogisticRegression-1024x767.png" class="attachment-large size-large wp-image-5706" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/Image-LogisticRegression-1024x767.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-LogisticRegression-300x225.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-LogisticRegression-768x575.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-LogisticRegression.png 1274w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Logistic Regression Curve on the Material Names Based on Their Density</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-6d8f67e4" data-id="6d8f67e4" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7c28cc92 elementor-widget elementor-widget-image" data-id="7c28cc92" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1000" height="584" src="https://theeventhorizons.com/wp-content/uploads/2023/11/Image-machine.jpg" class="attachment-large size-large wp-image-5700" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/Image-machine.jpg 1000w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-machine-300x175.jpg 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-machine-768x449.jpg 768w" sizes="(max-width: 1000px) 100vw, 1000px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-65af1f2e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="65af1f2e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1a5a39bb" data-id="1a5a39bb" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-8bafd84 elementor-widget elementor-widget-text-editor" data-id="8bafd84" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>To formally understand why we introduce such a function, it is crucial to grasp that in the world of classification, Wall-E&#8217;s idea is to estimate the probability of an sample belonging to each category (metal or plastic). This allows confidently classifying each new observation into the category associated with the highest probability. Thus, when the estimation is close to the correct answer, the probability should be very close to 1, and conversely, if the estimation deviates from reality, the probability is almost zero.</p><p>The robot draws inspiration from this fundamental notion when he approaches the concept of the sigmoid function. He understands that this function can be used to transform the results of logistic regression into probabilities. As if applying a kind of mathematical filter to his evaluation, the sigmoid function assigns to each component a probability of belonging to a given category. Thus, if this probability is greater than 0.5, the object is classified in the &#8220;metal&#8221; category, and if it is less than 0.5, it is classified as plastic.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3deb3836 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3deb3836" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-43c64606" data-id="43c64606" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-20675a43 elementor-widget elementor-widget-spacer" data-id="20675a43" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-517ba36d elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="517ba36d" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-377996a2" data-id="377996a2" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-17e485 elementor-widget elementor-widget-heading" data-id="17e485" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">Prediction Evaluation: The Cost Function</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-12bc5067 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="12bc5067" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-54643741" data-id="54643741" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-522a5b8 elementor-widget elementor-widget-text-editor" data-id="522a5b8" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Wall-E has developed his model, but he wants to evaluate the accuracy of his predictions. To do this, he undertakes to use one of the regression cost functions, the Mean Squared Error (MSE, see the article &#8220;<a href="https://theeventhorizons.com/wall-e-the-little-gold-miner/">Wall-E: The Little Gold Miner</a>&#8220;), defined as follows:</p><p>\begin{align*}<br />MSE(a, b) =\frac{1}{n} \sum_{k=1}^{n} \left(\sigma(x^{(k)})- y^{(k)}\right)^2.<br />\end{align*}</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6ed79605 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6ed79605" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-12070169" data-id="12070169" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4f2a61b9 elementor-widget elementor-widget-text-editor" data-id="4f2a61b9" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>However, he finds himself facing a new significant challenge, as illustrated in the image on the side.</p><p>This cost function does not exhibit convexity; in fact, it has multiple local minima. This characteristic makes the gradient descent algorithm less effective because, using the analogy of a mountainous terrain, Wall-E might get trapped in a local minimum that is not necessarily the global minimum of the curve.</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-15e54225" data-id="15e54225" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-156ca91b elementor-widget elementor-widget-image" data-id="156ca91b" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="772" src="https://theeventhorizons.com/wp-content/uploads/2023/11/Image-NonConvexFunction-1024x772.png" class="attachment-large size-large wp-image-5707" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/Image-NonConvexFunction-1024x772.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-NonConvexFunction-300x226.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-NonConvexFunction-768x579.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-NonConvexFunction.png 1266w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Example of a Non-Convex Function with Local Minima and a Global Minimum</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-18ef4bf elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="18ef4bf" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-74f8f46e" data-id="74f8f46e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-705678ea elementor-widget elementor-widget-text-editor" data-id="705678ea" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>He introduces a new cost function using the logarithm:</p><p>\begin{align*}<br />L(a,b)=-\frac{1}{n}\sum_{k=1}^n\left[y^{(k)}\log{\left\{\sigma\left(ax^{(k)}+b\right)\right\}}+\left(1-y^{(k)}\right)\log{\left\{1-\sigma\left(ax^{(k)}+b\right)\right\}}\right]<br />\end{align*}</p><p>This complex cost function, although it may seem intimidating at first, is actually a powerful tool for evaluating the model&#8217;s performance. Let me delve deeper to explain why Wall-E chose this function and how it works.</p><p>The main goal of a cost function is to measure how well the model&#8217;s predictions match the actual values. The closer this match, the lower the value of the cost function. In the case of the first cost function, Wall-E had used a more direct approach, where he compared the model&#8217;s predictions (obtained by applying the sigmoid function to weighted inputs) to the true values. However, he noticed that this approach could pose problems during optimization.</p><p>The new cost function introduced by Wall-E uses the logarithm for a specific reason. It consists of two parts: one for cases where the class label is 1 (metal) and one for cases where the label is 0 (plastic). Let&#8217;s see in detail how these parts work.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5d156453 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5d156453" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-4b6ba255" data-id="4b6ba255" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-f05c38d elementor-widget elementor-widget-text-editor" data-id="f05c38d" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The first part of the cost function, when a label is 1, is represented by the following term:<br />\begin{align*}<br />-y^{(k)}\log{\left\{\sigma\left(x^{(k)}\right)\right\}}<br />\end{align*}</p><p>Here, \(y^{(k)}\) is the true class value for training example \(k\), and \(x^{(k)}\) is the corresponding input. When \(y^{(k)}\) is 1 (the example belongs to the metal class), and the prediction \(\sigma\left(x^{(k)}\right)\) approaches 1, the value of \(-\log{\left\{\sigma\left(x^{(k)}\right)\right\}}\) tends toward 0, contributing to a low cost value for this example (the error is low because our prediction is good). On the other hand, if the prediction is close to 0, the value of \(-\log{\left\{\sigma\left(x^{(k)}\right)\right\}}\) becomes very large, leading to an increase in cost.</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-1bccd73a" data-id="1bccd73a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-17dd5ccc elementor-widget elementor-widget-image" data-id="17dd5ccc" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="773" src="https://theeventhorizons.com/wp-content/uploads/2023/11/Image-FirstPart-1024x773.png" class="attachment-large size-large wp-image-5718" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/Image-FirstPart-1024x773.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-FirstPart-300x227.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-FirstPart-768x580.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-FirstPart.png 1266w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text"> First part of the cost function</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-14e2ae7d elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="14e2ae7d" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-28aa08da" data-id="28aa08da" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3364cb0e elementor-widget elementor-widget-image" data-id="3364cb0e" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="772" src="https://theeventhorizons.com/wp-content/uploads/2023/11/Image-SecondPart-1024x772.png" class="attachment-large size-large wp-image-5719" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/Image-SecondPart-1024x772.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-SecondPart-300x226.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-SecondPart-768x579.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-SecondPart.png 1268w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Second part of the cost function</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-14125cc3" data-id="14125cc3" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4657c999 elementor-widget elementor-widget-text-editor" data-id="4657c999" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The second part of the cost function addresses cases where the label is 0:</p><p>\begin{align*}<br />-\left(1-y^{(k)}\right)\log{\left\{1-\sigma\left(x^{(k)}\right)\right\}}<br />\end{align*}</p><p>When \(y^{(k)}\) is 0 (the example belongs to the plastic class) and the prediction \(\sigma\left(x^{(k)}\right)\) is close to 0, the term \(\log{\left\{1-\sigma\left(x^{(k)}\right)\right\}}\) tends toward 0, contributing to a low cost. However, if the prediction approaches 1, \(\log{\left\{1-\sigma\left(x^{(k)}\right)\right\}}\) becomes large, increasing the cost.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-349575a7 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="349575a7" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6c4464ab" data-id="6c4464ab" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-e6a40a0 elementor-widget elementor-widget-text-editor" data-id="e6a40a0" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Thus, when \(y^{(k)}\) is 1 in the cost function, only the first part of the function comes into play, and if it is 0, the other part is considered.</p><p>The total cost function is the average of these two parts, taken over the entire training set \(n\), to obtain an overall measure of the model&#8217;s fit to the training data. This allows evaluating the model&#8217;s prediction errors in a way that penalizes more significant errors.</p><p>Now, why choose such a complex cost function? The goal is to enable more efficient optimization of the model. This cost function has the advantage of possessing a convexity property, meaning it has only one global minimum and no local minima. This greatly facilitates the use of optimization algorithms such as gradient descent to adjust the model parameters. By avoiding local minima, Wall-E can be more confident that the optimization will lead to a higher-quality solution.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-20f5fd4f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="20f5fd4f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-58baabba" data-id="58baabba" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2b8073d9 elementor-widget elementor-widget-spacer" data-id="2b8073d9" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3716cc03 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3716cc03" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-579cb94f" data-id="579cb94f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4fc40e1 elementor-widget elementor-widget-heading" data-id="4fc40e1" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">The Return of the Gradient Descent</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2014485f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2014485f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-672a4f5" data-id="672a4f5" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-25e95f0 elementor-widget elementor-widget-text-editor" data-id="25e95f0" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Do you remember gradient descent for regression? We do exactly the same thing but with the new cost function. Algorithmically, we have:</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-587c8947 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="587c8947" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-7ceca3a4" data-id="7ceca3a4" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-10470f09 elementor-widget elementor-widget-text-editor" data-id="10470f09" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>• Our robot calculates the gradients of the cost function at each iteration, which can be expressed mathematically as follows:<br />\begin{align*}<br />\frac{\partial L(a, b)}{\partial a}&amp;=\frac{1}{n}\sum_{k=1}^n\left(\sigma\left(ax^{(k)}+b\right)-y^{(k)}\right)x^{(k)},\\<br />\frac{\partial L(a, b)}{\partial b}&amp;=\frac{1}{n}\sum_{k=1}^n\left(\sigma\left(ax^{(k)}+b\right)-y^{(k)}\right).<br />\end{align*}<br />Fortunately, we have a similar form as before.</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-650dd7c1" data-id="650dd7c1" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7052eda8 elementor-widget elementor-widget-image" data-id="7052eda8" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1000" height="563" src="https://theeventhorizons.com/wp-content/uploads/2023/11/intro-1608234708.jpg" class="attachment-large size-large wp-image-5129" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/intro-1608234708.jpg 1000w, https://theeventhorizons.com/wp-content/uploads/2023/11/intro-1608234708-300x169.jpg 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/intro-1608234708-768x432.jpg 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/intro-1608234708-800x450.jpg 800w" sizes="(max-width: 1000px) 100vw, 1000px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-cb55abe elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="cb55abe" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-71d4e8e3" data-id="71d4e8e3" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3e46978e elementor-widget elementor-widget-text-editor" data-id="3e46978e" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>• It updates the parameters with the new parameters \(a^*\) and \(b^*\), which are expressed as:<br />\begin{align*}<br />a^*&amp;=a-\delta\times\frac{\partial L(a, b)}{\partial a}\\<br />b^*&amp;=b- \delta\times\frac{L(a, b)}{\partial b}<br />\end{align*}</p><p>• It repeats this process until it finds the minimum of the cost function.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-36bfa62f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="36bfa62f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5165fde5" data-id="5165fde5" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3fe18ec2 elementor-widget elementor-widget-spacer" data-id="3fe18ec2" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-39a93a4a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="39a93a4a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-116cf3c5" data-id="116cf3c5" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-b4787c7 elementor-widget elementor-widget-heading" data-id="b4787c7" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">The Power of the Little Waste Sorter</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-c7073d8 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="c7073d8" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7e4f7ae1" data-id="7e4f7ae1" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-56bc4e35 elementor-widget elementor-widget-text-editor" data-id="56bc4e35" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>This is how we find ourselves at the heart of his waste sorting mission. Data tables spread out before him, adorned with vectors and matrices revealing the mysteries of electronic component samples. There is the vector \(\mathbf{Y}\) composed of n elements corresponding to the n samples of electronic components.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-69fd3914 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="69fd3914" data-element_type="section" data-e-type="section" data-settings="{&quot;background_background&quot;:&quot;classic&quot;}">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-59fc5bbe" data-id="59fc5bbe" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-52a8dbb9 elementor-widget elementor-widget-text-editor" data-id="52a8dbb9" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									\begin{equation*}
\mathbf{Y}=\begin{bmatrix}
y^{(1)} \\
y^{(2)} \\
\vdots\\
y^{(n)}
\end{bmatrix}
\end{equation*}								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-e5613d1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="e5613d1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-34369e91" data-id="34369e91" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-15597afb elementor-widget elementor-widget-text-editor" data-id="15597afb" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Alongside this vector, a matrix \(\mathbf{X}\) appears, consisting of n rows and m+1 columns. This matrix contains the specific features of each sample, here only one feature of density and its bias column.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2499a43e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2499a43e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7735a1e7" data-id="7735a1e7" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-db74422 elementor-widget elementor-widget-text-editor" data-id="db74422" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									 \begin{equation*}
\mathbf{X}=\left[
\begin{array}{cc}
x^{(1)}  &#038; 1\\
x^{(2)} &#038; 1\\
\vdots &#038; \vdots\\
x^{(n)} &#038; 1
\end{array}
\right].
\end{equation*}								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2676c4f4 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2676c4f4" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-52d8e28a" data-id="52d8e28a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-916e89c elementor-widget elementor-widget-text-editor" data-id="916e89c" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Remember that, in general, we have:</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-59999bf9 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="59999bf9" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f3862f6" data-id="f3862f6" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1179675c elementor-widget elementor-widget-text-editor" data-id="1179675c" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									 \begin{equation*}
\mathbf{X}=\left[
\begin{array}{cccc}
   x^{(1)}_1 &#038; \cdots &#038; x^{(1)}_m &#038; 1\\
   \vdots &#038; \ddots &#038; \vdots &#038; \vdots \\
   x^{(n)}_1 &#038; \cdots &#038; x^{(n)}_m &#038; 1
\end{array}
\right].
\end{equation*}								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-721e8eab elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="721e8eab" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-43634f7f" data-id="43634f7f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-66ee68c8 elementor-widget elementor-widget-text-editor" data-id="66ee68c8" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>We also have a &#8220;parameter&#8221; vector \(\mathbf{P}\) gathering the model parameters \(a\) and \(b\), which will be used to minimize the cost function.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-45fc6079 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="45fc6079" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-68fad7f6" data-id="68fad7f6" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2ce51bf4 elementor-widget elementor-widget-text-editor" data-id="2ce51bf4" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									\begin{equation*}
\mathbf{P}=\begin{bmatrix}
a \\
b
\end{bmatrix}.
\end{equation*}								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-14ea4836 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="14ea4836" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-281299c7" data-id="281299c7" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1815f376 elementor-widget elementor-widget-text-editor" data-id="1815f376" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>This classification task can be compared to a problem he has already solved, where he estimated the price of gold based on its purity. To tackle this new challenge, Wall-E uses a similar approach based on the sigmoid function, translating his calculations into matrix form.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-465d941a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="465d941a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4693dcb1" data-id="4693dcb1" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4a03a2b1 elementor-widget elementor-widget-text-editor" data-id="4a03a2b1" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>• <strong>The Collect</strong> is carried out by displaying the data in a matrix: each sample, with its density features and class, finds its place in this matrix.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-62b73046 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="62b73046" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-61dddfbe" data-id="61dddfbe" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-28833188 elementor-widget elementor-widget-text-editor" data-id="28833188" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>• <strong>Model Creation</strong> is the process where Wall-E defines the parameters displayed in the column \(\mathbf{P}\) taken at random, which are used to establish the relationship between density and the nature of the component using the sigmoid function in a somewhat barbaric matrix form (where the sigmoid is applied to each coordinate).</p><p>\begin{equation*}<br />\mathbf{\sigma(X\times P)}=\left[<br />\begin{array}{c}<br />\frac{1}{1+\exp{(-ax^{(1)}+b)}}\\<br />\frac{1}{1+\exp{(-ax^{(2)}+b)}} \\<br />\vdots \\<br />\frac{1}{1+\exp{(-ax^{(n)}+b)}} \\<br />\end{array}<br />\right].<br />\end{equation*}</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1e3e60c2 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1e3e60c2" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3bcb306" data-id="3bcb306" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-61940c03 elementor-widget elementor-widget-text-editor" data-id="61940c03" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>• <strong>The Cost Function</strong> is redefined as follows:<br />\begin{align*}<br />L(\mathbf{P})=-\frac{1}{n}\left[\mathbf{Y\cdot\log{\left\{\sigma(X\times P)\right\}}}+\mathbf{(1-Y)\cdot\log{\left\{1-\sigma(X\times P)\right\}}}\right].<br />\end{align*}</p><p>where \(\cdot\) represents the dot product.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-35271a46 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="35271a46" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-28674d15" data-id="28674d15" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-16c27bf2 elementor-widget elementor-widget-text-editor" data-id="16c27bf2" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>• <strong>Finding the minimum</strong> is equivalent to calculating the gradient:<br />\begin{align*}<br />\frac{\partial }{\partial \mathbf{P}} L(\mathbf{P})=\frac{1}{n}\mathbf{X\cdot\left(\sigma(X\times P)-Y\right)}<br />\end{align*}<br />et à appliquer itérativement la descente de gradient pour mettre à jour le paramètre \(\textbf{P}\):<br />\begin{align*}<br />\mathbf{P^*}=\mathbf{P}-\delta \frac{\partial }{\partial \mathbf{P}}L(\mathbf{P})<br />\end{align*}<br />where \(\mathbf{P^*}\) is the new parameter.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-437481f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="437481f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7fa4176e" data-id="7fa4176e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3ffaede1 elementor-widget elementor-widget-text-editor" data-id="3ffaede1" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Wall-E, through a rigorous execution of all the required steps, has perfected his ability to sort plastic from metal. He is now ready to classify any material you provide him! Explore the final curve he has obtained.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1eda642f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1eda642f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-6a086d49" data-id="6a086d49" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6092ab74 elementor-widget elementor-widget-image" data-id="6092ab74" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="614" src="https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Final-1024x614.png" class="attachment-large size-large wp-image-5790" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Final-1024x614.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Final-300x180.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Final-768x461.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Final-1536x921.png 1536w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Final.png 1994w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Final representation of the sigmoid function fitting the data most effectively</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-24b1433b" data-id="24b1433b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-b8f5c77 elementor-widget elementor-widget-text-editor" data-id="b8f5c77" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Our favorite robot has opted for the use of a linear function in his logistic regression. The optimal parameters he determined after the gradient descent are \(a = 16.85\) and \(b = 9.71\).</p><p>Analysis of the graph reveals that if the robot encounters a material with a density of 1.5, for example, it can assert with an accuracy of about 80% that it is plastic. For a density of 0.5, it can identify the material as plastic with an accuracy of 98%, while a density of 4 leads it to conclude it&#8217;s metal with an accuracy of 99%.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-56e0816e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="56e0816e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2a4776f5" data-id="2a4776f5" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-24b584e3 elementor-widget elementor-widget-text-editor" data-id="24b584e3" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Thus, thanks to its logistic regression model, the robot can generally determine with an accuracy of 93% whether the provided material is metal or plastic. However, to further refine its predictions, it would be beneficial to explore more complex features in the sigmoid function, such as using polynomials with a greater number of parameters to adjust, for example.</p><p>Moreover, the model could be significantly enhanced by adopting more sophisticated algorithms than logistic regression. Approaches such as Random Forests, Support Vector Machines (SVM), or even k-Nearest Neighbors (which we will explore in the next sections) could offer optimized performance.</p><p>Another strategy to strengthen the model&#8217;s capacity would be to provide it with a broader set of features, such as electrical conductivity, thermal conductivity, etc., or to increase the amount of data. By enriching the dataset in this way, the robot could improve its understanding of existing nuances between different types of materials, leading to more accurate and robust classifications.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-f70519a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="f70519a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-52cd65b7" data-id="52cd65b7" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7528192b elementor-widget elementor-widget-spacer" data-id="7528192b" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6db875a1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6db875a1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-37b6db0c" data-id="37b6db0c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-52ac15b8 elementor-widget elementor-widget-heading" data-id="52ac15b8" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">Beyond Waste Sorting: Determining Metal Types</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-521a819f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="521a819f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-10088619" data-id="10088619" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2b69ae0a elementor-widget elementor-widget-text-editor" data-id="2b69ae0a" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Exploring deeper into the realm of metal classification, Wall-E faces a more intricate challenge: determining the specific type of metal among a variety of alloys, including bronze, gold, silver, and many others.</p><p>To tackle this challenge, Wall-E&#8217;s tool of choice becomes the k-Nearest Neighbors (KNN) algorithm.</p><p>It&#8217;s worth noting that we have created the dataset from scratch by randomly selecting the features of the samples, but close enough to the fixed values of density and electrical conductivity of pure metals (which determine a metal&#8217;s ability to conduct electricity). Here is the list of all the pure metals we have recorded for Wall-E with their respective characteristics.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-167553b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="167553b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-5a61e96a" data-id="5a61e96a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5b580f41 elementor-widget elementor-widget-shortcode" data-id="5b580f41" data-element_type="widget" data-e-type="widget" data-widget_type="shortcode.default">
				<div class="elementor-widget-container">
							<div class="elementor-shortcode">
<table id="tablepress-32" class="tablepress tablepress-id-32">
<thead>
<tr class="row-1">
	<th class="column-1">Type of Metal</th><th class="column-2">Electrical Conductivity (in Giga S/m)</th><th class="column-3">Density</th>
</tr>
</thead>
<tbody class="row-striping row-hover">
<tr class="row-2">
	<td class="column-1">Steel</td><td class="column-2">1.5</td><td class="column-3">7.500 - 8.100</td>
</tr>
<tr class="row-3">
	<td class="column-1">Aluminium </td><td class="column-2">37.7</td><td class="column-3">2.700</td>
</tr>
<tr class="row-4">
	<td class="column-1">Silver</td><td class="column-2">63</td><td class="column-3">10.500</td>
</tr>
<tr class="row-5">
	<td class="column-1">Beryllium</td><td class="column-2">31.3</td><td class="column-3">1.848</td>
</tr>
<tr class="row-6">
	<td class="column-1">Bronze</td><td class="column-2">7.4</td><td class="column-3">8.400 - 9.200</td>
</tr>
<tr class="row-7">
	<td class="column-1">Carbone (graphite)</td><td class="column-2">61</td><td class="column-3">2.250</td>
</tr>
<tr class="row-8">
	<td class="column-1">Copper</td><td class="column-2">59.6</td><td class="column-3">8.960</td>
</tr>
<tr class="row-9">
	<td class="column-1">Tin</td><td class="column-2">9.17</td><td class="column-3">7.290</td>
</tr>
<tr class="row-10">
	<td class="column-1">Iron</td><td class="column-2">9.93</td><td class="column-3">7.860</td>
</tr>
<tr class="row-11">
	<td class="column-1">Iridium</td><td class="column-2">19.7</td><td class="column-3">22.560</td>
</tr>
<tr class="row-12">
	<td class="column-1">Lithium</td><td class="column-2">10.8</td><td class="column-3">5.30</td>
</tr>
<tr class="row-13">
	<td class="column-1">Magnesium</td><td class="column-2">22.6</td><td class="column-3">1.750</td>
</tr>
</tbody>
</table>
</div>
						</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-1e0479b4" data-id="1e0479b4" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1794cdec elementor-widget elementor-widget-shortcode" data-id="1794cdec" data-element_type="widget" data-e-type="widget" data-widget_type="shortcode.default">
				<div class="elementor-widget-container">
							<div class="elementor-shortcode">
<table id="tablepress-31" class="tablepress tablepress-id-31">
<thead>
<tr class="row-1">
	<td class="column-1"></td><td class="column-2"></td><td class="column-3"></td>
</tr>
</thead>
<tbody class="row-striping row-hover">
<tr class="row-2">
	<td class="column-1">Mercury</td><td class="column-2">1.04</td><td class="column-3">13.545</td>
</tr>
<tr class="row-3">
	<td class="column-1">Molybdenum</td><td class="column-2">18.7</td><td class="column-3">10.200</td>
</tr>
<tr class="row-4">
	<td class="column-1">Nickel</td><td class="column-2">14.3</td><td class="column-3">8.900</td>
</tr>
<tr class="row-5">
	<td class="column-1">Gold</td><td class="column-2">45.2</td><td class="column-3">19.300</td>
</tr>
<tr class="row-6">
	<td class="column-1">Osmium</td><td class="column-2">10.9</td><td class="column-3">22.610</td>
</tr>
<tr class="row-7">
	<td class="column-1">Palladium</td><td class="column-2">9.5</td><td class="column-3">12.000</td>
</tr>
<tr class="row-8">
	<td class="column-1">Platinium</td><td class="column-2">9.66</td><td class="column-3">21.450</td>
</tr>
<tr class="row-9">
	<td class="column-1">Lead</td><td class="column-2">4.81</td><td class="column-3">11.350</td>
</tr>
<tr class="row-10">
	<td class="column-1">Potassium</td><td class="column-2">13.9</td><td class="column-3">0.850</td>
</tr>
<tr class="row-11">
	<td class="column-1">Tantalum</td><td class="column-2">7.61</td><td class="column-3">16.600</td>
</tr>
<tr class="row-12">
	<td class="column-1">Titanium</td><td class="column-2">2.34</td><td class="column-3">4.500</td>
</tr>
<tr class="row-13">
	<td class="column-1">Tungsten</td><td class="column-2">8.9</td><td class="column-3">19.300</td>
</tr>
<tr class="row-14">
	<td class="column-1">Uranium</td><td class="column-2">3.8</td><td class="column-3">19.100</td>
</tr>
<tr class="row-15">
	<td class="column-1">Vanadium</td><td class="column-2">4.89</td><td class="column-3">6.100</td>
</tr>
<tr class="row-16">
	<td class="column-1">Zinc</td><td class="column-2">16.6</td><td class="column-3">7.150</td>
</tr>
</tbody>
</table>
</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-537e6acc elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="537e6acc" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2df1303d" data-id="2df1303d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-34940ed4 elementor-widget elementor-widget-text-editor" data-id="34940ed4" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-weight: 400;">This simulates metallic alloys, where each alloy is considered to be composed of a pure metal to be determined and impurities that slightly modify its characteristics. Wall-E&#8217;s database includes 300 samples for each type of metallic alloy. Here are five of them, each characterized by its distinctive properties.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-44e3ce76 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="44e3ce76" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6287d17" data-id="6287d17" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1c3a175b elementor-widget elementor-widget-shortcode" data-id="1c3a175b" data-element_type="widget" data-e-type="widget" data-widget_type="shortcode.default">
				<div class="elementor-widget-container">
							<div class="elementor-shortcode">
<table id="tablepress-30" class="tablepress tablepress-id-30">
<thead>
<tr class="row-1">
	<th class="column-1">Type of Metal</th><th class="column-2">Electrical Conductivity (in Giga S/m)</th><th class="column-3">Density</th>
</tr>
</thead>
<tbody class="row-striping row-hover">
<tr class="row-2">
	<td class="column-1">Steel</td><td class="column-2">2.7093</td><td class="column-3">7.7446</td>
</tr>
<tr class="row-3">
	<td class="column-1">Vanadium</td><td class="column-2">5.8000</td><td class="column-3">7.5000</td>
</tr>
<tr class="row-4">
	<td class="column-1">Iron</td><td class="column-2">9.2600</td><td class="column-3">8.4000</td>
</tr>
<tr class="row-5">
	<td class="column-1">Gold</td><td class="column-2">43.000</td><td class="column-3">18.500</td>
</tr>
<tr class="row-6">
	<td class="column-1">Bronze</td><td class="column-2">7.51320</td><td class="column-3">8.7000</td>
</tr>
</tbody>
</table>
</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2f36ecd3 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2f36ecd3" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2df6f8ac" data-id="2df6f8ac" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-338d331b elementor-widget elementor-widget-text-editor" data-id="338d331b" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Wall-E&#8217;s goal will be to classify each metallic sample he finds based on its density and electrical conductivity into a category of pure metals.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-73bf0767 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="73bf0767" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1a8290f5" data-id="1a8290f5" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-760b62e0 elementor-widget elementor-widget-heading" data-id="760b62e0" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-medium">Contrast with Binary Classification and Complexities of Multiclass Classification</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-724c8e7f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="724c8e7f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-47a82d43" data-id="47a82d43" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-460bdedb elementor-widget elementor-widget-text-editor" data-id="460bdedb" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Wall-E, having mastered binary classification to distinguish precious metals from plastics, realizes that the next step, multiclass classification, poses a more complex challenge. While binary classification simply divides objects into two distinct categories, such as metal or plastic, Wall-E must now differentiate between specific types. The simplicity of a decision boundary like a line, used in binary classification, is no longer sufficient.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3bd6696b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3bd6696b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-59648e9c" data-id="59648e9c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2fb32e63 elementor-widget elementor-widget-image" data-id="2fb32e63" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="606" src="https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Metal-and-alloys-e1701564467971-1024x606.png" class="attachment-large size-large wp-image-5785" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Metal-and-alloys-e1701564467971-1024x606.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Metal-and-alloys-e1701564467971-300x178.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Metal-and-alloys-e1701564467971-768x454.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Metal-and-alloys-e1701564467971-1536x909.png 1536w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Metal-and-alloys-e1701564467971.png 1925w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Type of metal based on density and electrical conductivity (in Giga Siemens per meter). 300 samples for each alloy.</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5f1257bb elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5f1257bb" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2ffd6338" data-id="2ffd6338" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7d6deb57 elementor-widget elementor-widget-text-editor" data-id="7d6deb57" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>In this new territory, Wall-E must navigate a complex feature space where metals can overlap. This complexity demands a more sophisticated approach, and this is where Wall-E turns to a method that takes into account the subtleties of relationships between metals.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-658f8ac5 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="658f8ac5" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2908fb12" data-id="2908fb12" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-11f11962 elementor-widget elementor-widget-heading" data-id="11f11962" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-medium">The Power of Proximity: K Nearest Neighbors</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2309ccec elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2309ccec" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-527fc4e1" data-id="527fc4e1" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7e9e15eb elementor-widget elementor-widget-text-editor" data-id="7e9e15eb" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>In this quest, Wall-E turns to the KNN algorithm, or K Nearest Neighbors, which is a classification method based on the fundamental concept of proximity in the feature space.</p><p>The essential idea behind KNN is to group similar objects in the feature space. In our context, this means that if a piece of bronze shares similar characteristics with other pieces of bronze, these objects will be located close to each other in this multidimensional space. Wall-E skillfully exploits this notion to assign each piece of metal a label corresponding to its type.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5f72f887 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5f72f887" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-737d1e4a" data-id="737d1e4a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-18189880 elementor-widget elementor-widget-text-editor" data-id="18189880" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="font-size: 15px; color: var( --e-global-color-text );"> </span></p><p><span style="font-size: 15px; color: var( --e-global-color-text );"> </span></p><p><span style="font-size: 15px; color: var( --e-global-color-text );">Its operational process is quite intuitive. When a new piece of metal needs to be classified, Wall-E measures its specific characteristics, such as density, electrical conductivity, etc., thus positioning it in the feature space. The algorithm then identifies the k nearest neighbors of this new piece in this space. These neighbors are the pieces of metal that share similar characteristics.</span></p><p>Once the neighbors are identified, KNN assigns the new piece the type of metal that receives the most votes among these close neighbors. It&#8217;s as if each neighbor is voting for the category to which it belongs, and the type of metal with the highest number of votes is assigned to the new piece.</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-28668a76" data-id="28668a76" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-20f3087 elementor-widget elementor-widget-image" data-id="20f3087" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1003" height="1024" src="https://theeventhorizons.com/wp-content/uploads/2023/12/Image-KNN-voisin-1003x1024.png" class="attachment-large size-large wp-image-5766" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/12/Image-KNN-voisin-1003x1024.png 1003w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-KNN-voisin-294x300.png 294w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-KNN-voisin-768x784.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-KNN-voisin-1505x1536.png 1505w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-KNN-voisin.png 1562w" sizes="(max-width: 1003px) 100vw, 1003px" />											<figcaption class="widget-image-caption wp-caption-text">Classification using the KNN algorithm with 5 neighbors and 3 classes depending on two features.</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-154855c0 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="154855c0" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1237f968" data-id="1237f968" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-73cff93f elementor-widget elementor-widget-text-editor" data-id="73cff93f" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>This flexible and proximity-based approach allows Wall-E to accurately classify metals, even without having an in-depth understanding of the specific characteristics of each type. Thus, KNN becomes an effective ally in Wall-E&#8217;s quest to determine the type of metal by harnessing the power of proximity in the feature space.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5e2960d1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5e2960d1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6c5ef556" data-id="6c5ef556" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7864120e elementor-widget elementor-widget-spacer" data-id="7864120e" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-963004a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="963004a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-42de7e83" data-id="42de7e83" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-11e561b1 elementor-widget elementor-widget-heading" data-id="11e561b1" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-medium">Metal Classification Process: Neighbors in Action</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-10cefddb elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="10cefddb" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4eb67bd3" data-id="4eb67bd3" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4f962454 elementor-widget elementor-widget-text-editor" data-id="4f962454" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Wall-E searches through its relatively extensive database, which includes various types of metals and alloys, each associated with specific characteristics such as electrical conductivity, density, and other unique properties. These features constitute the dimensions of the feature space where each metal is represented. Unfortunately, Wall-E hasn&#8217;t had the time to measure all the properties of each metal and must therefore make do with only density and electrical conductivity.</p><p>When a new piece of metal comes in, Wall-E activates the KNN algorithm to determine its type. The process unfolds as follows:</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4aba61a4 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4aba61a4" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-286086d3" data-id="286086d3" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6bb416 elementor-widget elementor-widget-text-editor" data-id="6bb416" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>• <strong>Feature Measurement</strong>: Wall-E measures the characteristics of the new piece of metal, placing it in the feature space.</p><p>• <strong>Identification of Close Neighbors</strong>: KNN identifies the k nearest neighbors of the new piece in this feature space. These neighbors are pieces of metal that share similar characteristics.</p><p>• <strong>Majority Votes</strong>: By examining the metal types of the neighbors, Wall-E assigns the new piece the type that receives the most votes among the close neighbors, i.e., the majority metal type.</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-440fe337" data-id="440fe337" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2e3c2883 elementor-widget elementor-widget-image" data-id="2e3c2883" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="480" height="288" src="https://theeventhorizons.com/wp-content/uploads/2023/11/Image-611929-wall_e_6.jpg" class="attachment-large size-large wp-image-5696" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/Image-611929-wall_e_6.jpg 480w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-611929-wall_e_6-300x180.jpg 300w" sizes="(max-width: 480px) 100vw, 480px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6f59b262 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6f59b262" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7defd876" data-id="7defd876" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-329d75f4 elementor-widget elementor-widget-text-editor" data-id="329d75f4" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>This process of proximity and voting enables Wall-E to accurately classify the new piece of metal, even without an in-depth knowledge of the specific characteristics of each type. He excels at this!</p><p>Embarking on a quest in search of electronic artifacts aboard his spaceship, our intrepid explorer engages in a meticulous process of disassembly and measurement, scrutinizing the density and electrical conductivity of each unknown component. Thanks to the KNN algorithm, finely tuned with an optimal parameter k of 20 neighbors, chosen after thorough trials (see the next section), he can confidently assert his ability to identify any metal alloy with an assurance approaching 95%.</p><p>A technological feat that attests to the precision of his classifications.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2018c5cc elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2018c5cc" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-3b8a9244" data-id="3b8a9244" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5d8448cb elementor-widget elementor-widget-image" data-id="5d8448cb" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="630" src="https://theeventhorizons.com/wp-content/uploads/2023/12/Image-gold-18.5-43-sur-a-100pourcent-1024x630.png" class="attachment-large size-large wp-image-5792" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/12/Image-gold-18.5-43-sur-a-100pourcent-1024x630.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-gold-18.5-43-sur-a-100pourcent-300x185.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-gold-18.5-43-sur-a-100pourcent-768x473.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-gold-18.5-43-sur-a-100pourcent-1536x945.png 1536w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-gold-18.5-43-sur-a-100pourcent.png 1849w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">The ranking of an unknown metallic sample based on its density and electrical conductivity, which turns out to be an alloy of gold.</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-7b5b390b" data-id="7b5b390b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-73bbe9c8 elementor-widget elementor-widget-text-editor" data-id="73bbe9c8" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p> </p><p> </p><p>The first object subjected to his analysis reveals a density of 18.5 and an electrical conductivity of 43 gigasiemens per meter. Our explorer is filled with enthusiasm, realizing that he has come across gold!</p><p>Even better, his certainty reaches an impressive score of 100%, as clearly suggested by the graph alongside.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-47f3f8bf elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="47f3f8bf" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-1183fce1" data-id="1183fce1" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5700ab4 elementor-widget elementor-widget-text-editor" data-id="5700ab4" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p> </p><p>The second component capturing his attention is a grayish metal plate, displaying traces of rust. The measurements reveal a density of 8.4 and an electrical conductivity of 9.26 gigasiemens per meter.</p><p>The application of his KNN algorithm hints at a high probability of an iron alloy, with a certainty of 70%. However, a degree of uncertainty remains, leading him to also consider possibilities such as bronze (20% probable) or tin (10% probable). The mystery persists, unveiling the complexity of the discovered metallic elements.</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-533ddfcf" data-id="533ddfcf" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-16941c9b elementor-widget elementor-widget-image" data-id="16941c9b" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="651" src="https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Vanadium-7.5-5.8-70-pour-cent-vanadium-25-pour-cent-etain-et-5-pour-cent-fer-1024x651.png" class="attachment-large size-large wp-image-5793" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Vanadium-7.5-5.8-70-pour-cent-vanadium-25-pour-cent-etain-et-5-pour-cent-fer-1024x651.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Vanadium-7.5-5.8-70-pour-cent-vanadium-25-pour-cent-etain-et-5-pour-cent-fer-300x191.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Vanadium-7.5-5.8-70-pour-cent-vanadium-25-pour-cent-etain-et-5-pour-cent-fer-768x488.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Vanadium-7.5-5.8-70-pour-cent-vanadium-25-pour-cent-etain-et-5-pour-cent-fer-1536x976.png 1536w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Vanadium-7.5-5.8-70-pour-cent-vanadium-25-pour-cent-etain-et-5-pour-cent-fer.png 1833w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">The ranking of an unknown metallic sample based on its density and electrical conductivity, which turns out to be an alloy of iron.</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5d3d6ad1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5d3d6ad1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-8b11075" data-id="8b11075" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3989e242 elementor-widget elementor-widget-image" data-id="3989e242" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="625" src="https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Fer-8.4-9.26-20-pour-cent-bronze-70-pour-cent-fer-10-pour-cent-etain-1024x625.png" class="attachment-large size-large wp-image-5789" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Fer-8.4-9.26-20-pour-cent-bronze-70-pour-cent-fer-10-pour-cent-etain-1024x625.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Fer-8.4-9.26-20-pour-cent-bronze-70-pour-cent-fer-10-pour-cent-etain-300x183.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Fer-8.4-9.26-20-pour-cent-bronze-70-pour-cent-fer-10-pour-cent-etain-768x469.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Fer-8.4-9.26-20-pour-cent-bronze-70-pour-cent-fer-10-pour-cent-etain-1536x938.png 1536w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Fer-8.4-9.26-20-pour-cent-bronze-70-pour-cent-fer-10-pour-cent-etain.png 1956w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">The ranking of an unknown metallic sample based on its density and electrical conductivity, which turns out to be an alloy of vanadium.</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-2cbed1e7" data-id="2cbed1e7" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3dacc1f3 elementor-widget elementor-widget-text-editor" data-id="3dacc1f3" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p> </p><p>Finally, the last component, with a density of 7.5 and electrical conductivity of 5.8 gigasiemens per meter, unveils a complex metallic composition.</p><p>In-depth analysis by the KNN algorithm indicates a predominance of a particularly rare metal: vanadium, likely around 70%. It is closely followed by tin at 25%, and finally iron at a proportion of 5%.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-15fe269 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="15fe269" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2ac9fc3" data-id="2ac9fc3" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-421afa3 elementor-widget elementor-widget-text-editor" data-id="421afa3" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Wall-E quickly grasps the intricacies of the analysis process, especially the complexity that arises when metals overlap on the graph. He acknowledges that predicting with absolute certainty of 100% can become challenging in these situations. However, despite these challenges, the results obtained by the KNN algorithm remain exceptional.</p><p>The algorithm&#8217;s performance in metal classification, even in scenarios where features overlap, attests to its efficiency and robustness. Thus, Wall-E can leverage this powerful technique to explore and classify various metallic components with increased confidence.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-57495761 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="57495761" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-58328a30" data-id="58328a30" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5582a76a elementor-widget elementor-widget-spacer" data-id="5582a76a" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-69f48835 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="69f48835" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-35fe2671" data-id="35fe2671" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6c5a2dd3 elementor-widget elementor-widget-heading" data-id="6c5a2dd3" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">The Art of Model Selection</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-619fbbbb elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="619fbbbb" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-47e1f8b8" data-id="47e1f8b8" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3f36969c elementor-widget elementor-widget-text-editor" data-id="3f36969c" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>In the heart of its quest for sorting electronic components (Classification) and even in estimating the price of gold (Regression), the little robot becomes aware of the need to navigate with caution</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-74a44ce7 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="74a44ce7" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-518d4a7b" data-id="518d4a7b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-67e6e82 elementor-widget elementor-widget-heading" data-id="67e6e82" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-medium">
Exploring New Horizons: Training and Testing</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6090e2e5 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6090e2e5" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-34bfc9c7" data-id="34bfc9c7" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3edeaca4 elementor-widget elementor-widget-text-editor" data-id="3edeaca4" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>He quickly grasps the importance of never evaluating his model on the same data used for training.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-51a9eb7f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="51a9eb7f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-49dbf09b" data-id="49dbf09b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3aeb78f2 elementor-widget elementor-widget-text-editor" data-id="3aeb78f2" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>To illustrate this point, let&#8217;s imagine that Wall-E is teaching young robots to analyze meteorites, offering various courses and providing practical exercises for their training, with the intention of evaluating them at the end of their school cycle.</p><p>However, Wall-E is aware that if he assesses the performance of his apprentices on the same meteorites used during his class, it would make the task too easy. The robots would simply recognize specific features they have already encountered, without a genuine understanding.</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-45f1096" data-id="45f1096" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-18f3debd elementor-widget elementor-widget-image" data-id="18f3debd" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="644" src="https://theeventhorizons.com/wp-content/uploads/2023/11/Image-BHLL3K6I5JCE7ZUNXGPAB4W2JE-1024x644.jpg" class="attachment-large size-large wp-image-5664" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/Image-BHLL3K6I5JCE7ZUNXGPAB4W2JE-1024x644.jpg 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-BHLL3K6I5JCE7ZUNXGPAB4W2JE-300x189.jpg 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-BHLL3K6I5JCE7ZUNXGPAB4W2JE-768x483.jpg 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-BHLL3K6I5JCE7ZUNXGPAB4W2JE-1536x966.jpg 1536w, https://theeventhorizons.com/wp-content/uploads/2023/11/Image-BHLL3K6I5JCE7ZUNXGPAB4W2JE.jpg 1574w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4d461955 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4d461955" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1d6abf5d" data-id="1d6abf5d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-38aa0dd0 elementor-widget elementor-widget-text-editor" data-id="38aa0dd0" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>To avoid this bias, Wall-E implements a clever approach: he divides the set of exercises (his dataset) into two distinct parts, creating the <strong>training set</strong> and the <strong>test set</strong>.</p><p>The training set, typically representing 80% of the data, is dedicated to training the model; Wall-E guides the young robots through lessons and exercises using this data. On the other hand, the test set, consisting of 20% of the data, is reserved for the final evaluation of the model.</p><p>Thus, when testing the knowledge acquired by the robots on new meteorites, Wall-E ensures that they can apply their skills to novel situations, thereby avoiding mere memorization of the training data. This process ensures that the model is capable of generalizing and providing accurate predictions even on previously unseen data.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3c9ab0a2 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3c9ab0a2" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4b6872e8" data-id="4b6872e8" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7de811ef elementor-widget elementor-widget-heading" data-id="7de811ef" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-medium">Rising to Excellence: Model Validation</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-795c7e85 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="795c7e85" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4133466f" data-id="4133466f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6dbea88e elementor-widget elementor-widget-text-editor" data-id="6dbea88e" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Proud of his machine learning training and evaluation skills, Wall-E, as an experienced data scientist, is now dedicated to improving the accuracy of his model. To achieve this, he must adjust the model&#8217;s hyperparameters, a task similar to fine-tuning the settings of a radio antenna for optimal reception. For example, in the case of his previous model, adjusting the number of neighbors in his KNN Classifier.</p><p>However, Wall-E is aware of the pitfalls that could arise if he optimizes the model&#8217;s performance on the test set. This would render the test set data unusable for the final evaluation. To avoid this, Wall-E introduces a third section in his dataset: the <strong>validation set</strong>. This section allows him to explore model settings that offer the best performance while preserving the test set data for impartial evaluation.</p><p>When comparing different models, such as KNN Classifiers with 2, 3, 20, or even 100 neighbors, Wall-E follows a rigorous methodology. He starts by training these models on the training set. Then, he selects the model that performs the best on the validation set. Finally, to estimate real-world performance, he evaluates this chosen model on the test set.</p><p>Wall-E illustrates these choices by plotting two essential curves: performance on the training set and performance on the validation set.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-79b6f031 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="79b6f031" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-4a801c56" data-id="4a801c56" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-56cc8374 elementor-widget elementor-widget-text-editor" data-id="56cc8374" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The curves below represent the training and validation scores as a function of different values of the explored parameter, such as the number of neighbors in the case of KNN Classifiers.</p><p>This visualization allows for the detection of crucial trends, including model overfitting or underfitting based on the parameter values.</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-439efb7" data-id="439efb7" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7ba18c34 elementor-widget elementor-widget-image" data-id="7ba18c34" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="797" src="https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Validation-and-Train-1024x797.png" class="attachment-large size-large wp-image-5814" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Validation-and-Train-1024x797.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Validation-and-Train-300x234.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Validation-and-Train-768x598.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-Validation-and-Train.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Validation and Training Curves Representing Accuracy Score Based on the Number of Neighbors Used in the KNN Algorithm</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-7471177d elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="7471177d" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-64799ca0" data-id="64799ca0" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-45971383 elementor-widget elementor-widget-text-editor" data-id="45971383" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>More specifically, the validation curve for the number of neighbors (k) in KNN provides answers to key questions.</p><p><strong>• Overfitting</strong>: The significant gap between the training score and the validation score may indicate overfitting, meaning the model is too complex and loses generalization. Overfitting is an undesirable behavior in machine learning where the learning model gives accurate predictions for training data but not for new data.</p><p><strong>•</strong> <strong>Underfitting</strong>: On the other hand, when a model has not learned the patterns in the training data well and fails to generalize correctly to new data, it is referred to as underfitting. An underfitting model performs poorly on training data and leads to unreliable predictions.</p><p><strong>•</strong> <strong>Sensitivity to Parameter Choice</strong>: Observing variations in model performance with different values of the number of neighbors allows Wall-E to choose an optimal value for k, maximizing model performance.</p><p>By adopting this systematic approach, Wall-E ensures making informed decisions for the optimal configuration of his model, avoiding the pitfalls of overfitting or underfitting and ensuring optimal performance in real-world contexts.</p><p>In his case, both curves quickly reach an accuracy score of 95.7% from around 20 to 25 neighbors and plateau around this value as the number of neighbors increases. A detailed analysis of the curves (which we won&#8217;t go into here) would indicate that the optimal score is achieved with 20 neighbors.</p><p>Although he has a deep understanding of the process, Wall-E knows there&#8217;s one crucial detail remaining: how to ensure the dataset split is the best? He finds the solution in cross-validation.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6e7bfbdf elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6e7bfbdf" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2e03a357" data-id="2e03a357" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6ce8b206 elementor-widget elementor-widget-heading" data-id="6ce8b206" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-medium">The Dance of Models: Cross-Validation</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-14b9942c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="14b9942c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-246f9b5c" data-id="246f9b5c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-516cbf97 elementor-widget elementor-widget-text-editor" data-id="516cbf97" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Wall-E employs a clever cross-validation methodology to enhance the robustness of his model selection. Specifically, he embraces the K-fold method, where the dataset is split into K parts (here, 5 parts). During training, Wall-E&#8217;s model is systematically trained on K-1 of these partitions and validated on the remaining partition, repeating this process K times. This ensures a more reliable and stable evaluation of the model&#8217;s performance, making sure that no particular partition overly influences the results.</p><p>Furthermore, Wall-E also leverages Stratified K-fold, an intelligent variant of K-fold that takes into account the class distribution in the dataset. This approach ensures that each fold maintains a proportional representation of all classes, crucial when classes are not evenly distributed. Thus, Wall-E ensures a robust model selection, resistant to variations in data splitting, while also considering class distribution for even more precise evaluation.</p><p>There are, of course, other data splitting strategies that may adapt more or less effectively depending on the available data, which we will discuss in a future article.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3345defc elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3345defc" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-21471ce6" data-id="21471ce6" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-ebf8fb4 elementor-widget elementor-widget-heading" data-id="ebf8fb4" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-medium">The Learning Waves: Learning Curves

</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-76dc8baa elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="76dc8baa" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c6e84f1" data-id="c6e84f1" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-434b5f33 elementor-widget elementor-widget-text-editor" data-id="434b5f33" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Eager to determine if his model could benefit from improvement through the addition of more data, Wall-E delves into a more thorough exploration by examining learning curves.</p><p>These curves provide a visual representation of how the model&#8217;s performance evolves based on the amount of training data provided. While adding data may initially lead to performance improvement, Wall-E has the insight to recognize that these benefits eventually reach a threshold. Understanding when the model reaches its limits becomes invaluable wisdom, allowing for a judicious use of time and resources.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-266ab1f3 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="266ab1f3" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-15dcd12" data-id="15dcd12" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1bf2cf7d elementor-widget elementor-widget-image" data-id="1bf2cf7d" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="600" height="600" src="https://theeventhorizons.com/wp-content/uploads/2023/11/image-wall-e-600x600.jpg" class="attachment-ocean-thumb-m size-ocean-thumb-m wp-image-5703" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/image-wall-e-600x600.jpg 600w, https://theeventhorizons.com/wp-content/uploads/2023/11/image-wall-e-150x150.jpg 150w" sizes="(max-width: 600px) 100vw, 600px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-6837d0ed" data-id="6837d0ed" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-43a7f241 elementor-widget elementor-widget-image" data-id="43a7f241" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="776" src="https://theeventhorizons.com/wp-content/uploads/2023/12/Image-300-de-chaque-1024x776.png" class="attachment-large size-large wp-image-5813" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/12/Image-300-de-chaque-1024x776.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-300-de-chaque-300x227.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-300-de-chaque-768x582.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-300-de-chaque.png 1248w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Validation and training curves representing the accuracy score as a function of the number of samples</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3f4fc5f6 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3f4fc5f6" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2b12a31b" data-id="2b12a31b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-161bd0be elementor-widget elementor-widget-text-editor" data-id="161bd0be" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Examining this curve, he notices that a sufficiently accurate estimation could have been obtained using fewer than 1000 metal samples, roughly around 37 alloys of each type. Even by accumulating 300 metal samples for each type (300 times 27, totaling 8100 objects), he observes that it brings little significant improvement to his model (its accuracy plateaus at 95.7%). Fortunately, he collects data for the joy of it!</p><p>Thus, Wall-E gracefully dances to the rhythm of the learning waves, navigating with finesse through the complex landscape of model selection. By mastering the intricacies of learning curves, Wall-E ensures he makes the most of his model improvement process.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-695b39b0 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="695b39b0" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-15390229" data-id="15390229" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-61a78c23 elementor-widget elementor-widget-spacer" data-id="61a78c23" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-20b41ef3 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="20b41ef3" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1420a9a0" data-id="1420a9a0" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6a82f2b1 elementor-widget elementor-widget-heading" data-id="6a82f2b1" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">The End of a Trilogy, the Beginning of a Technological Era</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-762a2a01 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="762a2a01" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a31c160" data-id="a31c160" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-79115c00 elementor-widget elementor-widget-text-editor" data-id="79115c00" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>This final episode marks the moving conclusion of the captivating saga of the little robot Wall-E, an adventure that began with the fundamentals of machine learning and supervised learning. From his first steps into the realm of artificial intelligence, Wall-E has evolved through various chapters, exploring the basics of machine learning, delving into the in-depth study of regression, and finally, climbing the complex peaks of classification.</p><p>The first step saw Wall-E learn the ins and outs of supervised learning, a discipline that allowed him to understand how to use a database to train a model. This inaugural phase laid the groundwork for his quest to understand the complex world of data and algorithms.</p><p>The second act of this saga immersed the robot in the universe of regression, where he learned to predict continuous values based on input variables (gold based on its purity). This chapter expanded his horizons, leading him to master concepts such as gradient descent and cost function, essential tools in his machine learning toolkit.</p><p>Finally, the last episode saw our budding data scientist confront classification, an even more complex challenge involving the distinction between different types of electronic components. Modest beginnings with binary sorting (metal-plastic) evolved into a bold exploration of multi-class classification (sorting precious metals), highlighting techniques such as the K Nearest Neighbors algorithm and meticulous model selection.</p><p>Thus, this poignant conclusion of Wall-E&#8217;s saga symbolizes not only the end of an exceptional story but also the realization of gradual and methodical learning in the vast realm of machine learning. The little waste-sorting robot has traversed an impressive path, from understanding basic concepts to mastering sophisticated techniques, leaving behind a legacy of learning and perseverance. This saga, rich in lessons, concludes with the certainty that Wall-E is now ready to face new challenges in the complex world of artificial intelligence. Who knows, perhaps one day he will match EVE, paving the way for new explorations and discoveries.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-72eb7636 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="72eb7636" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7990b129" data-id="7990b129" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-227fb983 elementor-widget elementor-widget-image" data-id="227fb983" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="790" height="440" src="https://theeventhorizons.com/wp-content/uploads/2023/12/Image-6da1e10acbc3a69fcf18528dff36bde6.jpg" class="attachment-large size-large wp-image-5853" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/12/Image-6da1e10acbc3a69fcf18528dff36bde6.jpg 790w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-6da1e10acbc3a69fcf18528dff36bde6-300x167.jpg 300w, https://theeventhorizons.com/wp-content/uploads/2023/12/Image-6da1e10acbc3a69fcf18528dff36bde6-768x428.jpg 768w" sizes="(max-width: 790px) 100vw, 790px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-57b56041 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="57b56041" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-55e24316" data-id="55e24316" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7055803d elementor-widget elementor-widget-spacer" data-id="7055803d" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4c948420 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4c948420" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4d9307d2" data-id="4d9307d2" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-330cd11d elementor-widget elementor-widget-heading" data-id="330cd11d" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">Bibliography</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-199c70c6 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="199c70c6" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-15960dab" data-id="15960dab" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2e792ac elementor-widget elementor-widget-text-editor" data-id="2e792ac" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>G. James, D. Witten, T. Hastie et R. Tibshirani, An Introduction to Statistical Learning, Springer Verlag, coll. « Springer Texts in Statistics », 2013.</p>
<p>D. MacKay, Information Theory, Inference, and Learning Algorithms, Cambridge University Press, 2003.</p>
<p>T. Mitchell, Machine Learning, 1997.</p>
<p>F. Galton,  Kinship and Correlation, Statistical Science, Institute of Mathematical Statistics, vol. 4, no 2,‎ 1989, p. 80–86, 1989.</p>
<p>C. Bishop, Pattern Recognition And Machine Learning, Springer, 2006.</p>
<p>G. Saint-Cirgue, Machine Learnia, Youtube Channel.</p>
<p>J. Tolles,  W-J. Meurer, Logistic Regression Relating Patient Characteristics to Outcomes. JAMA. 316 (5): 533–4, 2016.</p>
<p>B-V. Dasarathy, Nearest Neighbor (NN) Norms: NN Pattern Classification Techniques, 1991.</p>
<p>G. Shakhnarovich,  T. Darrell,  P. Indyk, Nearest-Neighbor Methods in Learning and Vision, 2005.</p>
<p>Hastie, Tibshirani, Friedman, The elements of statistical learning. Springer. p. 195, 2009.</p>
<p>S. Konishi, G. Kitagawa, Information Criteria and Statistical Modeling, Springer, 2008.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-97d8eb5 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="97d8eb5" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-70e5fdc3" data-id="70e5fdc3" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3583cc3b elementor-widget elementor-widget-spacer" data-id="3583cc3b" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-20cb7df elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="20cb7df" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3112aa77" data-id="3112aa77" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-796eb861 elementor-view-default elementor-position-block-start elementor-mobile-position-block-start elementor-widget elementor-widget-icon-box" data-id="796eb861" data-element_type="widget" data-e-type="widget" data-widget_type="icon-box.default">
				<div class="elementor-widget-container">
							<div class="elementor-icon-box-wrapper">

						<div class="elementor-icon-box-icon">
				<span  class="elementor-icon">
				<i aria-hidden="true" class="fab fa-python"></i>				</span>
			</div>
			
			
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4b953085 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4b953085" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-226781c8" data-id="226781c8" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-8ec0e06 elementor-widget elementor-widget-heading" data-id="8ec0e06" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small"><a href="https://github.com/TheEventHorizons/Waste-Sorting-Classification">Note: All the necessary data tables are available on GitHub.</a></h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3086323e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3086323e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1c277abe" data-id="1c277abe" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-549a8511 elementor-widget elementor-widget-toggle" data-id="549a8511" data-element_type="widget" data-e-type="widget" data-widget_type="toggle.default">
				<div class="elementor-widget-container">
							<div class="elementor-toggle">
							<div class="elementor-toggle-item">
					<div id="elementor-tab-title-1411" class="elementor-tab-title" data-tab="1" role="button" aria-controls="elementor-tab-content-1411" aria-expanded="false">
												<span class="elementor-toggle-icon elementor-toggle-icon-left" aria-hidden="true">
															<span class="elementor-toggle-icon-closed"><i class="fas fa-caret-right"></i></span>
								<span class="elementor-toggle-icon-opened"><i class="elementor-toggle-icon-opened fas fa-caret-up"></i></span>
													</span>
												<a class="elementor-toggle-title" tabindex="0">Logistic Regression Plastic-Metal</a>
					</div>

					<div id="elementor-tab-content-1411" class="elementor-tab-content elementor-clearfix" data-tab="1" role="region" aria-labelledby="elementor-tab-title-1411"><p></p>
<pre class="wp-block-code has-black-background-color has-background"><code class="language-python line-numbers" lang="python">
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import os
print("Current Working Directory:", os.getcwd())

from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import StandardScaler
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import train_test_split, GridSearchCV
from sklearn.preprocessing import OrdinalEncoder




# Replace 'path/to/your/excel/file.xlsx' with the actual path to your Excel file
excel_file_path = 'PlasticMetal_data.xlsx'

# Read the Excel file
result_df = pd.read_excel(excel_file_path)

# Display the Pandas DataFrame
print(result_df)


X = result_df['Density']
y = result_df['Material']

# Data preparation
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)

# Convert labels to the appropriate format for binary classification
ordinal_encoder = OrdinalEncoder(categories=[['Plastic', 'Metal']])
y_train_encoded = ordinal_encoder.fit_transform(y_train.values.reshape(-1, 1))
y_test_encoded = ordinal_encoder.transform(y_test.values.reshape(-1, 1))

# Reshape y_train and y_test
y_train_reshaped = y_train_encoded.ravel()
y_test_reshaped = y_test_encoded.ravel()

# Reshape X_train and X_test
X_train_reshaped = X_train.values.reshape(-1, 1)
X_test_reshaped = X_test.values.reshape(-1, 1)

# Create the model
model = make_pipeline(StandardScaler(), LogisticRegression(random_state=42))

print(model)

# Create parameter dictionary
params = {
    'logisticregression__penalty': ['l2', None],
    'logisticregression__solver': ['lbfgs'],
    'logisticregression__max_iter': [100, 200, 300, 500, 1000]
}

# Create a search grid
grid = GridSearchCV(model, param_grid=params, cv=5)

# Train the model
grid.fit(X_train_reshaped, y_train_reshaped)

print(grid.best_params_)
print(grid.best_score_)

modelB = grid.best_estimator_

# Model evaluation
accuracy = modelB.score(X_test_reshaped, y_test_reshaped)
print(f"Model accuracy: {accuracy}")

# Predictions
predictions = modelB.predict(X_test_reshaped)

print(predictions)
print(ordinal_encoder.inverse_transform(np.array([[1], [0]])))

coefficients = modelB.named_steps['logisticregression'].coef_
intercept = modelB.named_steps['logisticregression'].intercept_

print("Coefficients:", coefficients)
print("Intercept:", intercept)

# Plot the sigmoid function with normalized data
density_values = np.linspace(0, X_train_reshaped.max(), 300).reshape(-1, 1)
probabilities = modelB.predict_proba(density_values)[:, 1]

# Find the density corresponding to a probability of 0.5
decision_boundary = density_values[np.argmax(probabilities >= 0.5)]

# Plot the sigmoid function
plt.figure(figsize=(10, 6))
plt.scatter(X_train_reshaped, y_train_reshaped, c=y_train_reshaped, cmap='Dark2_r', alpha=0.5)
plt.plot(density_values, probabilities, color='blue', linewidth=2, label='Sigmoid Function')
# Add the vertical line corresponding to a probability of 0.5
plt.axvline(x=decision_boundary, color='red', linestyle='--', label='Decision Boundary')
plt.title('Final Representation of the Sigmoid Function')
plt.xlabel('Density')
plt.ylabel('Probability of Metal')
plt.grid(ls='--')
plt.legend()
plt.show()

# Suppose you have a new material with a certain density
new_material_density = 4  # Replace this value with the actual density of your new material

new_material_density_reshaped = np.array(new_material_density).reshape(-1, 1)

print(modelB.predict(new_material_density_reshaped))

# Make the prediction with the model
probability_of_metal = modelB.predict_proba(new_material_density_reshaped)[:, 1]

# Display the result
print("Probability of being metal:", probability_of_metal)


</code></pre>
<p></p></div>
				</div>
							<div class="elementor-toggle-item">
					<div id="elementor-tab-title-1412" class="elementor-tab-title" data-tab="2" role="button" aria-controls="elementor-tab-content-1412" aria-expanded="false">
												<span class="elementor-toggle-icon elementor-toggle-icon-left" aria-hidden="true">
															<span class="elementor-toggle-icon-closed"><i class="fas fa-caret-right"></i></span>
								<span class="elementor-toggle-icon-opened"><i class="elementor-toggle-icon-opened fas fa-caret-up"></i></span>
													</span>
												<a class="elementor-toggle-title" tabindex="0">Metal Classification Algorithm, Validation Curves, and Learning Curves</a>
					</div>

					<div id="elementor-tab-content-1412" class="elementor-tab-content elementor-clearfix" data-tab="2" role="region" aria-labelledby="elementor-tab-title-1412">
<pre class="wp-block-code has-black-background-color has-background"><code class="language-python line-numbers" lang="python">
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import os
print("Current Working Directory:", os.getcwd())


from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import MinMaxScaler
from sklearn.neighbors import KNeighborsClassifier
from sklearn.model_selection import train_test_split, GridSearchCV, validation_curve, learning_curve
from sklearn.preprocessing import LabelEncoder



# Replace 'path/to/your/excel/file.xlsx' with the actual path to your Excel file
excel_file_path = 'metals_samples.xlsx'

# Read the Excel file
result_metals_df = pd.read_excel(excel_file_path)

# Display the Pandas DataFrame
print(result_metals_df)


X = result_metals_df[['Density', 'Electrical Conductivity']]
y = result_metals_df['Metal Type']


# Data preparation
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)

# Convert labels to the appropriate format for binary classification
label_encoder = LabelEncoder()
y_train_encoded = label_encoder.fit_transform(y_train)
y_test_encoded = label_encoder.transform(y_test)

# Create the model
model = make_pipeline(MinMaxScaler(), KNeighborsClassifier())

print(model)

# Create parameter dictionary
params = {
    'kneighborsclassifier__n_neighbors': [2,3,4,5,6,7,8,9,10, 15, 20, 25, 30, 40,  100],
    'kneighborsclassifier__weights': ['uniform', 'distance'],
    'kneighborsclassifier__p': [1, 2]
}

# Create a search grid
grid = GridSearchCV(model, param_grid=params, cv=5)

# Train the model
grid.fit(X_train, y_train_encoded)

print(grid.best_params_)
print(grid.best_score_)

modelB = grid.best_estimator_

# Model evaluation
accuracy = modelB.score(X_test, y_test_encoded)
print(f"Model Accuracy: {accuracy}")

# Predictions
predictions = modelB.predict(X_test)


#for i in range(0, 32):
    #print(label_encoder.inverse_transform(np.array([i])))



# Sample
X_sample = pd.DataFrame({'Density': [7.5], 'Electrical Conductivity': [5.8], 'Metal Type' : [np.NaN]})  
X_sample = X_sample[['Density','Electrical Conductivity']]


# Predict using the scaled sample
prediction = modelB.predict(X_sample)
prediction_proba = modelB.predict_proba(X_sample)

print("Predicted Metal Type:", label_encoder.inverse_transform(prediction))
print("Prediction Probabilities:", prediction_proba)

# Probability Prediction
prediction_proba = modelB.predict_proba(X_sample)


# Validation Curves

k_range = np.arange(1,100)

#train_score, val_score = validation_curve(model, X_train, y_train_encoded, param_name='kneighborsclassifier__n_neighbors',param_range=k_range, cv =5)

#plt.plot(k_range,val_score.mean(axis=1), label='Validation')
#plt.plot(k_range,train_score.mean(axis=1), label='Train')
#plt.xlabel('Number of Neighbors (k)')
#plt.ylabel('Score')
#plt.grid(ls='--')
#plt.legend()
#plt.title('Validation and Train Curves for k-NN')
#plt.show()

# Learning curves

#N, learn_train_score, learn_val_score = learning_curve(modelB, X_train, y_train_encoded, train_sizes=np.linspace(0.01, 1.0, 50), cv = 5)

#print(N)
#plt.plot(N,learn_val_score.mean(axis=1), label='Validation')
#plt.axhline(y=0.957, c='red', ls='--', label = 'Threshold')
#plt.plot(N,learn_train_score.mean(axis=1), label='Train')
#plt.xlabel('Train Sizes')
#plt.ylabel('Score')
#plt.grid(ls='--')
#plt.legend()
#plt.title('Validation and Train Learning Curves for k-NN')
#plt.show()


# Displaying probabilities with class names
for i, metal_class in enumerate(label_encoder.classes_):
    print(f"Probability for class '{metal_class}': {prediction_proba[0, i]}")





plt.figure(figsize=(10, 6))
scatter = plt.scatter(X_train['Density'], X_train['Electrical Conductivity'], c=y_train_encoded, cmap='Dark2_r', alpha=0.5)
plt.scatter(X_sample['Density'], X_sample['Electrical Conductivity'], c='red', s=50, marker='X', alpha=0.8)
plt.axvline(x=tuple(X_sample['Density']), c='red', ls='--', alpha=0.8)
plt.axhline(y=tuple(X_sample['Electrical Conductivity']), c='red', ls='--', alpha=0.8)
plt.xlabel('Density')
plt.ylabel('Electrical Conductivity (S/m)')
plt.grid(ls='--')
# Configure the colorbar correctly
cbar = plt.colorbar(scatter, ticks=range(len(label_encoder.classes_)))
cbar.set_label('Metal Alloys')
cbar.set_ticklabels(label_encoder.classes_)
plt.title('Unknown Metallic Sample Based on Density and Electrical Conductivity')
plt.legend()
plt.show()





</code></pre>
</div>
				</div>
								</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				</div>
		<p>The article <a href="https://theeventhorizons.com/waste-allocation-load-lifter-earth-class/">Waste Allocation Load Lifter: Earth Class </a> first appeared on <a href="https://theeventhorizons.com">The Event Horizons</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theeventhorizons.com/waste-allocation-load-lifter-earth-class/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Wall-E: The Little Gold Miner</title>
		<link>https://theeventhorizons.com/wall-e-the-little-gold-miner/</link>
					<comments>https://theeventhorizons.com/wall-e-the-little-gold-miner/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 02 Nov 2023 04:51:38 +0000</pubDate>
				<category><![CDATA[Artificial Intelligence]]></category>
		<guid isPermaLink="false">https://theeventhorizons.com/?p=5570</guid>

					<description><![CDATA[<p>Unlike its robotic counterparts of the past, Wall-E stood out with its insatiable curiosity and desire to learn. Every day, it wandered through the forgotten corners of the planet, on a quest for buried and overlooked treasures. During one of its expeditions, in an abandoned old mine, Wall-E made a remarkable discovery: sparkling gold samples hidden beneath layers of soil and rock. Intrigued by these golden glimmers, it wondered if it could have fun estimating their value.</p>
<p>As a robotic scholar, it knew that assessing the price of these nuggets depended on their purity. It was at this precise moment that it embarked on exploring a problem of utmost simplicity: Linear Regression.</p>
<p>The article <a href="https://theeventhorizons.com/wall-e-the-little-gold-miner/">Wall-E: The Little Gold Miner</a> first appeared on <a href="https://theeventhorizons.com">The Event Horizons</a>.</p>
]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="5570" class="elementor elementor-5570">
						<section class="elementor-section elementor-top-section elementor-element elementor-element-359d740f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="359d740f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-63969272" data-id="63969272" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6eac3ffe elementor-align-center elementor-widget elementor-widget-button" data-id="6eac3ffe" data-element_type="widget" data-e-type="widget" data-widget_type="button.default">
				<div class="elementor-widget-container">
									<div class="elementor-button-wrapper">
					<a class="elementor-button elementor-button-link elementor-size-sm" href="https://theeventhorizons.com/category/ai-revolution/">
						<span class="elementor-button-content-wrapper">
									<span class="elementor-button-text">Artificial Intelligence</span>
					</span>
					</a>
				</div>
								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-402897a0 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="402897a0" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5dc4526d" data-id="5dc4526d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-28ea3237 elementor-widget elementor-widget-heading" data-id="28ea3237" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-xxl">Wall-E: The Little Gold Miner</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5c6537e9 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5c6537e9" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2336e25" data-id="2336e25" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-18765929 elementor-widget elementor-widget-heading" data-id="18765929" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Episode II</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4693d323 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4693d323" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6422907d" data-id="6422907d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-f0fb008 elementor-widget elementor-widget-heading" data-id="f0fb008" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">By Jordan Moles on November 2, 2023</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4d909a58 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4d909a58" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-426a775a" data-id="426a775a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-52f4904f elementor-widget elementor-widget-image" data-id="52f4904f" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1536" height="827" src="https://theeventhorizons.com/wp-content/uploads/2023/11/Capture-decran-2023-11-14-a-14.29.34-1536x827.png" class="attachment-1536x1536 size-1536x1536 wp-image-5366" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/Capture-decran-2023-11-14-a-14.29.34-1536x827.png 1536w, https://theeventhorizons.com/wp-content/uploads/2023/11/Capture-decran-2023-11-14-a-14.29.34-300x162.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/Capture-decran-2023-11-14-a-14.29.34-1024x551.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/Capture-decran-2023-11-14-a-14.29.34-768x414.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/Capture-decran-2023-11-14-a-14.29.34-2048x1103.png 2048w" sizes="(max-width: 1536px) 100vw, 1536px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-15233c2 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="15233c2" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-69fa02c2" data-id="69fa02c2" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-54e8a4ab elementor-widget elementor-widget-text-editor" data-id="54e8a4ab" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="text-align: center;"><strong>Unlike its robotic counterparts of the past, Wall-E stood out with its insatiable curiosity and desire to learn. Every day, it wandered through the forgotten corners of the planet, on a quest for buried and overlooked treasures. During one of its expeditions, in an abandoned old mine, Wall-E made a remarkable discovery: sparkling gold samples hidden beneath layers of soil and rock. Intrigued by these golden glimmers, it wondered if it could have fun estimating their value.</strong></p><p style="text-align: center;"><strong>As a robotic scholar, it knew that assessing the price of these nuggets depended on their purity. It was at this precise moment that it embarked on exploring a problem of utmost simplicity: Linear Regression.<br /></strong></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-36afd35 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="36afd35" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-41cee470" data-id="41cee470" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4f70fa85 elementor-widget elementor-widget-spacer" data-id="4f70fa85" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-63544f24 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="63544f24" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-71f5a3bb" data-id="71f5a3bb" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7618dcca elementor-widget elementor-widget-heading" data-id="7618dcca" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">It is highly recommended to have read Episode I before continuing!</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-38f5a8e2 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="38f5a8e2" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-9245cd1" data-id="9245cd1" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-545b477b elementor-widget elementor-widget-spacer" data-id="545b477b" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-527c3b0f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="527c3b0f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5e39614a" data-id="5e39614a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-515ca9d elementor-widget elementor-widget-heading" data-id="515ca9d" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">Into the Depths of Knowledge: Regression</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3b1ea997 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3b1ea997" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7a89f87b" data-id="7a89f87b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-c5df49d elementor-widget elementor-widget-text-editor" data-id="c5df49d" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The story of our intrepid lone robot continues, and he finds himself facing a fascinating category of problems: regression. These puzzles push him to develop new skills to estimate numerical values based on input data, and they hold a significant place in his vast repertoire of explorations.</p><p>Wall-E, the small waste-collecting robot, encounters regression problems whenever he wants to predict a numerical value based on certain features or continuous variables. Picture him analyzing the data he has gathered while striving to determine the price of a gold nugget based on its purity. In this quest, he must establish a mathematical relationship between the data he has, such as the purity of the gold, and the values he wants to predict, namely the prices of these precious nuggets.</p><p>One of the challenges Wall-E faces is choosing the appropriate regression model. He wonders whether to opt for a simple linear regression, meaning he assumes a linear relationship between the purity of gold and its price, or if he should explore more complex models, such as polynomial regression. The choice of the model is crucial as it will affect the accuracy of his predictions.</p><p>Another issue Wall-E must solve is how he will evaluate the performance of his model. He cannot afford to make mistakes in his estimates, as an error in estimating the price of gold could lead to potentially disastrous consequences. He explores various error measures, such as mean absolute error and root mean square error (for now, it&#8217;s gibberish), to assess the accuracy of his predictions.</p><p>One of the most intriguing challenges Wall-E faces in regression problems is optimizing the model parameters. He must go through an iterative process of adjusting these parameters to minimize the error between his predictions and the actual values. Wall-E then embarks on gradient descent, a technique that helps him find the optimal parameters by minimizing a cost function that aggregates the model&#8217;s errors.</p><p>Every regression problem Wall-E tackles is unique, as the data and objectives vary. However, his perseverance and ingenuity, combined with his machine learning skills, allow him to overcome these challenges and accurately estimate numerical values, whether it&#8217;s the price of gold or any other regression task.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5ec499b6 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5ec499b6" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-77984a2e" data-id="77984a2e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-42f29df7 elementor-widget elementor-widget-spacer" data-id="42f29df7" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-640c2182 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="640c2182" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-111c1e15" data-id="111c1e15" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-34ac3694 elementor-widget elementor-widget-heading" data-id="34ac3694" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">The Data Collection</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2a9b618a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2a9b618a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-44163574" data-id="44163574" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-633c6ddb elementor-widget elementor-widget-text-editor" data-id="633c6ddb" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									Shortly after humanity&#8217;s escape, the young robot felt a gust of loneliness sweeping through its printed circuits. To occupy itself after a day of hard work, it explores distant lands, sifts through the debris of large gold reserves, analyzes each precious alloy, scrutinizes the smallest gold nugget to determine its purity, and compiles all the earthly gold samples, displaying them in a table with their respective prices (here are the first 5 samples out of 150).								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2cc335ea elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2cc335ea" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-347e5e14" data-id="347e5e14" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4774c59b elementor-widget elementor-widget-shortcode" data-id="4774c59b" data-element_type="widget" data-e-type="widget" data-widget_type="shortcode.default">
				<div class="elementor-widget-container">
							<div class="elementor-shortcode">
<table id="tablepress-16" class="tablepress tablepress-id-16">
<thead>
<tr class="row-1">
	<td class="column-1"></td><th class="column-2">Gold Purity</th><th class="column-3">Gold Price</th>
</tr>
</thead>
<tbody class="row-striping row-hover">
<tr class="row-2">
	<td class="column-1">Sample 1</td><td class="column-2">0.3745</td><td class="column-3">1028.1347</td>
</tr>
<tr class="row-3">
	<td class="column-1">Sample 2</td><td class="column-2">0.9507</td><td class="column-3">1456.2091</td>
</tr>
<tr class="row-4">
	<td class="column-1">Sample 3</td><td class="column-2">0.7320</td><td class="column-3">1260.2042</td>
</tr>
<tr class="row-5">
	<td class="column-1">Sample 4</td><td class="column-2">0.5987</td><td class="column-3">1145.5583</td>
</tr>
<tr class="row-6">
	<td class="column-1">Sample 5</td><td class="column-2">0.1560</td><td class="column-3">958.0828</td>
</tr>
</tbody>
</table>
</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-75e575b9 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="75e575b9" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-736d6342" data-id="736d6342" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-184d3072 elementor-widget elementor-widget-text-editor" data-id="184d3072" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									When indicated, this table constitutes a learning database. Each sample k is characterized by two elements: its purity \(x^{(k)}\) which varies between 0 (not gold) and 1 (pure gold), and its price <span style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-weight: 400; color: var( --e-global-color-text );">\(y^{(k)}\) (which can range from 0 to infinity).</span></p>
The collection of these samples represents a crucial moment in the life of this robotic scholar. Here are two essential aspects that it must take into consideration to make accurate estimates.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-55a183bb elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="55a183bb" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-70096a90" data-id="70096a90" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5deec2a9 elementor-widget elementor-widget-text-editor" data-id="5deec2a9" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><b> </b></p><p><b>Large number of data:</b> Wall-E quickly realizes that to obtain reliable estimates, he must have a large number of samples in his database.</p><p>Indeed, if we only consider two samples, as illustrated here, it is impossible to determine whether the price behavior is linear or not.</p><p>Many estimation curves could pass through these two points without reflecting reality. Like the two curves below, for example.</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-5b5ddfa0" data-id="5b5ddfa0" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7ba2ec14 elementor-widget elementor-widget-image" data-id="7ba2ec14" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="791" src="https://theeventhorizons.com/wp-content/uploads/2023/11/deux-points-1-1024x791.png" class="attachment-large size-large wp-image-5261" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/deux-points-1-1024x791.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/deux-points-1-300x232.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/deux-points-1-768x593.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/deux-points-1.png 1196w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Representation of Gold Price Based on its Purity for Two Samples</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-129ddbb6 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="129ddbb6" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-579ebed3" data-id="579ebed3" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-71d97d8f elementor-widget elementor-widget-image" data-id="71d97d8f" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="779" src="https://theeventhorizons.com/wp-content/uploads/2023/11/deux-points-1024x779.png" class="attachment-large size-large wp-image-5257" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/deux-points-1024x779.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/deux-points-300x228.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/deux-points-768x584.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/deux-points.png 1204w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Linear regression curve</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-4119f6b7" data-id="4119f6b7" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1fa6fd40 elementor-widget elementor-widget-image" data-id="1fa6fd40" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="736" height="460" src="https://theeventhorizons.com/wp-content/uploads/2023/11/eye.jpeg" class="attachment-2048x2048 size-2048x2048 wp-image-5267" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/eye.jpeg 736w, https://theeventhorizons.com/wp-content/uploads/2023/11/eye-300x188.jpeg 300w" sizes="(max-width: 736px) 100vw, 736px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-6c82c2bb" data-id="6c82c2bb" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-717edd4 elementor-widget elementor-widget-image" data-id="717edd4" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="814" src="https://theeventhorizons.com/wp-content/uploads/2023/11/polynome-1024x814.png" class="attachment-large size-large wp-image-5283" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/polynome-1024x814.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/polynome-300x238.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/polynome-768x610.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/polynome.png 1170w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Polynomial regression curve</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-463cceee elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="463cceee" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6723e788" data-id="6723e788" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1de4ef14 elementor-widget elementor-widget-spacer" data-id="1de4ef14" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-592d3d71 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="592d3d71" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-5d8ed95d" data-id="5d8ed95d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6024bb05 elementor-widget elementor-widget-text-editor" data-id="6024bb05" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><b> </b></p><p><b>Data Diversity</b>: another crucial detail to consider during the harvest is the variety of data.</p><p>Suppose Wall-E only considers pure samples or samples with extremely close purity (see the figure opposite).</p><p>In this situation, all samples will have almost the same price, preventing him from estimating the price of other gold alloys.</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-29d94083" data-id="29d94083" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-45f3dbc8 elementor-widget elementor-widget-image" data-id="45f3dbc8" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="793" src="https://theeventhorizons.com/wp-content/uploads/2023/11/10-points-1024x793.png" class="attachment-large size-large wp-image-5275" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/10-points-1024x793.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/10-points-300x232.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/10-points-768x595.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/10-points.png 1190w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Representation of Gold Price Based on its Purity for Two Samples</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-8f7b54c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="8f7b54c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1a631179" data-id="1a631179" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-544e91d elementor-widget elementor-widget-text-editor" data-id="544e91d" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<b>Conclusion of the Harvest</b>: It is, therefore, imperative to gather a multitude of randomly chosen samples to avoid these limitations and ensure obtaining accurate estimates for a wide range of gold alloys.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1de9b8c6 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1de9b8c6" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-40ade9d0" data-id="40ade9d0" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-20c1ce91 elementor-widget elementor-widget-spacer" data-id="20c1ce91" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5377819 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5377819" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5318390a" data-id="5318390a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1b64bc59 elementor-widget elementor-widget-heading" data-id="1b64bc59" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">Creation of the Linear Model</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-297b4ec1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="297b4ec1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7953bfb4" data-id="7953bfb4" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-63d57fdc elementor-widget elementor-widget-text-editor" data-id="63d57fdc" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<span style="font-size: 15px; color: var( --e-global-color-text );">From these data, Wall-E develops what we have called a linear model</span> \(f(x)=ax+b\) where aa and bb are the parameters of the model.

An effective model minimizes the differences between Wall-E&#8217;s predictions \(f(x)\) and the actual values yy of the samples. Like a kind of modern gold prospector, Wall-E adjusts these parameters to best align his estimates with reality, creating an equation that subtly connects purity and the value of gold. Here is his initial attempt, which is not incredible at all.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-7d50e594 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="7d50e594" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-706b57df" data-id="706b57df" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-edaf41b elementor-widget elementor-widget-image" data-id="edaf41b" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="814" src="https://theeventhorizons.com/wp-content/uploads/2023/11/regre-init-1024x814.png" class="attachment-large size-large wp-image-5318" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/regre-init-1024x814.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/regre-init-300x238.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/regre-init-768x610.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/regre-init.png 1480w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Linear Regression Curve on the Price of Gold Based on Its Purity</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-199adb99" data-id="199adb99" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5ae10860 elementor-widget elementor-widget-image" data-id="5ae10860" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="462" height="367" src="https://theeventhorizons.com/wp-content/uploads/2023/11/walleCockroach.jpg" class="attachment-large size-large wp-image-5290" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/walleCockroach.jpg 462w, https://theeventhorizons.com/wp-content/uploads/2023/11/walleCockroach-300x238.jpg 300w" sizes="(max-width: 462px) 100vw, 462px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6578d9e7 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6578d9e7" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-597beb25" data-id="597beb25" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-67216808 elementor-widget elementor-widget-spacer" data-id="67216808" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5f61e845 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5f61e845" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2464e236" data-id="2464e236" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-619b51e3 elementor-widget elementor-widget-heading" data-id="619b51e3" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">Measuring Gold Treasures: The Cost Function</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-7fddfbd elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="7fddfbd" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-50023789" data-id="50023789" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5df5ba2d elementor-widget elementor-widget-text-editor" data-id="5df5ba2d" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="font-size: 15px; color: var( --e-global-color-text );">The next step in Wall-E&#8217;s learning process is to evaluate the performance of this model, meaning measuring the errors between its predictions and the values in the dataset.</span></p><p>For the small robot, the procedure is simple: each estimation, denoted k, in the dataset is compared to reality. Depending on the chosen approach, Wall-E&#8217;s program returns the corresponding error for each prediction, which we will denote as \(err(k)\).</p><p>Each of Wall-E&#8217;s estimations is thus associated with its own margin of error. Over iterations, these errors accumulate in number until reaching the total number of examples n in the dataset.</p><p>Therefore, all these errors are gathered in a function called the Cost Function, denoted \(Γ(a, b)\). It is a function depending on the parameters to be adjusted and simply calculates the average of all errors. Therefore, it is written as follows:</p><p>\begin{align*}\Gamma(a, b) &amp;=\frac{err(1)+err(2)+\cdots+err(n)}{n}=\frac{1}{n}\sum_{k=1}^n err(k)\end{align*}</p><p>An important property to consider about this function is its convexity, meaning that its curve &#8216;faces upward everywhere.&#8217; More precisely, this means that if you draw a line between two points on the curve, it always stays above or at the same level as the curve. Such curves always have a global minimum! This will be useful to us later.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-57833dbf elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="57833dbf" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-7b3ab1de" data-id="7b3ab1de" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4e63f05e elementor-widget elementor-widget-image" data-id="4e63f05e" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="600" height="600" src="https://theeventhorizons.com/wp-content/uploads/2023/11/3-600x600.webp" class="attachment-ocean-thumb-m size-ocean-thumb-m wp-image-5188" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/3-600x600.webp 600w, https://theeventhorizons.com/wp-content/uploads/2023/11/3-150x150.webp 150w" sizes="(max-width: 600px) 100vw, 600px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-96cd0a" data-id="96cd0a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3844d63b elementor-widget elementor-widget-image" data-id="3844d63b" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="797" src="https://theeventhorizons.com/wp-content/uploads/2023/11/Convex-1024x797.png" class="attachment-large size-large wp-image-5186" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/Convex-1024x797.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/Convex-300x234.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/Convex-768x598.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/Convex.png 1182w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Example of a convex function</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-65eea546 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="65eea546" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6ee3de43" data-id="6ee3de43" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3934f1a8 elementor-widget elementor-widget-text-editor" data-id="3934f1a8" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									However, what is error? How can it be defined? Before addressing these questions, it is crucial to discuss a mathematical concept: distance, which allows quantifying the separation between two given points.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-36ceb07e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="36ceb07e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-11fc04f2" data-id="11fc04f2" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-52158a8f elementor-widget elementor-widget-spacer" data-id="52158a8f" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-369ef7df elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="369ef7df" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2e727b3f" data-id="2e727b3f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-19047c48 elementor-widget elementor-widget-heading" data-id="19047c48" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-medium">Distances Explained by Hal</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-ce08d19 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="ce08d19" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-22c763f2" data-id="22c763f2" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-19752dfa elementor-widget elementor-widget-text-editor" data-id="19752dfa" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Wall-E, in the midst of contemplation, sought to understand why he needed to pay attention to the concept of distance. Perplexity engulfed him as he observed Hal, his loyal companion cockroach, sneak silently through the corners of the laboratory.</p><p>What could this meticulous and methodical exploration of space by Hal possibly signify?</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4f6c33c7 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4f6c33c7" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5d9adabd" data-id="5d9adabd" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6ebb6939 elementor-widget elementor-widget-image" data-id="6ebb6939" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="576" src="https://theeventhorizons.com/wp-content/uploads/2023/11/Hal-y-Wall-E-en-un-fotograma-de-la-pelicula-producida-por-Walt-Disney-Pictures-y-Pixar-Animation-1024x576.jpg" class="attachment-large size-large wp-image-5008" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/Hal-y-Wall-E-en-un-fotograma-de-la-pelicula-producida-por-Walt-Disney-Pictures-y-Pixar-Animation-1024x576.jpg 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/Hal-y-Wall-E-en-un-fotograma-de-la-pelicula-producida-por-Walt-Disney-Pictures-y-Pixar-Animation-300x169.jpg 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/Hal-y-Wall-E-en-un-fotograma-de-la-pelicula-producida-por-Walt-Disney-Pictures-y-Pixar-Animation-768x432.jpg 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/Hal-y-Wall-E-en-un-fotograma-de-la-pelicula-producida-por-Walt-Disney-Pictures-y-Pixar-Animation-800x450.jpg 800w, https://theeventhorizons.com/wp-content/uploads/2023/11/Hal-y-Wall-E-en-un-fotograma-de-la-pelicula-producida-por-Walt-Disney-Pictures-y-Pixar-Animation.jpg 1090w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6a4c98ee elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6a4c98ee" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-10fb0ca9" data-id="10fb0ca9" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-35b506a1 elementor-widget elementor-widget-text-editor" data-id="35b506a1" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									He was far from imagining that behind these silent and discreet movements, Hal was, in his own way, sharing the subtleties of distances. Each maneuver between the objects in the room illustrated an essential mathematical rule. They counted up to four.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2a321594 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2a321594" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-52ea477e" data-id="52ea477e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-ff929cc elementor-widget elementor-widget-text-editor" data-id="ff929cc" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><b>Positivity</b>. In this choreography, Hal demonstrated the first rule: the positivity of distances. Explaining in his own way that the distance between his favorite hiding spot and the waste pantry was always positive, a fact simply illustrated by his trajectory (a length is not negative).</p><p>Wall-E, being a good scientist, expressed it in mathematical terms: The distance between any two points A and B must be positive or zero. This is written as,<br />\begin{align*}<br />\forall A, B \in E, \quad d(A,B)\geq 0.<br />\end{align*}</p><p>This symbol \(&#8220;\forall&#8221;\) means &#8220;for all&#8221; and \(&#8220;\in&#8221;\) means &#8220;in&#8221;. It reads, for all arbitrary elements A and B (here we are talking about points) in E, the distance between A and B is positive or zero.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4ae63cba elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4ae63cba" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-49fea163" data-id="49fea163" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5545559a elementor-widget elementor-widget-text-editor" data-id="5545559a" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><b>Symmetry</b>. The concept of symmetry was then highlighted by Hal, demonstrating how his movements from point A to point B were always identical, whether he went from B to A or from A to B. His subtle back-and-forth marked the idea of symmetry in this dance between points.</p><p>The little robot introduced this idea into his circuits: The distance between A and B must be the same as between B and A. Mathematically,<br />\begin{align*}<br />\forall A, B \in E, \quad d(A,B)=d(B,A).<br />\end{align*}</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1564132b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1564132b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-58660407" data-id="58660407" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-27249def elementor-widget elementor-widget-text-editor" data-id="27249def" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><b>Separation</b>. However, the most surprising demonstration for Wall-E was that of separation. Hal went to fetch two seeds that he placed in two different locations in the room. He then began a frenetic dance, leaving one seed fixed and bringing the other one back to it by performing a series of quick back-and-forths until finally sticking the two seeds together.</p><p>In this way, he wanted to illustrate to Wall-E that if the distance between these two points was zero, then the two points coincide. An impressive and clear representation of the separation rule.</p><p>He understood the lesson, which he translated into his own language: If the distance between A and B is zero, then A and B coincide.</p><p>\begin{align*}\forall A, B \in E, \quad d(A,B)=0 ⇒A=B.\end{align*}</p><p>This symbol &#8220;<b style="font-size: 15px; color: var( --e-global-color-text );">⇒</b><span style="font-size: 15px; color: var( --e-global-color-text );">&#8221; means &#8220;imply&#8221;.</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4637d8d4 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4637d8d4" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1f594325" data-id="1f594325" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-48fa70f7 elementor-widget elementor-widget-text-editor" data-id="48fa70f7" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><b>The Triangle Inequality</b>. However, Hal&#8217;s lesson did not stop there as there was still another essential rule to analyze. He continued his exploration by illustrating the triangle inequality.</p><p>By moving between his hiding spot, Wall-E, and the pantry, Hal showed that the distance between his hiding spot and Wall-E is always less than the distance between his hiding spot and the pantry plus the distance between the pantry and Wall-E. This clever trick, teaching that the shortest path between two points is a straight line, captivated Wall-E.</p><p>He hastened to transcribe it all: If I take three points A, B, and C that do not coincide, then the distance between A and B is always less than or equal to the distance between A and C plus the distance between C and B.</p><p>\begin{align*}<br />\forall A, B, C \in E, \quad d(A,B)\leq d(A,C)+d(C,B).<br />\end{align*}</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-45a213ba elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="45a213ba" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-5805628b" data-id="5805628b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-47cac0ce elementor-widget elementor-widget-image" data-id="47cac0ce" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="774" src="https://theeventhorizons.com/wp-content/uploads/2023/11/inegal-triang-1024x774.png" class="attachment-large size-large wp-image-5374" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/inegal-triang-1024x774.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/inegal-triang-300x227.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/inegal-triang-768x581.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/inegal-triang.png 1214w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Representation of the triangle inequality. The length of the blue segment is smaller than the sum of the lengths of the two green segments.</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-6eef8669" data-id="6eef8669" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1647d1bd elementor-widget elementor-widget-image" data-id="1647d1bd" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="625" height="445" src="https://theeventhorizons.com/wp-content/uploads/2023/11/0def68edc12e81a4452a4e1d0f17d7db.png" class="attachment-large size-large wp-image-5112" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/0def68edc12e81a4452a4e1d0f17d7db.png 625w, https://theeventhorizons.com/wp-content/uploads/2023/11/0def68edc12e81a4452a4e1d0f17d7db-300x214.png 300w" sizes="(max-width: 625px) 100vw, 625px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-71892a4b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="71892a4b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-275dfc34" data-id="275dfc34" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-67c41546 elementor-widget elementor-widget-text-editor" data-id="67c41546" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Thanks to Hal, Wall-E grasped that formally, a distance is a function that compares two points in a given space by assigning a non-negative real number, expressing the &#8220;length&#8221; between these two points, and follows specific rules.</p><p><span style="font-size: 15px; color: var( --e-global-color-text );">This space can be the familiar two-dimensional plane as demonstrated by the cockroach or our three-dimensional space, or even much more exotic spaces.</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-42cdc409 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="42cdc409" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-176b382e" data-id="176b382e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1549c2c7 elementor-widget elementor-widget-text-editor" data-id="1549c2c7" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p> </p><p> </p><p> </p><p>His abstraction skills also allow him to understand that there are different types of distances, among which the most well-known is the Euclidean distance (also called the 2-distance).</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-45245e4a" data-id="45245e4a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3634bf3b elementor-widget elementor-widget-image" data-id="3634bf3b" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="786" src="https://theeventhorizons.com/wp-content/uploads/2023/11/Euclidian-1024x786.png" class="attachment-large size-large wp-image-5159" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/Euclidian-1024x786.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/Euclidian-300x230.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/Euclidian-768x589.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/Euclidian.png 1196w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Calculating the Euclidian distance between point A and point B.</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-605ba123 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="605ba123" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-4cdc9f60" data-id="4cdc9f60" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3dd03fe1 elementor-widget elementor-widget-image" data-id="3dd03fe1" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="804" src="https://theeventhorizons.com/wp-content/uploads/2023/11/Infinite-1024x804.png" class="attachment-large size-large wp-image-5160" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/Infinite-1024x804.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/Infinite-300x236.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/Infinite-768x603.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/Infinite.png 1166w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Calculating the Infinite distance between point A and point B.</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-566e1e3c" data-id="566e1e3c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-272dd9ea elementor-widget elementor-widget-text-editor" data-id="272dd9ea" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p> </p><p> </p><p> </p><p>or the l&#8217;\(\infty\)-distance (also called the infinity-distance), which assesses the maximum distance between these points along any dimension.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-20b4aa7f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="20b4aa7f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-c288204" data-id="c288204" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-63ee64fe elementor-widget elementor-widget-text-editor" data-id="63ee64fe" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p> </p><p> </p><p>However, there is also the Manhattan distance (or 1-distance for purists), named so because it reflects the distance a taxi would have to travel in a network of streets forming orthogonal grids (typical of the street layout in Manhattan, hence the name).</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-722e9463" data-id="722e9463" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2d10002b elementor-widget elementor-widget-image" data-id="2d10002b" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="812" src="https://theeventhorizons.com/wp-content/uploads/2023/11/Manhattan-1024x812.png" class="attachment-large size-large wp-image-5162" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/Manhattan-1024x812.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/Manhattan-300x238.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/Manhattan-768x609.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/Manhattan.png 1180w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Calculating the Manhattan distance between point A and point B.</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5d1ddf57 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5d1ddf57" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-15f6f021" data-id="15f6f021" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5106c183 elementor-widget elementor-widget-text-editor" data-id="5106c183" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									We will explore these intricacies in detail in an upcoming article.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-14598a4c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="14598a4c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2972ccd8" data-id="2972ccd8" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-78a257e3 elementor-widget elementor-widget-spacer" data-id="78a257e3" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1b15e5e1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1b15e5e1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4f27ea42" data-id="4f27ea42" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-300958ca elementor-widget elementor-widget-heading" data-id="300958ca" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-medium">A Fatal Error</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-74dc6905 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="74dc6905" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-63bb0e49" data-id="63bb0e49" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-77c73ee3 elementor-widget elementor-widget-text-editor" data-id="77c73ee3" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Now, why delve into the concept of distance in the context of evaluating Wall-E&#8217;s predictions? In fact, this leads us to consider what errors truly represent between the predictions and the actual values in the dataset.</p><p>Imagine that Wall-E evaluates the first sample, a one-kilogram gold alloy with a purity of 0.72 and an actual price of 1231 bolts, but predicts 1331 bolts. You observe a difference of -130 bolts. Here, we obtain a negative value, but in another example, it could be positive. This duality between positive and negative values is not practical.</p><p>To solve this problem, two options are available to us:</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-39ea3519 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="39ea3519" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1e330b7d" data-id="1e330b7d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1759ad99 elementor-widget elementor-widget-text-editor" data-id="1759ad99" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>• The first option is to consider the absolute value of each difference (remove the minus sign when present). The error obtained is called the absolute error, denoted AE.</p><p>In the previous example, we would have<span style="font-size: 15px; color: var( --e-global-color-text );"> \(AE(1) = |</span><span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: var( --e-global-color-text );"> 1231</span><span style="font-size: 15px; color: var( --e-global-color-text );">&#8211;</span><span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: var( --e-global-color-text );">1331</span><span style="font-size: 15px; color: var( --e-global-color-text );">| = |-130|=130\).</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-389f3da5 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="389f3da5" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6d28c10b" data-id="6d28c10b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-65e06e07 elementor-widget elementor-widget-text-editor" data-id="65e06e07" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>• The second option is to calculate the square of each difference. This error is called the squared error, noted SE.</p><p>Here, we would have a squared error<span style="font-size: 15px; color: var( --e-global-color-text );"> \(SE(1)= (</span><span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: var( --e-global-color-text );">1231</span><span style="font-size: 15px; color: var( --e-global-color-text );">&#8211;</span><span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: var( --e-global-color-text );">1331</span><span style="font-size: 15px; color: var( --e-global-color-text );">)^2=(-130)^2=16900\).</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-145a4c56 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="145a4c56" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-68fb886a" data-id="68fb886a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1f245db5 elementor-widget elementor-widget-text-editor" data-id="1f245db5" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>We notice that the second option greatly amplifies the errors, but we will see how to balance these differences later.</p><p>Thus, by applying either of these options, we choose how we want to measure errors, i.e., a distance. The \(\infty\)-distance for the first or the Euclidean distance for the second.</p><p>Now, the procedure is simple: each estimate, denoted by k, in the Dataset is compared to reality. Depending on the chosen approach, Wall-E&#8217;s program returns the corresponding error. Moreover, depending on the chosen distance, the cost function is named differently:</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2c6759e2 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2c6759e2" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-3c7f6509" data-id="3c7f6509" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7ecbead7 elementor-widget elementor-widget-text-editor" data-id="7ecbead7" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									• If we consider the approach of absolute errors, it is called the Mean Absolute Error, denoted MAE, and is written as:</span></p>
<p><span style="font-size: 15px; color: var( --e-global-color-text );">\begin{align*} MAE(a, b) &amp;=\frac{AE(1)+AE(2)+\cdots+AE(n)}{n}=\frac{1}{n}\sum_{k=1}^n AE(k)\\ &amp;= \frac{1}{n}\sum_{k=1}^n\left|f\left(x^{(k)}\right) &#8211; y^{(k)}\right|=\frac{1}{n} \sum_{k=1}^{n} \left|ax^{(k)} + b- y^{(k)}\right|. \end{align*}</span></p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-2887fbbb" data-id="2887fbbb" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1608072b elementor-widget elementor-widget-text-editor" data-id="1608072b" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									• While the approach of squared errors provides us with a cost function called Mean Squared Error, denoted MSE, and is written as:<br />\begin{align*}<br />MSE(a, b) &amp;=\frac{SE(1)+SE(2)+\cdots+SE(n)}{n}=\frac{1}{n}\sum_{k=1}^n SE(k)\\<br />&amp;= \frac{1}{n}\sum_{k=1}^n\left(f\left(x^{(k)}\right) &#8211; y^{(k)}\right)^2=\frac{1}{n} \sum_{k=1}^{n} \left(ax^{(k)} + b- y^{(k)}\right)^2.<br />\end{align*}</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5f6c3e91 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5f6c3e91" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3c1263f1" data-id="3c1263f1" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5705f73c elementor-widget elementor-widget-text-editor" data-id="5705f73c" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>To rescale the errors calculated by this function, we simply take its square root. The function obtained in this way is called the Root Mean Squared Error, noted RMSE.</p><p>Here&#8217;s an example to illustrate the calculation where Wall-E estimates the value of only five samples (with five differences).</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1da7f9c5 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1da7f9c5" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-23940143" data-id="23940143" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-14ebd4f6 elementor-widget elementor-widget-shortcode" data-id="14ebd4f6" data-element_type="widget" data-e-type="widget" data-widget_type="shortcode.default">
				<div class="elementor-widget-container">
							<div class="elementor-shortcode">
<table id="tablepress-22" class="tablepress tablepress-id-22">
<tbody class="row-striping row-hover">
<tr class="row-1">
	<td class="column-1">Differences</td><td class="column-2">-100</td><td class="column-3">7</td><td class="column-4">-2</td><td class="column-5">42</td><td class="column-6">13</td>
</tr>
<tr class="row-2">
	<td class="column-1">Errors AE</td><td class="column-2">100</td><td class="column-3">7</td><td class="column-4">2</td><td class="column-5">42</td><td class="column-6">13</td>
</tr>
<tr class="row-3">
	<td class="column-1">Errors SE</td><td class="column-2">10 000</td><td class="column-3">49</td><td class="column-4">4</td><td class="column-5">1764</td><td class="column-6">169</td>
</tr>
</tbody>
</table>
</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1ef99131 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1ef99131" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-41e3ee54" data-id="41e3ee54" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3d46e8f0 elementor-widget elementor-widget-heading" data-id="3d46e8f0" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Calculation of MAE</h2>				</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-1b09ac13" data-id="1b09ac13" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-31c27f3 elementor-widget elementor-widget-heading" data-id="31c27f3" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Calculation of RMSE</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3e71079a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3e71079a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-70a149f3" data-id="70a149f3" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-46a21fb2 elementor-widget elementor-widget-text-editor" data-id="46a21fb2" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>\begin{align*}MAE(a, b) =\frac{100 + 7 + 2 +  42 + 13}{5} = 32.8.\end{align*}</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-552f0c0c" data-id="552f0c0c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1c2f84e3 elementor-widget elementor-widget-text-editor" data-id="1c2f84e3" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400;">\begin{align*}RMSE(a, b) =\sqrt{\frac{10000 + 49 + 4 +  1764 + 169}{5} }= 48.96.\end{align*}</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4a8b06b1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4a8b06b1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-67d71dab" data-id="67d71dab" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5cec9633 elementor-widget elementor-widget-text-editor" data-id="5cec9633" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="text-align: center;">Why choose one or the other? To answer this question, let&#8217;s introduce Eve.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-15a53399 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="15a53399" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-fa32690" data-id="fa32690" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2fa6d1a elementor-widget elementor-widget-image" data-id="2fa6d1a" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="425" src="https://theeventhorizons.com/wp-content/uploads/2023/11/character_head-1024x425.jpg" class="attachment-large size-large wp-image-5108" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/character_head-1024x425.jpg 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/character_head-300x124.jpg 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/character_head-768x318.jpg 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/character_head.jpg 1500w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-42be2bbe elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="42be2bbe" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-53ea94eb" data-id="53ea94eb" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5eca065e elementor-widget elementor-widget-text-editor" data-id="5eca065e" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									In addition to her ability to distinguish organic objects, she has a sophisticated self-defense system. She has been trained to estimate the distance (in centimeters) between the impact of her shots and the center of the target. Eve trains two models to find the one that will minimize errors.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6a6cceda elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6a6cceda" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-334afade" data-id="334afade" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-19e68a08 elementor-widget elementor-widget-shortcode" data-id="19e68a08" data-element_type="widget" data-e-type="widget" data-widget_type="shortcode.default">
				<div class="elementor-widget-container">
							<div class="elementor-shortcode">
<table id="tablepress-18" class="tablepress tablepress-id-18">
<thead>
<tr class="row-1">
	<td class="column-1"></td><th class="column-2">Error 1</th><th class="column-3">Error 2</th><th class="column-4">Error 3</th><th class="column-5">Error 4</th><th class="column-6">MAE</th>
</tr>
</thead>
<tbody class="row-striping row-hover">
<tr class="row-2">
	<td class="column-1">Model 1</td><td class="column-2">20</td><td class="column-3">0</td><td class="column-4">0</td><td class="column-5">0</td><td class="column-6">5</td>
</tr>
<tr class="row-3">
	<td class="column-1">Model 2</td><td class="column-2">6</td><td class="column-3">5</td><td class="column-4">6</td><td class="column-5">4</td><td class="column-6">5.25</td>
</tr>
</tbody>
</table>
</div>
						</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-1a551c5" data-id="1a551c5" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7f41b606 elementor-widget elementor-widget-shortcode" data-id="7f41b606" data-element_type="widget" data-e-type="widget" data-widget_type="shortcode.default">
				<div class="elementor-widget-container">
							<div class="elementor-shortcode">
<table id="tablepress-20" class="tablepress tablepress-id-20">
<thead>
<tr class="row-1">
	<td class="column-1"></td><th class="column-2">Error 1</th><th class="column-3">Error 2</th><th class="column-4">Error 3</th><th class="column-5">Error 4</th><th class="column-6">RMSE</th>
</tr>
</thead>
<tbody class="row-striping row-hover">
<tr class="row-2">
	<td class="column-1">Model 1</td><td class="column-2">20</td><td class="column-3">0</td><td class="column-4">0</td><td class="column-5">0</td><td class="column-6">10</td>
</tr>
<tr class="row-3">
	<td class="column-1">Model 2</td><td class="column-2">6</td><td class="column-3">5</td><td class="column-4">6</td><td class="column-5">4</td><td class="column-6">5.31</td>
</tr>
</tbody>
</table>
</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-16d4f0be elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="16d4f0be" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-549619bc" data-id="549619bc" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-183da721 elementor-widget elementor-widget-text-editor" data-id="183da721" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Here we observe that the MAE of model 1 is smaller than that of model 2, so Eve will choose model 1 to estimate her shots.</p><p>However, in the first model, we can see that Eve makes almost no errors except for her first shot where she is off by 20 cm.</p><p> This is a non-negligible and dangerous quantity, as it could cause harm to someone if her arsenal is not precise enough.</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-158b9a37" data-id="158b9a37" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7433e233 elementor-widget elementor-widget-text-editor" data-id="7433e233" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>In this table, it&#8217;s completely different; we observe that the RMSE of model 1 is much worse than model 2 as it shows a much larger error.</p><p>Eve would tend to choose model 2 in this case. In fact, RMSE penalizes large errors much more than MAE.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-f765f75 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="f765f75" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3389a2d7" data-id="3389a2d7" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-36caa100 elementor-widget elementor-widget-text-editor" data-id="36caa100" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>If Eve favors Mean Absolute Error (MAE), it means she wants to minimize the absolute differences between the impact of her shots and the target. This suggests that for Eve, each difference has the same importance. A difference of 20 units is considered twenty times more important than a difference of 1 unit.</p><p>On the other hand, if Eve chooses to favor Root Mean Squared Error (RMSE), it means she wants to emphasize large differences. In this case, more significant errors have a more significant weight. Indeed, a difference of 20 units is 400 times more important than a difference of one unit. So, if Eve wants to eliminate shots with very large differences, the model based on RMSE would be more suitable.</p><p>These choices of cost functions depend on Eve&#8217;s goals: if she wants to reduce large differences, she will favor MSE. On the other hand, if she wants a balanced assessment of all differences, she will opt for MAE. Also, there are other ways to measure errors, but we won&#8217;t discuss them here.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-107f1f10 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="107f1f10" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-37491afa" data-id="37491afa" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5b652492 elementor-widget elementor-widget-spacer" data-id="5b652492" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-285d1eaf elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="285d1eaf" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-12b692af" data-id="12b692af" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-451a53da elementor-widget elementor-widget-heading" data-id="451a53da" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">A Small Step for the Robot, a Giant Leap for the Algorithm</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-79b0048d elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="79b0048d" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-692e03b2" data-id="692e03b2" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-411c986a elementor-widget elementor-widget-text-editor" data-id="411c986a" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									What Wall-E enjoys most is learning by himself which parameters minimize the cost function, that is, the parameters that give us the best possible model. To find these optimal parameters, Wall-E uses a well-known optimization algorithm called gradient descent. Imagine this step as if Wall-E is meticulously adjusting the knobs of his mathematical model to reach the level of expertise needed in predicting the price of gold based on its purity.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-28628b7 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="28628b7" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-11f12de9" data-id="11f12de9" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-77cb0fd2 elementor-widget elementor-widget-heading" data-id="77cb0fd2" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-medium">Let's Descend!</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6d85779a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6d85779a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7298993c" data-id="7298993c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-728710bb elementor-widget elementor-widget-text-editor" data-id="728710bb" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									The concept of gradient descent is simple: envision Wall-E lost on the slopes of a waste mountain in thick fog, recycling what&#8217;s left for him to do. Unfortunately for him, his batteries are dangerously fading, so he must reach his small spaceship located at the lowest point, but he can only see the immediate slopes around him. Thus, at each step of length \(\delta\) (that&#8217;s the Greek letter delta), he chooses the direction that makes him descend as quickly as possible. As he advances, he adjusts his direction based on the slopes he perceives, gradually approaching the lowest point.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-67b912c1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="67b912c1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-40029410" data-id="40029410" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3aa60810 elementor-widget elementor-widget-image" data-id="3aa60810" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="762" src="https://theeventhorizons.com/wp-content/uploads/2023/11/lr-0.2-1024x762.png" class="attachment-large size-large wp-image-5179" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/lr-0.2-1024x762.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/lr-0.2-300x223.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/lr-0.2-768x572.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/lr-0.2.png 1118w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Simulation of gradient descent with a step size of 0.2 units.</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-34ac4ae4" data-id="34ac4ae4" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-83d4966 elementor-widget elementor-widget-image" data-id="83d4966" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1000" height="563" src="https://theeventhorizons.com/wp-content/uploads/2023/11/intro-1608234708.jpg" class="attachment-large size-large wp-image-5129" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/intro-1608234708.jpg 1000w, https://theeventhorizons.com/wp-content/uploads/2023/11/intro-1608234708-300x169.jpg 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/intro-1608234708-768x432.jpg 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/intro-1608234708-800x450.jpg 800w" sizes="(max-width: 1000px) 100vw, 1000px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5094bdfc elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5094bdfc" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-65462cc7" data-id="65462cc7" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5a551453 elementor-widget elementor-widget-text-editor" data-id="5a551453" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									Of course, the choice of the value <span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400;">\(\delta\)</span> is crucial in gradient descent. Because imagine if Wall-E takes steps that are too small, he will take too long to reach the bottom, or if he uses his jetpack to fly over very large distances, he might overshoot his refuge.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4ffcd4c1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4ffcd4c1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-68102f9f" data-id="68102f9f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-50b429c3 elementor-widget elementor-widget-image" data-id="50b429c3" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="758" src="https://theeventhorizons.com/wp-content/uploads/2023/11/lr-0.02-1-1024x758.png" class="attachment-large size-large wp-image-5176" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/lr-0.02-1-1024x758.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/lr-0.02-1-300x222.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/lr-0.02-1-768x569.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/lr-0.02-1.png 1140w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Simulation of gradient descent with a step size of 0.02 units.</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-c836454" data-id="c836454" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-99b7d38 elementor-widget elementor-widget-image" data-id="99b7d38" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="759" src="https://theeventhorizons.com/wp-content/uploads/2023/11/lr-0.9-1-1024x759.png" class="attachment-large size-large wp-image-5177" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/lr-0.9-1-1024x759.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/lr-0.9-1-300x222.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/lr-0.9-1-768x569.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/lr-0.9-1.png 1150w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Simulation of gradient descent with a step size of 0.9 units.</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6d65ab7 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6d65ab7" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-388ec5d9" data-id="388ec5d9" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-476b03f9 elementor-widget elementor-widget-text-editor" data-id="476b03f9" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Let&#8217;s go back to our initial problem. The mountain of waste symbolizes our cost function, Wall-E&#8217;s position parameters on the mountain represent the parameters of our linear regression model, and the steps translate what is called Wall-E&#8217;s learning rate. So, breaking down Wall-E&#8217;s actions algorithmically, we have:</p>
<p><span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: var( --e-global-color-text );">•&nbsp;</span>Our robot calculates the gradients, meaning the slope along the two axes (a and b) of the cost function at each iteration. Mathematically, this involves calculating these two quantities:</p>
<p>\begin{align*} \frac{\partial&nbsp;\Gamma(a, b)}{\partial a}\quad\text{et}\quad \frac{\partial&nbsp;\Gamma(a, b)}{\partial b} \end{align*}&nbsp;<span style="font-size: 15px; color: var( --e-global-color-text );">Mathematicians will have understood it well; this is nothing more than the calculation of the derivative of a function with several variables.</span></p>
<p><span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: var( --e-global-color-text );">•&nbsp;</span><span style="font-size: 15px; color: var( --e-global-color-text );">He updates the parameters, bringing him closer and closer to the minimum of the cost function. The updated parameters are referred to as \(a^*\) and \(b^*\) and write \begin{align*} a^*&amp;=a-\delta\times\frac{\partial&nbsp;\Gamma(a, b)}{\partial a}\\ b^*&amp;=b- \delta\times\frac{\partial&nbsp;\Gamma(a, b)}{\partial b} \end{align*}</span><span style="font-size: 15px; color: var( --e-global-color-text );">&nbsp;Thus, the new parameters are simply defined as the old position minus the learning rate \(\delta\) multiplied by the value of the slope. By analogy, it&#8217;s Wall-E&#8217;s position after taking a step in the direction where the slope is the steepest.</span></p>
<p><span style="color: var( --e-global-color-text ); font-size: 15px;">&nbsp;</span><span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: var( --e-global-color-text );">•&nbsp;</span><span style="color: var( --e-global-color-text ); font-size: 15px;">He restarts until he finds the minimum of the cost function.</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5a9082a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5a9082a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7f4ade0e" data-id="7f4ade0e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-27e4355 elementor-widget elementor-widget-text-editor" data-id="27e4355" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>It&#8217;s important to understand that gradient descent is an iterative process, meaning it repeats many times until Wall-E reaches a point where the cost function is minimal, and its predictions are as accurate as possible.</p><p>Regarding the learning rate, some details need to be clarified. As in the previous metaphor, the choice of the value of <span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400;">\(\delta\)</span> is crucial.</p><p>A too small <span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400;">\(\delta\)</span> could slow down convergence because parameter adjustments would be tiny at each step, while a too large <span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400;">\(\delta\)</span> could lead to oscillations or even prevent convergence, as adjustments might overshoot the desired minimum. Therefore, choosing the value of <span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400;">\(\delta\)</span> is therefore crucial for Wall-E&#8217;s algorithm to converge efficiently towards the optimal solution.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-42b994ec elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="42b994ec" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7048509a" data-id="7048509a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-63e929f9 elementor-widget elementor-widget-heading" data-id="63e929f9" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-medium">When will we arrive ?</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-28ca9b43 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="28ca9b43" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6629940c" data-id="6629940c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6d879314 elementor-widget elementor-widget-text-editor" data-id="6d879314" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>It&#8217;s been a little while now that our brave robot has been moving desperately in the dark, blinded by Mother Nature. He wonders when he will reach the bottom of the mountain. Just like in this situation, in machine learning, reaching the minimum of the cost function – the equivalent of shelter for Wall-E – can seem tricky. His position is uncertain, and to get there, Wall-E must adjust his progress, taking into account the length of his steps and the number of these steps.</p><p>To navigate, Wall-E must meticulously record each of his positions along the mountain&#8217;s slope, which is called the descent story. By keeping an accurate record of each step, he can then plot his trajectory, creating a &#8220;descent curve.&#8221; This allows him to visualize his path, measure his progress, and determine if he is close to the lowest point. Below is an example, assuming Wall-E is randomly placed on the mountain.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3201f2a3 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3201f2a3" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-33e7bf5b" data-id="33e7bf5b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-470ff258 elementor-widget elementor-widget-image" data-id="470ff258" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="694" src="https://theeventhorizons.com/wp-content/uploads/2023/11/descente-1024x694.png" class="attachment-large size-large wp-image-5296" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/descente-1024x694.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/descente-300x203.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/descente-768x521.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/descente-1536x1042.png 1536w, https://theeventhorizons.com/wp-content/uploads/2023/11/descente.png 1566w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Descent value as a function of the number of steps. The step length is set to 0.1 units.</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-2d8fa6b9" data-id="2d8fa6b9" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-26fa967c elementor-widget elementor-widget-image" data-id="26fa967c" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="577" src="https://theeventhorizons.com/wp-content/uploads/2023/11/3-copie-1024x577.png" class="attachment-large size-large wp-image-5297" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/3-copie-1024x577.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/3-copie-300x169.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/3-copie-768x433.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/3-copie-800x450.png 800w, https://theeventhorizons.com/wp-content/uploads/2023/11/3-copie.png 1296w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-72f4f4c7 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="72f4f4c7" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-28854e12" data-id="28854e12" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-73180684 elementor-widget elementor-widget-text-editor" data-id="73180684" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>In the field of Machine Learning, the descent story is actually called the cost history as it provides the values of the cost function based on key variables such as the learning rate and the number of iterations of the gradient descent algorithm.</p><p>Moreover, its graphical representation, referred to as the descent curve, is actually called the learning curve. It is essential for assessing the performance of a model because it dynamically illustrates the evolution of the model&#8217;s accuracy.</p><p>In this particular case, after about ten steps, Wall-E seems to stop descending further, indicating that it has reached its shelter. The additional 40 steps are therefore unnecessary. This information is crucial in computer science, as it allows us to avoid running the algorithm unnecessarily, potentially saving time and resources, especially when certain simulations can take considerable time, ranging from days to weeks.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-7fa42eb9 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="7fa42eb9" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-36e6aec9" data-id="36e6aec9" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-33db90a1 elementor-widget elementor-widget-spacer" data-id="33db90a1" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-65e349fd elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="65e349fd" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-683901b7" data-id="683901b7" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7544301c elementor-widget elementor-widget-heading" data-id="7544301c" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">In its Printed Circuits: Estimating the Price of Gold</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-664c3db8 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="664c3db8" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7cf19775" data-id="7cf19775" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-768a094f elementor-widget elementor-widget-text-editor" data-id="768a094f" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									But what exactly is happening in the electronic brain of our adorable robot? Before performing any addition, Wall-E translates not only the entire dataset into a table but also the model parameters and gradients: a kind of encrypted language for machines known as matrix form that greatly simplifies calculations. More precisely, this gives rise to a vector. \(\mathbf{Y}\) composed of n elements corresponding to the prices of the n gold samples,								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-272c0697 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="272c0697" data-element_type="section" data-e-type="section" data-settings="{&quot;background_background&quot;:&quot;classic&quot;}">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-77f329e3" data-id="77f329e3" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-77dc4b5 elementor-widget elementor-widget-text-editor" data-id="77dc4b5" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									\begin{equation*}
\mathbf{Y}=\begin{bmatrix}
y^{(1)} \\
y^{(2)} \\
\vdots\\
y^{(n)}
\end{bmatrix}
\end{equation*}								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-42fa3c37 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="42fa3c37" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4bb64678" data-id="4bb64678" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-74434807 elementor-widget elementor-widget-text-editor" data-id="74434807" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									accompanied by a matrix  \(\mathbf{X}\) with n rows and \(m+1\) columns that accurately encapsulates each of the m features (in this case, there is only one \(m=1\))  and a column containing only 1s, which we&#8217;ll call the &#8220;bias.&#8221;								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4c5710b4 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4c5710b4" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7f8d4f16" data-id="7f8d4f16" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-477644fb elementor-widget elementor-widget-text-editor" data-id="477644fb" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									 \begin{equation*}
\mathbf{X}=\left[
\begin{array}{cc}
x^{(1)}  &#038; 1\\
x^{(2)} &#038; 1\\
\vdots &#038; \vdots\\
x^{(n)} &#038; 1
\end{array}
\right].
\end{equation*}								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-14e16021 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="14e16021" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-268f9424" data-id="268f9424" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-c861813 elementor-widget elementor-widget-text-editor" data-id="c861813" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									This last one simply allows us to perform the necessary matrix calculations for learning. It&#8217;s worth noting that, in general, we have								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-eb9afdf elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="eb9afdf" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-781993f3" data-id="781993f3" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6b5db274 elementor-widget elementor-widget-text-editor" data-id="6b5db274" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									 \begin{equation*}
\mathbf{X}=\left[
\begin{array}{cccc}
   x^{(1)}_1 &#038; \cdots &#038; x^{(1)}_m &#038; 1\\
   \vdots &#038; \ddots &#038; \vdots &#038; \vdots \\
   x^{(n)}_1 &#038; \cdots &#038; x^{(n)}_m &#038; 1
\end{array}
\right].
\end{equation*}								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-7060a8d9 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="7060a8d9" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1a85eb7d" data-id="1a85eb7d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-76a651d6 elementor-widget elementor-widget-text-editor" data-id="76a651d6" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									Simultaneously, a vector called &#8220;parameter&#8221; \(\mathbf{P}\) (a column) makes its entrance, carefully bringing together all the parameters of our model, namely a and b.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2a63c41c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2a63c41c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2faf4174" data-id="2faf4174" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2a6da470 elementor-widget elementor-widget-text-editor" data-id="2a6da470" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									\begin{equation*}
\mathbf{P}=\begin{bmatrix}
a \\
b
\end{bmatrix}.
\end{equation*}								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-a62ff2a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="a62ff2a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-64b10ed6" data-id="64b10ed6" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-57998688 elementor-widget elementor-widget-text-editor" data-id="57998688" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									Don&#8217;t forget that we are looking for \(\mathbf{P}\) such that it minimizes the cost function. Thanks to this, Wall-E can express all the learning steps easily and estimate the price of a gold nugget with an unknown value:								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4a35c495 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4a35c495" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-423b925e" data-id="423b925e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2bd43e5e elementor-widget elementor-widget-text-editor" data-id="2bd43e5e" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<strong>• The Harvest </strong> is carried out by displaying the data in a matrix: each sample, with its purity and price characteristics, finds its place in this matrix.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2ce9e24 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2ce9e24" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-106c094a" data-id="106c094a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2bedf274 elementor-widget elementor-widget-text-editor" data-id="2bedf274" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<strong>• The Model Creation</strong> is the process where Wall-E defines the parameters shown in the column \(\mathbf{P}\) chosen randomly, which are used to establish the linear relationship between the purity and the price of gold. \(\mathbf{F(\mathbf{X})}=\mathbf{X\times P}\).								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-344d7b4c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="344d7b4c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-77935500" data-id="77935500" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7a8ee609 elementor-widget elementor-widget-text-editor" data-id="7a8ee609" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<strong>• The Cost Function </strong>  is redefined as follows: \begin{align*} \Gamma(\mathbf{P})=\frac{1}{n}\left(\mathbf{F(X)-y}\right)\cdot\left(\mathbf{F(X)-y}\right) \end{align*} where \(\cdot\) denotes the dot product (we will talk about the scalar product in another article).								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-47b9066f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="47b9066f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-18b22de6" data-id="18b22de6" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-73224c2 elementor-widget elementor-widget-text-editor" data-id="73224c2" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<strong>• Finding the Minimum 
 </strong> involves calculating the gradient:
\begin{align*}\frac{\partial }{\partial \mathbf{P}} \Gamma(\mathbf{P})=\frac{1}{n}\mathbf{X\cdot\left(F(X)-y\right)}\end{align*}
and iteratively applying gradient descent to update the parameter P:
\begin{align*}\mathbf{P^*}=\mathbf{P}-\delta \frac{\partial }{\partial \mathbf{P}}\Gamma(\mathbf{P})\end{align*}
where \(\mathbf{P^*}\) is the new parameter.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-49a3252b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="49a3252b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-47bd61a0" data-id="47bd61a0" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4b5782be elementor-widget elementor-widget-text-editor" data-id="4b5782be" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									Wall-E, by carefully applying all the steps, is now ready to estimate the price of gold based on the purity you provide! Here is the final curve he obtains.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1ef64ab3 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1ef64ab3" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-4951c2ee" data-id="4951c2ee" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-11becc70 elementor-widget elementor-widget-image" data-id="11becc70" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="777" src="https://theeventhorizons.com/wp-content/uploads/2023/11/Linear-Regression-Line-1024x777.png" class="attachment-large size-large wp-image-5291" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/Linear-Regression-Line-1024x777.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/Linear-Regression-Line-300x228.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/Linear-Regression-Line-768x583.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/Linear-Regression-Line.png 1510w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Linear regression curve on the price of gold as a function of its purity.</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-6a098285" data-id="6a098285" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-359ca862 elementor-widget elementor-widget-text-editor" data-id="359ca862" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p> </p><p> </p><p>The parameters a and b of the blue line are respectively equal to 493.56 and 886.18. For the gradient descent, he used a learning rate of 0.2 and performed about twenty iterations of the algorithm.</p><p>It can be easily observed that by choosing a gold alloy with a purity of 0.6, its estimated price would be around 1200 bolts.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1fd39998 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1fd39998" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-26a58d19" data-id="26a58d19" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-325643d0 elementor-widget elementor-widget-spacer" data-id="325643d0" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-692cbbf3 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="692cbbf3" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-704b6c42" data-id="704b6c42" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2533dce2 elementor-widget elementor-widget-heading" data-id="2533dce2" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">Knowledge Transfer and Model Performance: Lessons Applicable to All Regressions</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-580981c7 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="580981c7" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d0e14da" data-id="d0e14da" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2959d89 elementor-widget elementor-widget-text-editor" data-id="2959d89" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>All the steps and calculations performed to estimate the price of gold based on its purity through linear regression are fundamentally similar to those carried out for nonlinear regression or other types of machine learning models!</p><p>Wall-E, the little robot passionate about estimating the price of gold, follows a well-defined sequence to train its model, minimize error, and adjust parameters to predict the price of gold based on its purity. The process involves transforming data into matrices, creating the model, defining the cost function to evaluate errors, minimizing this function by iteratively adjusting parameters, and finally obtaining the optimal parameter to accurately estimate the price of gold.</p><p>This process is flexible and can be applied to different situations and types of learning models, thus adapting to more complex problems requiring more sophisticated models. Wall-E&#8217;s success in estimating the price of gold demonstrates the power and efficiency of these methods, paving the way for broader and more diverse applications of machine learning in various contexts.</p><p>But there is still one last thing to consider: The Coefficient of Determination, also known as \(R^2\). It plays a crucial role in evaluating Wall-E&#8217;s model performance as it measures how well the model fits the data compared to the variations in it. In mathematical terms, it is written as follows:</p><p>\begin{equation}R^2 = 1 &#8211; \frac{\sum_{k=1}^{n} \left(y^{(k)}- f(x^{(k)})\right)^2}{\sum_{k=1}^{n} (y^{(k)}- \bar{y})^2}\end{equation}</p><p>where \(\bar{y}\) is nothing but the average of our sample values (in our case, it is simply the mean price). Despite its seemingly complex appearance, it conceals a simple fraction to understand. By rewriting it in a more digestible form, we<span style="color: var( --e-global-color-text ); font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400;"> have,</span></p><p><span style="color: var( --e-global-color-text ); font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400;">\begin{equation}R^2 = 1 &#8211; \frac{Errors}{Variance}.\end{equation}</span></p><p>Remember (see the article &#8220;<a href="https://theeventhorizons.com/defeat-the-game-master/">Beating the Game Master</a>&#8220;) that variance is a measure of the dispersion of sample values.</p><p>So, for Wall-E, getting an \(R^2\)<span style="font-size: 15px; color: var( --e-global-color-text );"> close to 1 would be ideal, implying that the right fraction is close to 0. This means that errors are largely negligible compared to how the data disperses, and the model proposed by Wall-E fits well with the sample values.</span></p><p>On the contrary, if \(R^2\) is close to 0, it would indicate that the model does not explain the data variability well, and predictions may be less reliable because errors are of the same order of magnitude as the variance.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3fc636b8 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3fc636b8" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-7adeea71" data-id="7adeea71" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-f88d5fd elementor-widget elementor-widget-text-editor" data-id="f88d5fd" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>With all these explanations, Wall-E embarked on calculating the coefficient of determination \(R^2\) to assess the quality of his previous model. </p><p>The result is quite gratifying, with a commendable score of 0.93. In other words, the model fits remarkably well with the data, covering approximately 93% of the observed variability. </p><p>This performance confirms the effectiveness of his approach in estimating the price of gold based on its purity!</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-38bde9db" data-id="38bde9db" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3ebcf7ad elementor-widget elementor-widget-image" data-id="3ebcf7ad" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="474" src="https://theeventhorizons.com/wp-content/uploads/2023/08/calculatrice-1024x474.png" class="attachment-large size-large wp-image-2092" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/08/calculatrice-1024x474.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/08/calculatrice-300x139.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/08/calculatrice-768x355.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/08/calculatrice.png 1284w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-fe7f1db elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="fe7f1db" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-38841356" data-id="38841356" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-716fea64 elementor-widget elementor-widget-text-editor" data-id="716fea64" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>However, Wall-E, as an tireless perfectionist, is not content with already achieved success. He is constantly seeking ways to improve his model.</p><p>Thus, he decides to transcend the initial linear model by opting for a polynomial approach (of degree 2). He modifies the reference function to \(f(x) = ax^2 + bx + c\) and meticulously repeats all the steps of the algorithm, leaving nothing to chance. Here are the results he obtained.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5f800f2c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5f800f2c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-7aa7f9e9" data-id="7aa7f9e9" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-385c6732 elementor-widget elementor-widget-image" data-id="385c6732" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="756" src="https://theeventhorizons.com/wp-content/uploads/2023/11/polynomial-1024x756.png" class="attachment-large size-large wp-image-5349" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/11/polynomial-1024x756.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/11/polynomial-300x222.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/11/polynomial-768x567.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/11/polynomial.png 1262w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Polynomial regression curve of degree 2 on the price of gold as a function of its purity.</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-2446293e" data-id="2446293e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-a9e70a9 elementor-widget elementor-widget-text-editor" data-id="a9e70a9" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p> </p><p> </p><p>The curve fits the data really well, and for good reason. With parameters values of 273.84, 404.43, and 837.08, he achieves an outstanding coefficient of determination of 97%!</p><p>Observe here that a gold sample with a purity of 0.6 would be worth around 1160 bolts.</p><p>In contemplating this success, one cannot help but eagerly anticipate Wall-E&#8217;s future explorations in the complex world of modeling and machine learning.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-40cce117 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="40cce117" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-610f815a" data-id="610f815a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4211215f elementor-widget elementor-widget-spacer" data-id="4211215f" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-79556753 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="79556753" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-31ca948b" data-id="31ca948b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-f5f31f1 elementor-widget elementor-widget-heading" data-id="f5f31f1" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">Successful Exploration of the Intricacies of Regression: Next Step, the Fascinating World of Classification</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3cf1d5f1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3cf1d5f1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4e83863a" data-id="4e83863a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3b805da8 elementor-widget elementor-widget-text-editor" data-id="3b805da8" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>In this captivating exploration of regression problems, we delved into the fascinating universe of mathematical modeling, with Wall-E as our intrepid guide. From gradient descents to learning curves, and through the definition of errors, we demystified key aspects of regression, unveiling the underlying magic of Machine Learning.</p><p>As we let Wall-E rest his circuits after his regression exploits, get ready to embark on a new adventure in our upcoming article. We&#8217;ll delve into the mysteries of classification problems, exploring how models can learn to categorize and make decisions in a world of complex data. Stay tuned for an even deeper dive into the dynamic universe of machine learning with Wall-E as your faithful travel companion!</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-10a9d3da elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="10a9d3da" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3dbbdbe6" data-id="3dbbdbe6" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1e083947 elementor-widget elementor-widget-spacer" data-id="1e083947" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-497609ab elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="497609ab" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3cb64c2f" data-id="3cb64c2f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-10f6db53 elementor-widget elementor-widget-heading" data-id="10f6db53" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">Bibliography</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-7ea86d2b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="7ea86d2b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6e8e0972" data-id="6e8e0972" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5ab7f96e elementor-widget elementor-widget-text-editor" data-id="5ab7f96e" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>G. James, D. Witten, T. Hastie et R. Tibshirani, An Introduction to Statistical Learning, Springer Verlag, coll. « Springer Texts in Statistics », 2013</p>
<p>D. MacKay, Information Theory, Inference, and Learning Algorithms, Cambridge University Press, 2003</p>
<p>T. Mitchell, Machine Learning, 1997</p>
<p>F. Galton,  Kinship and Correlation (reprinted 1989), Statistical Science, Institute of Mathematical Statistics, vol. 4, no 2,‎ 1989, p. 80–86</p>
<p>C. Bishop, Pattern Recognition And Machine Learning, Springer, 2006</p>
<p>G. Saint-Cirgue, Machine Learnia, Youtube Channel</p>
<p><span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: var( --e-global-color-text );">D.V. </span>Lindley,  Regression and correlation analysis, <span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: var( --e-global-color-text );">1987</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-788cfacd elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="788cfacd" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-34b35709" data-id="34b35709" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap">
							</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5f06f5 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5f06f5" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3559d070" data-id="3559d070" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4b7923d8 elementor-widget elementor-widget-spacer" data-id="4b7923d8" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3a05e773 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3a05e773" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7e7ddd2f" data-id="7e7ddd2f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2f60ae8e elementor-view-default elementor-position-block-start elementor-mobile-position-block-start elementor-widget elementor-widget-icon-box" data-id="2f60ae8e" data-element_type="widget" data-e-type="widget" data-widget_type="icon-box.default">
				<div class="elementor-widget-container">
							<div class="elementor-icon-box-wrapper">

						<div class="elementor-icon-box-icon">
				<span  class="elementor-icon">
				<i aria-hidden="true" class="fab fa-python"></i>				</span>
			</div>
			
			
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2814ec12 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2814ec12" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3baa71ce" data-id="3baa71ce" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-352082ee elementor-widget elementor-widget-toggle" data-id="352082ee" data-element_type="widget" data-e-type="widget" data-widget_type="toggle.default">
				<div class="elementor-widget-container">
							<div class="elementor-toggle">
							<div class="elementor-toggle-item">
					<div id="elementor-tab-title-8911" class="elementor-tab-title" data-tab="1" role="button" aria-controls="elementor-tab-content-8911" aria-expanded="false">
												<span class="elementor-toggle-icon elementor-toggle-icon-left" aria-hidden="true">
															<span class="elementor-toggle-icon-closed"><i class="fas fa-caret-right"></i></span>
								<span class="elementor-toggle-icon-opened"><i class="elementor-toggle-icon-opened fas fa-caret-up"></i></span>
													</span>
												<a class="elementor-toggle-title" tabindex="0">Non-Optimal Linear Regression</a>
					</div>

					<div id="elementor-tab-content-8911" class="elementor-tab-content elementor-clearfix" data-tab="1" role="region" aria-labelledby="elementor-tab-title-8911">
<pre class="wp-block-code has-black-background-color has-background"><code class="language-python line-numbers" lang="python">
import numpy as np
import matplotlib.pyplot as plt
from sklearn.linear_model import LinearRegression

# Parameters of the quadratic function
a = 400
b = 200
c = 900

# Generate 150 points between -100 and 100
np.random.seed(42)

X = np.random.uniform(0, 1, 150)

# Create Y values based on the quadratic function with Gaussian noise

Y = a * X**2 + b * X + c + np.random.normal(0, 15, 150)

# Reshape the data for modeling
X = X.reshape(-1, 1)
Y = Y.reshape(-1, 1)

# Perform linear regression
model = LinearRegression()
model.fit(X, Y)

# Display the data
plt.figure(figsize=(8, 6))
plt.scatter(X, Y, color='red',label='Data Points')
plt.plot(X, 500 * X +  c, color='blue', linewidth=2, label='Linear Regression Line')
#plt.plot(X, model.predict(X), color='blue', linewidth=2, label='Linear Regression Line')
plt.title('Linear Regression on Gold Price based on Purity')
plt.xlabel('Gold Purity')
plt.ylabel('Gold Price')
plt.legend()
plt.grid(ls='--')
plt.show()





</code></pre>
</div>
				</div>
							<div class="elementor-toggle-item">
					<div id="elementor-tab-title-8912" class="elementor-tab-title" data-tab="2" role="button" aria-controls="elementor-tab-content-8912" aria-expanded="false">
												<span class="elementor-toggle-icon elementor-toggle-icon-left" aria-hidden="true">
															<span class="elementor-toggle-icon-closed"><i class="fas fa-caret-right"></i></span>
								<span class="elementor-toggle-icon-opened"><i class="elementor-toggle-icon-opened fas fa-caret-up"></i></span>
													</span>
												<a class="elementor-toggle-title" tabindex="0">Optimal Linear Regression with Learning Curve</a>
					</div>

					<div id="elementor-tab-content-8912" class="elementor-tab-content elementor-clearfix" data-tab="2" role="region" aria-labelledby="elementor-tab-title-8912">
<pre class="wp-block-code has-black-background-color has-background"><code class="language-python line-numbers" lang="python">
import numpy as np
import matplotlib.pyplot as plt

# Parameters of the quadratic function
a = 400
b = 200
c = 900

# Generate random data
np.random.seed(42)
x = np.random.uniform(0, 1, 150)
y = a * x**2 + b * x + c + np.random.normal(0, 15, 150)
y = y.reshape(y.shape[0], 1)  # Reshaping y to fit the required shape

# Create the feature matrix X
X = np.vstack((x, np.ones(len(x)))).T

# Initialize the theta parameters for the linear model
theta = np.random.randn(2, 1)

# Define the linear model function
def model(X, theta):
    return X.dot(theta)

# Define the cost function
def cost_function(X, y, theta):
    m = len(y)
    return 1 / (2 * m) * np.sum((model(X, theta) - y)**2)

# Define the gradient calculation function
def grad(X, y, theta):
    m = len(y)
    return 1 / m * X.T.dot(model(X, theta) - y)

# Define the gradient descent function
def gradient_descent(X, y, theta, learning_rate, n_iterations):
    cost_history = np.zeros(n_iterations)
    for i in range(n_iterations):
        theta = theta - learning_rate * grad(X, y, theta)
        cost_history[i] = cost_function(X, y, theta)
    return theta, cost_history

# Define the learning rate and number of iterations
learning_rate = 0.2
n_iterations = 20

# Perform gradient descent to optimize the parameters
theta_final, cost_history = gradient_descent(X, y, theta, learning_rate, n_iterations)

# Make predictions with the optimized parameters
predictions = model(X, theta_final)

# Plot the data points and the linear model predictions
plt.scatter(x, y, c='r',label='Data Points')
plt.plot(x, predictions, c='blue',label='Linear Regression Line')
plt.xlabel('Gold Purity')
plt.ylabel('Gold Price')
plt.title('Linear Regression on Gold Price and Gold Purity')
plt.legend()
plt.grid(ls='--')
plt.show()

# Plot the cost history during gradient descent
plt.plot(range(n_iterations), cost_history)
plt.xlabel('Number of Steps')
plt.ylabel('Descent')
plt.title('Descent History during Gradient Descent')
plt.grid(ls='--')
plt.show()

# Calculate the coefficient of determination (R-squared)
def coef_determination(y, pred):
    u = ((y - pred)**2).sum()
    v = ((y - y.mean())**2).sum()
    return 1 - u / v

# Print Final theta

print(theta_final)

# Print the R-squared value
print(coef_determination(y, predictions))

# Display the first 5 samples of the data
print("First 5 samples of the data:")
for i in range(5):
    print(f"Sample {i + 1} - Gold Purity: {x[i]:.4f}, Gold Price: {y[i][0]:.4f}")





</code></pre>
</div>
				</div>
							<div class="elementor-toggle-item">
					<div id="elementor-tab-title-8913" class="elementor-tab-title" data-tab="3" role="button" aria-controls="elementor-tab-content-8913" aria-expanded="false">
												<span class="elementor-toggle-icon elementor-toggle-icon-left" aria-hidden="true">
															<span class="elementor-toggle-icon-closed"><i class="fas fa-caret-right"></i></span>
								<span class="elementor-toggle-icon-opened"><i class="elementor-toggle-icon-opened fas fa-caret-up"></i></span>
													</span>
												<a class="elementor-toggle-title" tabindex="0">Polynomial Regression</a>
					</div>

					<div id="elementor-tab-content-8913" class="elementor-tab-content elementor-clearfix" data-tab="3" role="region" aria-labelledby="elementor-tab-title-8913">
<pre class="wp-block-code has-black-background-color has-background"><code class="language-python line-numbers" lang="python">
import numpy as np
import matplotlib.pyplot as plt

# Parameters of the quadratic function
a = 400
b = 200
c = 900

# Generate random data
np.random.seed(42)
x = np.random.uniform(0, 1, 150)
y = a * x**2 + b * x + c + np.random.normal(0, 15, 150)
y = y.reshape(y.shape[0], 1)  # Reshaping y to fit the required shape

# Create the feature matrix X

X = np.vstack((x**2,x, np.ones(len(x)))).T


print(X.shape)

# Initialize the theta parameters for the linear model
theta = np.random.randn(3, 1)

# Define the polynomial model function
def model(X, theta):
    return X.dot(theta)

# Define the cost function
def cost_function(X, y, theta):
    m = len(y)
    return 1 / (2 * m) * np.sum((model(X, theta) - y)**2)

# Define the gradient calculation function
def grad(X, y, theta):
    m = len(y)
    return 1 / m * X.T.dot(model(X, theta) - y)

# Define the gradient descent function
def gradient_descent(X, y, theta, learning_rate, n_iterations):
    cost_history = np.zeros(n_iterations)
    for i in range(n_iterations):
        theta = theta - learning_rate * grad(X, y, theta)
        cost_history[i] = cost_function(X, y, theta)
    return theta, cost_history

# Define the learning rate and number of iterations
learning_rate = 0.2
n_iterations = 20

# Perform gradient descent to optimize the parameters
theta_final, cost_history = gradient_descent(X, y, theta, learning_rate, n_iterations)

# Make predictions with the optimized parameters
predictions = model(X, theta_final)


# Plot the data points and the polynomial regression predictions
plt.scatter(x, y, c='r', label='Data Points')
plt.plot(x, predictions, c='blue', label='Polynomial Regression Line')
plt.xlabel('Gold Purity')
plt.ylabel('Gold Price')
plt.title('Polynomial Regression on Gold Price and Gold Purity')
plt.legend()
plt.grid(ls='--')
plt.show()

# Plot the cost history during gradient descent
plt.plot(range(n_iterations), cost_history)
plt.xlabel('Number of Steps')
plt.ylabel('Descent')
plt.title('Descent History during Gradient Descent')
plt.grid(ls='--')
plt.show()


# Calculate the coefficient of determination (R-squared)
def coef_determination(y, pred):
    u = ((y - pred)**2).sum()
    v = ((y - y.mean())**2).sum()
    return 1 - u / v

# Print Final theta
print(theta_final)

# Print the R-squared value
print(coef_determination(y, predictions))





</code></pre>
</div>
				</div>
								</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-553c792 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="553c792" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-39a2d2e" data-id="39a2d2e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<section class="elementor-section elementor-inner-section elementor-element elementor-element-a547b91 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="a547b91" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-c05d3ce" data-id="c05d3ce" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap">
							</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-992b775" data-id="992b775" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap">
							</div>
		</div>
					</div>
		</section>
					</div>
		</div>
					</div>
		</section>
				</div>
		<p>The article <a href="https://theeventhorizons.com/wall-e-the-little-gold-miner/">Wall-E: The Little Gold Miner</a> first appeared on <a href="https://theeventhorizons.com">The Event Horizons</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theeventhorizons.com/wall-e-the-little-gold-miner/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Defeat the Game Master</title>
		<link>https://theeventhorizons.com/defeat-the-game-master/</link>
					<comments>https://theeventhorizons.com/defeat-the-game-master/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 02 Oct 2023 19:03:17 +0000</pubDate>
				<category><![CDATA[Probabilities/Statistics]]></category>
		<guid isPermaLink="false">https://theeventhorizons.com/?p=4852</guid>

					<description><![CDATA[<p>In the heart of a mysterious tavern, a diverse group gathers for an evening of dice and camaraderie. What appears to be a simple game night transforms into an exploration of the laws of probability, leading our adventurers on a captivating mathematical journey.</p>
<p>The article <a href="https://theeventhorizons.com/defeat-the-game-master/">Defeat the Game Master</a> first appeared on <a href="https://theeventhorizons.com">The Event Horizons</a>.</p>
]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="4852" class="elementor elementor-4852">
						<section class="elementor-section elementor-top-section elementor-element elementor-element-3671269c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3671269c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-90bdf75" data-id="90bdf75" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-64abb933 elementor-align-center elementor-widget elementor-widget-button" data-id="64abb933" data-element_type="widget" data-e-type="widget" data-widget_type="button.default">
				<div class="elementor-widget-container">
									<div class="elementor-button-wrapper">
					<a class="elementor-button elementor-button-link elementor-size-sm" href="">
						<span class="elementor-button-content-wrapper">
									<span class="elementor-button-text">	Probabilities/Statistics</span>
					</span>
					</a>
				</div>
								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1df45480 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1df45480" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7b6bfe55" data-id="7b6bfe55" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-327aa631 elementor-widget elementor-widget-heading" data-id="327aa631" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-xxl">Defeat the Game Master</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3f440df1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3f440df1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4025fb22" data-id="4025fb22" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-29a06d51 elementor-widget elementor-widget-heading" data-id="29a06d51" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">By Jordan Moles on October 2, 2023.</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4456cec elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4456cec" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3013cff5" data-id="3013cff5" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-721d6b51 elementor-widget elementor-widget-image" data-id="721d6b51" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1013" height="893" src="https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_wizard_in_a_Asterix_and_Obelix_cartoon_style_a43849a4-d262-460b-b0a5-7735c5a25395-1.png" class="attachment-large size-large wp-image-3863" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_wizard_in_a_Asterix_and_Obelix_cartoon_style_a43849a4-d262-460b-b0a5-7735c5a25395-1.png 1013w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_wizard_in_a_Asterix_and_Obelix_cartoon_style_a43849a4-d262-460b-b0a5-7735c5a25395-1-300x264.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_wizard_in_a_Asterix_and_Obelix_cartoon_style_a43849a4-d262-460b-b0a5-7735c5a25395-1-768x677.png 768w" sizes="(max-width: 1013px) 100vw, 1013px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2cca438c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2cca438c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-146c0a20" data-id="146c0a20" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-72c63fc0 elementor-widget elementor-widget-text-editor" data-id="72c63fc0" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>In the heart of a dimly lit tavern, lost somewhere in a strange multiverse of Dungeons and Dragons, a group of individuals as diverse as they were noisy gathered. Thunderous laughter echoed through the smoky establishment as dice of all shapes whirled through the air, coming to rest with a satisfying clatter to determine the fate of their owners. Seated on rickety stools around an old, weathered wooden table, our heroes, or at least what one could call them, were gearing up for a well-deserved evening of beer, dice, and camaraderie.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4be9d39e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4be9d39e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-50211e2a" data-id="50211e2a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6e0523c7 elementor-widget elementor-widget-spacer" data-id="6e0523c7" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-9f53c48 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="9f53c48" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-406bbab2" data-id="406bbab2" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6a7f91cb elementor-widget elementor-widget-heading" data-id="6a7f91cb" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">
Let's Make Introductions!</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-653ec707 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="653ec707" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-2537efd4" data-id="2537efd4" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-70d1e7f5 elementor-widget elementor-widget-text-editor" data-id="70d1e7f5" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p> </p><p>At the center of this eclectic gathering, the Ranger stood, self-proclaimed leader of the team.</p><p>His main mission was to maintain peace within the group, especially between the Elf and the Dwarf, two individuals known for their disagreements.</p><p>However, despite his efforts, he was often overwhelmed by despair, especially when things went awry. The Ranger wasn&#8217;t specialized in any particular skill but rather versatile.</p><p>He had the unfortunate habit of overestimating his abilities and attempting to use talents he didn&#8217;t quite master.</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-2648fb26" data-id="2648fb26" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-375c9f8c elementor-widget elementor-widget-image" data-id="375c9f8c" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="1024" src="https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_Ranger_Aragorn_from_lord_of_the_ring_thinking_in_As_999c9ac3-60dc-4ceb-9f0e-df12b4744fbb.png" class="attachment-large size-large wp-image-3752" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_Ranger_Aragorn_from_lord_of_the_ring_thinking_in_As_999c9ac3-60dc-4ceb-9f0e-df12b4744fbb.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_Ranger_Aragorn_from_lord_of_the_ring_thinking_in_As_999c9ac3-60dc-4ceb-9f0e-df12b4744fbb-300x300.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_Ranger_Aragorn_from_lord_of_the_ring_thinking_in_As_999c9ac3-60dc-4ceb-9f0e-df12b4744fbb-150x150.png 150w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_Ranger_Aragorn_from_lord_of_the_ring_thinking_in_As_999c9ac3-60dc-4ceb-9f0e-df12b4744fbb-768x768.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_Ranger_Aragorn_from_lord_of_the_ring_thinking_in_As_999c9ac3-60dc-4ceb-9f0e-df12b4744fbb-600x600.png 600w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2cdd2499 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2cdd2499" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-53020d74" data-id="53020d74" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1c0cd210 elementor-widget elementor-widget-image" data-id="1c0cd210" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="1024" src="https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_conan_the_barbarian_in_viking_mode_with_a_horn_helm_558cc32f-06b2-4c24-8717-6f046aa005c4.png" class="attachment-large size-large wp-image-3742" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_conan_the_barbarian_in_viking_mode_with_a_horn_helm_558cc32f-06b2-4c24-8717-6f046aa005c4.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_conan_the_barbarian_in_viking_mode_with_a_horn_helm_558cc32f-06b2-4c24-8717-6f046aa005c4-300x300.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_conan_the_barbarian_in_viking_mode_with_a_horn_helm_558cc32f-06b2-4c24-8717-6f046aa005c4-150x150.png 150w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_conan_the_barbarian_in_viking_mode_with_a_horn_helm_558cc32f-06b2-4c24-8717-6f046aa005c4-768x768.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_conan_the_barbarian_in_viking_mode_with_a_horn_helm_558cc32f-06b2-4c24-8717-6f046aa005c4-600x600.png 600w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-68b97784" data-id="68b97784" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-490375dc elementor-widget elementor-widget-text-editor" data-id="490375dc" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p> </p><p> </p><p>To his left, the Barbarian held his place.</p><p>He was a colossal figure with bulging muscles, wielding a sword as an extension of his mighty arm. The Barbarian&#8217;s life boiled down to two passions: combat and carousing with the Dwarf.</p><p>He held no fondness for magic, which he saw as a weakness. He was often quick to judge the other group members as weaklings or cowards if they didn&#8217;t share his fervor for melee.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-35a2bcbb elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="35a2bcbb" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-307da8f1" data-id="307da8f1" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2a5110ba elementor-widget elementor-widget-text-editor" data-id="2a5110ba" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p> </p><p> </p><p>On the other side of the table, the Elf lounged with natural grace. With her enchanting beauty, she appeared to be free from all worries. Her carefree and lighthearted demeanor stood in stark contrast to her companions.</p><p>Her behavior was often seen as eccentric, although she seemed unaware of it.</p><p> She maintained a tumultuous relationship with the Dwarf, their mutual antipathy having become legendary among the tavern&#8217;s regulars.</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-6fe5084c" data-id="6fe5084c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5b2caa2c elementor-widget elementor-widget-image" data-id="5b2caa2c" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="1024" src="https://theeventhorizons.com/wp-content/uploads/2023/10/elf-charm.png" class="attachment-large size-large wp-image-3724" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/10/elf-charm.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/10/elf-charm-300x300.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/10/elf-charm-150x150.png 150w, https://theeventhorizons.com/wp-content/uploads/2023/10/elf-charm-768x768.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/10/elf-charm-600x600.png 600w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6a49b842 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6a49b842" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-626aed9d" data-id="626aed9d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6ff64569 elementor-widget elementor-widget-image" data-id="6ff64569" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="1024" src="https://theeventhorizons.com/wp-content/uploads/2023/10/Dwarf.png" class="attachment-large size-large wp-image-3721" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/10/Dwarf.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/10/Dwarf-300x300.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/10/Dwarf-150x150.png 150w, https://theeventhorizons.com/wp-content/uploads/2023/10/Dwarf-768x768.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/10/Dwarf-600x600.png 600w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-4dd07ea8" data-id="4dd07ea8" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6c8be16a elementor-widget elementor-widget-text-editor" data-id="6c8be16a" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p> </p><p>Next to the Barbarian, the Dwarf, a robust and choleric warrior, prepared to enter the arena of the impending game. His primary obsession was money, and he was willing to do anything to fill his purse, even embarking on perilous adventures with companions he couldn&#8217;t stand, especially the Elf, with whom he had an abominable relationship.</p><p>The Dwarf was also an expert in complex calculations, particularly when it came to distributing loot among the group members, taking into account various criteria such as time spent together, the danger of situations, and the experience gained in battles.</p><p>He never missed an opportunity to savor good hams and brandish his small axe, which he wielded with great skill.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1ccc3d12 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1ccc3d12" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-53676495" data-id="53676495" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-28ba3607 elementor-widget elementor-widget-text-editor" data-id="28ba3607" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p> </p><p> </p><p>In the shadows, the Rogue, dressed discreetly, observed the scene. His sharp eyes scanned for the next purse to steal.</p><p>His legendary agility and dexterity made him a master in the art of theft, but it also meant that he couldn&#8217;t resist pilfering small things, even among his companions.</p><p>His dark demeanor and black leather tunic left little trace as he slipped into the shadows. His lock-picking, thieving, and espionage tools were carefully concealed under a discreet belt.</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-39beb3c3" data-id="39beb3c3" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-441833b5 elementor-widget elementor-widget-image" data-id="441833b5" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="1024" src="https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_nice_and_smiling_thief_with_a_black_hood_Asterix_an_9558a036-2159-4ad9-80b0-149bf5ef6a77.png" class="attachment-large size-large wp-image-3760" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_nice_and_smiling_thief_with_a_black_hood_Asterix_an_9558a036-2159-4ad9-80b0-149bf5ef6a77.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_nice_and_smiling_thief_with_a_black_hood_Asterix_an_9558a036-2159-4ad9-80b0-149bf5ef6a77-300x300.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_nice_and_smiling_thief_with_a_black_hood_Asterix_an_9558a036-2159-4ad9-80b0-149bf5ef6a77-150x150.png 150w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_nice_and_smiling_thief_with_a_black_hood_Asterix_an_9558a036-2159-4ad9-80b0-149bf5ef6a77-768x768.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_nice_and_smiling_thief_with_a_black_hood_Asterix_an_9558a036-2159-4ad9-80b0-149bf5ef6a77-600x600.png 600w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-110ecb2f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="110ecb2f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-ff14117" data-id="ff14117" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1ebb4d35 elementor-widget elementor-widget-image" data-id="1ebb4d35" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="1024" src="https://theeventhorizons.com/wp-content/uploads/2023/10/magicienne.png" class="attachment-large size-large wp-image-3726" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/10/magicienne.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/10/magicienne-300x300.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/10/magicienne-150x150.png 150w, https://theeventhorizons.com/wp-content/uploads/2023/10/magicienne-768x768.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/10/magicienne-600x600.png 600w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-2731e18a" data-id="2731e18a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-ffe227 elementor-widget elementor-widget-text-editor" data-id="ffe227" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Next to the Elf, the Magician sat. She was a woman with deep red hair, passionate about all sorts of literature, with a particular fascination for spellbooks.</p><p>Unfortunately, her magical talents were limited, and she didn&#8217;t particularly shine in that area. Despite her lack of magical aptitude, she made up for it with her in-depth knowledge of books.</p><p>In terms of attire, she typically wore a long dark blue robe adorned with silver motifs that resembled sparkling stars. Her outfit was complemented by a matching pointed hat, adding a touch of mystery to her appearance. She also wore a leather belt with pockets for storing small magical items and components for her spells.</p><p>The Magician remained an invaluable source of knowledge for the group and played a central role within the company, effectively sharing leadership with the Ranger.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2af57f5d elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2af57f5d" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-6ccbd55d" data-id="6ccbd55d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-45f7db00 elementor-widget elementor-widget-text-editor" data-id="45f7db00" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p> </p><p> </p><p>Finally, by their side stood the Ogre, an imposing creature. His insatiable appetite manifested in primitive grunts. Although he was of a kind nature, he remained a constant source of trouble, overturning chairs and breaking glasses at regular intervals.</p><p>His actions were primarily dictated by instincts, which made him akin to the Barbarian, with whom he shared a passion for good food. However, he had a special connection with the Magician, the only one capable of understanding his language.</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-43eca2b3" data-id="43eca2b3" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7eccfd2 elementor-widget elementor-widget-image" data-id="7eccfd2" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="1024" src="https://theeventhorizons.com/wp-content/uploads/2023/10/ogre.png" class="attachment-large size-large wp-image-3718" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/10/ogre.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/10/ogre-300x300.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/10/ogre-150x150.png 150w, https://theeventhorizons.com/wp-content/uploads/2023/10/ogre-768x768.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/10/ogre-600x600.png 600w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3154d6fb elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3154d6fb" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c66e3a8" data-id="c66e3a8" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-694170cb elementor-widget elementor-widget-heading" data-id="694170cb" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">The Rules of the Game</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-7a3db87d elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="7a3db87d" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-61f935af" data-id="61f935af" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6e7e671b elementor-widget elementor-widget-text-editor" data-id="6e7e671b" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>After several pints of beer, heated arguments, questionable jokes, and epic anecdotes, the atmosphere in the tavern was at its peak. The loud laughter and off-key singing of the adventurers filled the room, while the overwhelmed waitresses tried to fulfill the ever-increasing orders.</p><p>The Magician, fueled by the festive ambiance, decided that the moment had come to add an extra touch of excitement to the evening. She suddenly pulled out a set of 14 mysterious dice from her bag, 2 each, immediately grabbing the attention of her companions. Curious looks fell upon the dice as conversations gradually quieted.</p><p>With a mischievous smile lighting up her face, she announced in a clear voice, &#8220;My friends, we&#8217;re going to spice up this evening with a dice game! Who&#8217;s ready to try their luck?&#8221;</p><p>The Magician&#8217;s announcement sparked a wave of enthusiasm among the already tipsy adventurers.</p><p>The Dwarf, always eager for opportunities to gain gold but unwilling to wager his own, slammed the table with his calloused hands and exclaimed, &#8220;By the beards of our ancestors, I&#8217;m in!&#8221;</p><p>The Elf, despite her frequent disagreements with the Dwarf, smiled and said, &#8220;Why not? It could be fun.&#8221;</p><p>Even the Ogre, whose limited facial expression didn&#8217;t reveal much, emitted a consenting grunt.</p><p>The Ranger, followed by the Barbarian and the Rogue, quickly went to fetch some supplies, a cheese board, and some country ham before attentively listening to the rules of the game.</p><p>The Magician, delighted to see that her idea had been so well-received, rummaged through her bag and pulled out a large parchment. It contained the fundamental laws that had to be read before playing. They were written in a peculiar manner, resembling runes that only the Magician could decipher, but here is the note magically transcribed into our language:</p><p>Dear mortal, beware, for I shall initiate you into the profound mysteries that govern these sacred dice. They are subject to enigmatic laws that you must understand before unleashing them on the table. Follow my words carefully, and you shall discover the hidden power behind each roll. Here is the most important one, the one that defines them all.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3e1f8aa6 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3e1f8aa6" data-element_type="section" data-e-type="section" data-settings="{&quot;background_background&quot;:&quot;classic&quot;}">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7cdcbfd0" data-id="7cdcbfd0" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-665ddc41 elementor-widget elementor-widget-text-editor" data-id="665ddc41" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Let (<span style="font-size: 28px;">\(\Omega\), A) be a measurable space, where \(\Omega\) is the universe and A is a sigma-algebra. A probability measure is a measure with a total mass of 1, and it satisfies the following three axioms:</span></p><p>• For any set E in A, the probability \(\mathbb{P}\)<span style="font-family: Gwendolyn, sans-serif; font-size: 28px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 800;">(E)</span><span style="font-size: 28px;"> is a real number between 0 and 1.</span></p><p>• The probability of the universe \(\Omega\) is equal to 1, meaning \(\mathbb{P}(\Omega) = 1\).</p><p><span style="font-family: Gwendolyn, sans-serif; font-size: 28px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400;">•</span> Probability is \(\sigma\)-additive, which means that for any finite or countable family of pairwise disjoint sets \((E_i, i \in I)\) in A, the probability of their union is equal to the sum of the individual probabilities:</p><p>\begin{equation*}\mathbb{P}\left(\bigcup_{i\in I} E_i\right) = \sum_{i\in I} \mathbb{P}(E_i)\end{equation*}</p><p>In particular, the probability of the empty set (\(\emptyset\)) s equal to 0, i.e., \(\mathbb{P}(\emptyset) = 0\).</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-46ca57a2 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="46ca57a2" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-685b01e9" data-id="685b01e9" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-329cf1fb elementor-widget elementor-widget-text-editor" data-id="329cf1fb" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The Elf, the Barbarian, and the Ranger scratch their heads in confusion, while the Dwarf, always attentive to the prospect of winning gold, silently nods. The Magician, seeing that her explanations haven&#8217;t been understood by everyone, decides to simplify further.</p><p>She takes a small piece of paper from her pocket and begins to explain more concisely: &#8220;Alright, let&#8217;s forget about the complicated terms. The universe is simply all possible outcomes. For example, when we roll a die, the possible outcomes are 1, 2, 3, 4, 5, and 6. That&#8217;s the universe, which we denote as \(\Omega=\{1, 2, 3, 4, 5, 6\}\).</p><p>Then, a sigma-algebra is the set of all subsets of the universe, meaning all possible groups of results we can obtain. For example, a subset could be the set of even numbers, which is \(\{2, 4, 6\}\).</p><p>Do you follow so far?</p><p>Let&#8217;s move on to the axioms. The first one is simple: it just says that the probability of an event is always between 0 and 1. In other words, this means that the probability of getting a result is always either zero (impossible) or one (certain).</p><p>The second axiom is even simpler. It says that the total probability of all possible outcomes is always 1. So if we add up the probability of getting each number on our die, it must always equal 1.</p><p>The third axiom, a bit more complex, means that if we have two events that cannot happen at the same time (disjoint), then the probability of either one happening is simply the sum of the probabilities of each. For example, the probability of getting a 1 or a 6 when rolling a fair die is the sum of the probability of getting a 1 and the probability of getting a 6.</p><p>I hope this clarifies things a bit!&#8221;</p><p>The Magician, aware that her companions are starting to get impatient with the technical terms, decides to simplify the explanations further to make the concepts more accessible.</p><p>She continues her narrative: &#8220;Now, let&#8217;s forget about the complex terms for a moment. The laws of probability can be described in three major categories of characteristics, as indicated on this parchment:&#8221;</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5b2e74b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5b2e74b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5e11b7e7" data-id="5e11b7e7" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-52d0d8b3 elementor-widget elementor-widget-text-editor" data-id="52d0d8b3" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>•«There are position parameters that influence the central tendency of the probability distribution. They determine the values around which the probability is most concentrated, which means where most of the results cluster. Among these parameters, we have the expectation, which is a measure of the average, the median, which is the central value, and the mode, which is the most frequent value.&#8221;</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-35d0a30e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="35d0a30e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-3a96982a" data-id="3a96982a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-a837fdb elementor-widget elementor-widget-image" data-id="a837fdb" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="752" src="https://theeventhorizons.com/wp-content/uploads/2023/10/mean-1024x752.png" class="attachment-large size-large wp-image-3379" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/10/mean-1024x752.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/10/mean-300x220.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/10/mean-768x564.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/10/mean.png 1206w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text"></figcaption>
										</figure>
									</div>
				</div>
				<div class="elementor-element elementor-element-52780c74 elementor-widget elementor-widget-text-editor" data-id="52780c74" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Normal distribution with a mean of 5 and a variance of 10.</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-7f4fc4d0" data-id="7f4fc4d0" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-f51fd23 elementor-widget elementor-widget-image" data-id="f51fd23" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="1024" src="https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_Ranger_Aragorn_from_lord_of_the_ring_talking_in_Ast_237a327c-84cf-4d89-b167-13b3d0a106ca-copie.png" class="attachment-large size-large wp-image-3835" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_Ranger_Aragorn_from_lord_of_the_ring_talking_in_Ast_237a327c-84cf-4d89-b167-13b3d0a106ca-copie.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_Ranger_Aragorn_from_lord_of_the_ring_talking_in_Ast_237a327c-84cf-4d89-b167-13b3d0a106ca-copie-300x300.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_Ranger_Aragorn_from_lord_of_the_ring_talking_in_Ast_237a327c-84cf-4d89-b167-13b3d0a106ca-copie-150x150.png 150w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_Ranger_Aragorn_from_lord_of_the_ring_talking_in_Ast_237a327c-84cf-4d89-b167-13b3d0a106ca-copie-768x768.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_Ranger_Aragorn_from_lord_of_the_ring_talking_in_Ast_237a327c-84cf-4d89-b167-13b3d0a106ca-copie-600x600.png 600w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-69f349a9 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="69f349a9" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5d5abd2a" data-id="5d5abd2a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3907dd24 elementor-widget elementor-widget-text-editor" data-id="3907dd24" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="font-size: 15px; color: var( --e-global-color-text );">• &#8220;</span>Then there are scale parameters, which measure how spread out or tight values are around those central values. Variance, standard deviation, and interquartile range are examples of these parameters. We often focus on variance, which works like this:</p><p>If it&#8217;s close to zero, it suggests that individual values are similar and cluster closely around the mean.</p><p>Conversely, high variance indicates that individual values are farther from the mean, with a greater overall spread.&#8221;</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-17141584 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="17141584" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-27063585" data-id="27063585" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-59ab23f0 elementor-widget elementor-widget-image" data-id="59ab23f0" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="1024" src="https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_Ranger_Aragorn_from_lord_of_the_ring_thinking_in_As_690cdcca-476c-4823-be84-ef2b8adaa78e.png" class="attachment-large size-large wp-image-3802" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_Ranger_Aragorn_from_lord_of_the_ring_thinking_in_As_690cdcca-476c-4823-be84-ef2b8adaa78e.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_Ranger_Aragorn_from_lord_of_the_ring_thinking_in_As_690cdcca-476c-4823-be84-ef2b8adaa78e-300x300.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_Ranger_Aragorn_from_lord_of_the_ring_thinking_in_As_690cdcca-476c-4823-be84-ef2b8adaa78e-150x150.png 150w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_Ranger_Aragorn_from_lord_of_the_ring_thinking_in_As_690cdcca-476c-4823-be84-ef2b8adaa78e-768x768.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_Ranger_Aragorn_from_lord_of_the_ring_thinking_in_As_690cdcca-476c-4823-be84-ef2b8adaa78e-600x600.png 600w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-79524d06" data-id="79524d06" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-32ee99f1 elementor-widget elementor-widget-image" data-id="32ee99f1" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="749" src="https://theeventhorizons.com/wp-content/uploads/2023/10/normal-1024x749.png" class="attachment-large size-large wp-image-3377" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/10/normal-1024x749.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/10/normal-300x219.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/10/normal-768x562.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/10/normal.png 1206w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
				<div class="elementor-element elementor-element-a8177a7 elementor-widget elementor-widget-text-editor" data-id="a8177a7" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Two normal distribution laws with a mean equal to 5 and a variance equal to 2, and the other one with a mean equal to 20.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-aef9639 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="aef9639" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3a1b00c9" data-id="3a1b00c9" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-42eeb6f3 elementor-widget elementor-widget-text-editor" data-id="42eeb6f3" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400;">• &#8220;</span>Finally, we have the shape parameters. They describe how probabilities change as we move away from the central values.</p><p>For example, skewness measures if the distribution is tilted to one side or the other, and kurtosis, or the coefficient of kurtosis, examines how closely values are concentrated near the mean.<span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px;">&#8220;</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-74da8c5e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="74da8c5e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-116ba8c9" data-id="116ba8c9" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-46e34345 elementor-widget elementor-widget-image" data-id="46e34345" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="759" src="https://theeventhorizons.com/wp-content/uploads/2023/10/normalasym-1024x759.png" class="attachment-large size-large wp-image-3376" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/10/normalasym-1024x759.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/10/normalasym-300x222.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/10/normalasym-768x569.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/10/normalasym.png 1228w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
				<div class="elementor-element elementor-element-3dbeb686 elementor-widget elementor-widget-text-editor" data-id="3dbeb686" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Normal distribution with zero skewness and a normal distribution with skewness equal to 10.</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-7c302868" data-id="7c302868" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-47c4946b elementor-widget elementor-widget-image" data-id="47c4946b" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="1024" src="https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_Ranger_Aragorn_from_lord_of_the_ring_thinking_in_As_94509d91-cb37-435d-be74-6a29eaae0e3b.png" class="attachment-large size-large wp-image-3804" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_Ranger_Aragorn_from_lord_of_the_ring_thinking_in_As_94509d91-cb37-435d-be74-6a29eaae0e3b.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_Ranger_Aragorn_from_lord_of_the_ring_thinking_in_As_94509d91-cb37-435d-be74-6a29eaae0e3b-300x300.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_Ranger_Aragorn_from_lord_of_the_ring_thinking_in_As_94509d91-cb37-435d-be74-6a29eaae0e3b-150x150.png 150w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_Ranger_Aragorn_from_lord_of_the_ring_thinking_in_As_94509d91-cb37-435d-be74-6a29eaae0e3b-768x768.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_Ranger_Aragorn_from_lord_of_the_ring_thinking_in_As_94509d91-cb37-435d-be74-6a29eaae0e3b-600x600.png 600w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1301897b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1301897b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-132cbd8c" data-id="132cbd8c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4ba8425e elementor-widget elementor-widget-spacer" data-id="4ba8425e" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-62df6a48 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="62df6a48" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-14f8a6e4" data-id="14f8a6e4" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2f547d7a elementor-widget elementor-widget-heading" data-id="2f547d7a" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">The Law of the Die</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5c20e7df elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5c20e7df" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3018dca0" data-id="3018dca0" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-741bc958 elementor-widget elementor-widget-text-editor" data-id="741bc958" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The Magician paused before concluding: &#8220;Now that we&#8217;ve gone over these concepts, let&#8217;s dive into the heart of the matter that seems to interest you: the discrete uniform probability distribution.&#8221;</p>
<p>The Elf: (whispering to the Barbarian) Oh, it&#8217;s about time; it&#8217;s almost bedtime.</p>
<p>The Barbarian: (chuckling) Yeah, I hope this magisterial lecture ends before midnight.</p>
<p>The Ranger: (smiling) Maybe we should prepare some blankets for our tired comrades.</p>
<p>The Magician, looking at them with an amused expression, decides to continue despite her companions&#8217; teasing remarks.</p>
<p>The Magician: The discrete uniform distribution is perhaps the most important probability distribution you need to understand here. It ensures equiprobability, meaning that each outcome has an equal probability for each mode in a finite set of possible modes.</p>
<p>The Dwarf loses patience with all the jargon and snatches the parchment from the Magician&#8217;s hands.</p>
<p><span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: var( --e-global-color-text );">The Dwarf</span>: (furrowing his brows) Hold on&#8230; does this old parchment say I should give you a gold piece? I&#8217;m not sure why I should do that.</p>
<p>The Barbarian: (laughing) Haha! The parchment predicts the future! Come on, Dwarf, give her the coin!</p>
<p>The Dwarf refuses to give up his coin, but the impatient Barbarian punches him in the head.</p>
<p>The Barbarian: (laughing) Come on, Dwarf, do it for education! It only costs a coin.</p>
<p>The Ogre: (banging the table and laughing heartily), Zog zog.</p>
<p>The Elf: Well done.</p>
<p>The Dwarf, slightly dazed from the blow, reluctantly hands over a gold piece to the Magician along with the parchment.</p>
<p>The Magician: Perfect, thanks for your contribution. So, to better understand, imagine a fair coin. When you toss it, each side has an equal chance of appearing, which is 1/2.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3b907a8a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3b907a8a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-bde70b2" data-id="bde70b2" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7122a68c elementor-widget elementor-widget-image" data-id="7122a68c" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="774" src="https://theeventhorizons.com/wp-content/uploads/2023/10/coin-1024x774.png" class="attachment-large size-large wp-image-3372" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/10/coin-1024x774.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/10/coin-300x227.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/10/coin-768x581.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/10/coin.png 1188w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text"></figcaption>
										</figure>
									</div>
				</div>
				<div class="elementor-element elementor-element-d208c6e elementor-widget elementor-widget-text-editor" data-id="d208c6e" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Discrete uniform distribution with two outcomes (Coin toss).</p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-1ffd768b" data-id="1ffd768b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5d816df2 elementor-widget elementor-widget-image" data-id="5d816df2" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="1024" src="https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_older_red_hair_female_magician_with_a_violet_dress__dda2177a-da24-420e-83be-e280477d40f5.png" class="attachment-large size-large wp-image-3750" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_older_red_hair_female_magician_with_a_violet_dress__dda2177a-da24-420e-83be-e280477d40f5.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_older_red_hair_female_magician_with_a_violet_dress__dda2177a-da24-420e-83be-e280477d40f5-300x300.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_older_red_hair_female_magician_with_a_violet_dress__dda2177a-da24-420e-83be-e280477d40f5-150x150.png 150w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_older_red_hair_female_magician_with_a_violet_dress__dda2177a-da24-420e-83be-e280477d40f5-768x768.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_older_red_hair_female_magician_with_a_violet_dress__dda2177a-da24-420e-83be-e280477d40f5-600x600.png 600w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-785fe928 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="785fe928" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-20b725ff" data-id="20b725ff" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-50416309 elementor-widget elementor-widget-text-editor" data-id="50416309" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>For my dice, it&#8217;s the same thing. A standard die has 6 faces, which corresponds to 6 modes, and if it&#8217;s balanced, we say they are all equiprobable.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-d321d9b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="d321d9b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-56ba228c" data-id="56ba228c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6acc5492 elementor-widget elementor-widget-image" data-id="6acc5492" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="1024" src="https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_older_red_hair_female_magician_with_a_violet_dress__dda2177a-da24-420e-83be-e280477d40f5-copie.png" class="attachment-large size-large wp-image-3838" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_older_red_hair_female_magician_with_a_violet_dress__dda2177a-da24-420e-83be-e280477d40f5-copie.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_older_red_hair_female_magician_with_a_violet_dress__dda2177a-da24-420e-83be-e280477d40f5-copie-300x300.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_older_red_hair_female_magician_with_a_violet_dress__dda2177a-da24-420e-83be-e280477d40f5-copie-150x150.png 150w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_older_red_hair_female_magician_with_a_violet_dress__dda2177a-da24-420e-83be-e280477d40f5-copie-768x768.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/10/molesjordan_older_red_hair_female_magician_with_a_violet_dress__dda2177a-da24-420e-83be-e280477d40f5-copie-600x600.png 600w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-f443d12" data-id="f443d12" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-43625dc8 elementor-widget elementor-widget-image" data-id="43625dc8" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="787" src="https://theeventhorizons.com/wp-content/uploads/2023/10/dice-1024x787.png" class="attachment-large size-large wp-image-3837" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/10/dice-1024x787.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/10/dice-300x231.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/10/dice-768x590.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/10/dice.png 1200w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
				<div class="elementor-element elementor-element-e425401 elementor-widget elementor-widget-text-editor" data-id="e425401" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Discrete uniform distribution with six outcomes (Roll of a die).</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-35a64d85 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="35a64d85" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-73e6f7e0" data-id="73e6f7e0" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-532e6f16 elementor-widget elementor-widget-text-editor" data-id="532e6f16" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The Thief: (curiously) Show me that coin, I&#8217;d like to examine it closely to better understand the heads or tails.</p>
<p>The Magician: (handing the coin to him) Of course, here&#8217;s the coin. It&#8217;s balanced, so each side has an equal chance of landing.</p>
<p>The Elf: (raising a hand) Wait, what can we say about the die, too?</p>
<p>The Magician: (smiling) Many things. Here are the main characteristics of these dice:</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3f9eced1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3f9eced1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-15605b0e" data-id="15605b0e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5b419a33 elementor-widget elementor-widget-text-editor" data-id="5b419a33" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>We call \(X\) the random variable that follows the discrete uniform distribution (the roll of a die).</p><p><span style="font-size: 15px; color: var( --e-global-color-text );">• The expectation: it&#8217;s like the average, and for a standard die, it&#8217;s</span> \(\mathbb{E}(X)= \frac{6+1}{2}=3,5\)</p><p>• The median: it&#8217;s the middle value, also \(m(X)= \frac{6+1}{2}=3,5\) for a fair die.</p><p>• The mode: there isn&#8217;t one here because each face has the same probability of appearing.</p><p><span style="font-size: 15px; color: var( --e-global-color-text );">• The variance: it measures the spread of results, and for a fair die, it&#8217;s approximately </span><span style="color: var( --e-global-color-text ); font-size: 15px;"> \(V(X)=\frac{6^{2}-1}{12}\approx2.91\)</span></p><p><span style="font-size: 15px; color: var( --e-global-color-text );">•</span> The skewness is zero, and the kurtosis&#8230;</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-63dcbf8a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="63dcbf8a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2a1260d4" data-id="2a1260d4" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-20126251 elementor-widget elementor-widget-text-editor" data-id="20126251" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The Ranger: (interrupting) Excuse me, but isn&#8217;t that enough of the rules? We&#8217;ve got the basics.</p>
<p><span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: var( --e-global-color-text );">The Magician</span>: Well, there are a few more laws in this parchment, the triangular probability distribution, the&#8230;</p>
<p><span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: var( --e-global-color-text );">The Dwarf</span>: (grumpy) By the beards of our ancestors, we didn&#8217;t come here for a math class! We want to roll those dice and play, not listen to endless speeches.</p>
<p>The Barbarian: (slapping the table) He&#8217;s right! This is all well and good, but we want action, not numbers!</p>
<p>The Thief: (examining the coin closely) Yeah, I&#8217;m with them. Can we start playing now?</p>
<p><span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: var( --e-global-color-text );">The Dwarf</span>: Give me back my coin!</p>
<p><span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: var( --e-global-color-text );">The Magician</span>: (trying to keep her calm) Alright, alright, I see you&#8217;re all very impatient. But before rolling the dice, let me just take one last look at this note at the bottom of the page. I want to make sure we&#8217;re following all the rules.</p>
<p><span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: var( --e-global-color-text );">The Magician</span> begins to quickly read the note at the bottom of the page, but suddenly stops.</p>
<p><span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: var( --e-global-color-text );">The Magician</span>: (surprised) Wait, there&#8217;s something important here that I hadn&#8217;t noticed! It says, &#8220;Do not flip the coin before playing with the dice because&#8230;&#8221;</p>
<p>Before she can finish her sentence, the Voleur tosses the gold coin in the air to return it to the Nain. But instead of landing in his hand, the coin starts spinning in the air in a mysterious way, emitting a magical glow.</p>
<p><span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: var( --e-global-color-text );">The Dwarf</span>: (surprised) By the beards of our ancestors, what&#8217;s happening?</p>
<p>The coin continues to spin in the air, faster and faster, and suddenly it disappears completely, leaving everyone puzzled.</p>
<p>The Elf: (astonished) Where did the coin go?</p>
<p><span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: var( --e-global-color-text );">The Magician</span>: (shocked) I&#8230; I don&#8217;t know. It seems like the dice are more mysterious than I thought.</p>
<p><span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: var( --e-global-color-text );">The Barbarian</span>: (excited) Whatever it is, it looks fun! Let us roll the dice now!</p>
<p><span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: var( --e-global-color-text );">The Dwarf</span>: (annoyed) Where is my coin?</p>
<p>It was a night of revelry, heated arguments, and rowdiness in the old tavern. The adventurers had stopped to relax after a long day of exploration, and, as was their custom, they had gotten caught up in the excitement of the evening.</p>
<p><span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: var( --e-global-color-text );">The Dwarf</span>, already in a bad mood, decided that everything was always the fault of the Elf. He had taken the Elf as a scapegoat, attributing all the group&#8217;s woes to her, constantly repeating that &#8220;it was the Elf&#8217;s fault that everything was going wrong.&#8221; This deplorable attitude only worsened as the evening progressed.</p>
<p>While they played dice and bet money, the Voleur decided to spice up the evening by discreetly stealing a waitress&#8217;s panties. It was an act as audacious as it was risky, but he managed to accomplish this feat with remarkable dexterity.</p>
<p>The Barbarian, on the other hand, gave in to his impulsiveness by punching the bouncer at the tavern&#8217;s entrance after a minor argument. The bouncer wasted no time calling for reinforcements, which quickly subdued the<span style="font-family: 'Roboto Serif', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400;"> Barbarian</span> with a good beating. This plunged the group into an even more complicated situation.</p>
<p>The Ogre, always hungry and curious, decided to satisfy his appetite by swallowing a billiard ball. This caused a great deal of laughter among the tavern&#8217;s customers, but also a lot of concern about the Ogre&#8217;s well-being.</p>
<p>Finally, the Nain, completely drunk, ended up vomiting his beer on the innkeeper, triggering a general brawl between the adventurers and the other customers.</p>
<p>The ensuing chaos could only lead to one inevitable conclusion: all the adventurers eventually found themselves in the dungeon, where they would have to face new adventures to escape from this predicament. It was the beginning of an adventure that would take them much further than they could have imagined on that night of debauchery and disorder.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1e298777 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1e298777" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7c962f47" data-id="7c962f47" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1e73158b elementor-widget elementor-widget-spacer" data-id="1e73158b" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-523f6cde elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="523f6cde" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-bff12c8" data-id="bff12c8" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-471ef570 elementor-widget elementor-widget-heading" data-id="471ef570" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">The Dungeon</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-58c6953d elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="58c6953d" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1cb3ca0c" data-id="1cb3ca0c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3085138e elementor-widget elementor-widget-text-editor" data-id="3085138e" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The Ranger, known for his wisdom (or so he claimed), gathered the motley group of adventurers in a dim corner of their filthy cell. The faint flicker of a wavering torch added a picturesque ambiance to their already unsavory situation.</p>
<p>&#8220;Listen to me, comrades,&#8221; the Ranger began with a firm, though somewhat nervous voice. &#8220;We are in a dire situation, but we are not just anybody. We are an elite troupe, and we cannot resign ourselves to being locked up here like common rats in a sewer. What we need is a plan.&#8221;</p>
<p>Upon this, the Elf and the Dwarf started bickering like children, calling each other &#8220;lichen suckers&#8221; and &#8220;rock-eaters.&#8221; The Dwarf, having thicker skin than the Elf (literally), retorted by insulting the elf&#8217;s pointed ears and suggesting that he go back to playing his flute in the forest.</p>
<p>The Barbarian, who seemed incredibly bored, interrupted the quarrel and decided to use his Herculean strength to try and break down the door. Unfortunately, he had taken a severe blow to the head during the arrest and was still groggy from the impact.</p>
<p>The Game Master asked him to make his disadvantage roll, which meant he would roll the die twice and keep the less favorable result. Moreover, the door was made of steel, designed to withstand the efforts of prisoners trying to escape their sentences.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-29592bee elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="29592bee" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6c3d4c0c" data-id="6c3d4c0c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-58f0fce9 elementor-widget elementor-widget-text-editor" data-id="58f0fce9" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Sélect: </p><p>Number of dice = 1</p><p>Type of dice = 6</p><p>Roll the dice twice and choose the smaller result.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-181d1ea8 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="181d1ea8" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-636b32d0" data-id="636b32d0" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-179179be elementor-widget elementor-widget-wp-widget-mh_rpg_dice_roller" data-id="179179be" data-element_type="widget" data-e-type="widget" data-widget_type="wp-widget-mh_rpg_dice_roller.default">
				<div class="elementor-widget-container">
					<div id="mh-rpg-dice-widget-container" class="widget">
	<p>Number of dice<br>
		<input type="number" id="mh-rpg-number-of-dice-widget" value="1" min="1" step="1">
	</p>
	
	<p>Type of die:<br>
		<select id="mh-rpg-die-type-widget">
			<option value="4" selected>4</option>
			<option value="6">6</option>
			<option value="8">8</option>
			<option value="10">10</option>
			<option value="12">12</option>
			<option value="20">20</option>
			<option value="100">100</option>
		</select>
	</p>

	<p>Modifier<br>
		<input type="number" id="mh-rpg-modifier-widget" value="0">
	</p>

	<label for="mh-rpg-display-all-cb-widget">Display all rolls? 
	<input type="checkbox" id="mh-rpg-display-all-cb-widget"></label><br>

	<button type="button" id="mh-rpg-roll-button-widget">Roll</button>
	<p>Result: <span id="mh-rpg-dice-roll-widget"></span> 
	<span id="mh-rpg-all-rolls-widget"></span></p>
</div>
				</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-85a4d79" data-id="85a4d79" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-433b988f elementor-widget elementor-widget-image" data-id="433b988f" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img decoding="async" src="https://theeventhorizons.com/wp-content/uploads/elementor/thumbs/molesjordan_dice_48fcc5ae-8ae6-4daf-b4e3-371456f276cd-qdpvc8b2hf6n1lbjljxkihrpzf0k61xc5tv4m52zjk.png" title="molesjordan_dice_48fcc5ae-8ae6-4daf-b4e3-371456f276cd" alt="molesjordan_dice_48fcc5ae-8ae6-4daf-b4e3-371456f276cd" loading="lazy" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-cd9503f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="cd9503f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-df79f44" data-id="df79f44" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5542a884 elementor-widget elementor-widget-text-editor" data-id="5542a884" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>What result do you get ?</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-48eacb64 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="48eacb64" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-16 elementor-top-column elementor-element elementor-element-6ba35ffc" data-id="6ba35ffc" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-65b3580e elementor-view-default elementor-widget elementor-widget-icon" data-id="65b3580e" data-element_type="widget" data-e-type="widget" data-widget_type="icon.default">
				<div class="elementor-widget-container">
							<div class="elementor-icon-wrapper">
			<a class="elementor-icon" href="https://theeventhorizons.com/01-3/">
			<i aria-hidden="true" class="fas fa-dice-one"></i>			</a>
		</div>
						</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-16 elementor-top-column elementor-element elementor-element-13cac651" data-id="13cac651" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-cd77f55 elementor-view-default elementor-widget elementor-widget-icon" data-id="cd77f55" data-element_type="widget" data-e-type="widget" data-widget_type="icon.default">
				<div class="elementor-widget-container">
							<div class="elementor-icon-wrapper">
			<a class="elementor-icon" href="https://theeventhorizons.com/02-3/">
			<i aria-hidden="true" class="fas fa-dice-two"></i>			</a>
		</div>
						</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-16 elementor-top-column elementor-element elementor-element-153d0a44" data-id="153d0a44" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3f33a644 elementor-view-default elementor-widget elementor-widget-icon" data-id="3f33a644" data-element_type="widget" data-e-type="widget" data-widget_type="icon.default">
				<div class="elementor-widget-container">
							<div class="elementor-icon-wrapper">
			<a class="elementor-icon" href="https://theeventhorizons.com/02-3/">
			<i aria-hidden="true" class="fas fa-dice-three"></i>			</a>
		</div>
						</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-16 elementor-top-column elementor-element elementor-element-298108c0" data-id="298108c0" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1aaf38bc elementor-view-default elementor-widget elementor-widget-icon" data-id="1aaf38bc" data-element_type="widget" data-e-type="widget" data-widget_type="icon.default">
				<div class="elementor-widget-container">
							<div class="elementor-icon-wrapper">
			<a class="elementor-icon" href="https://theeventhorizons.com/02-3/">
			<i aria-hidden="true" class="fas fa-dice-four"></i>			</a>
		</div>
						</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-16 elementor-top-column elementor-element elementor-element-4a4d1673" data-id="4a4d1673" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-28a52823 elementor-view-default elementor-widget elementor-widget-icon" data-id="28a52823" data-element_type="widget" data-e-type="widget" data-widget_type="icon.default">
				<div class="elementor-widget-container">
							<div class="elementor-icon-wrapper">
			<a class="elementor-icon" href="https://theeventhorizons.com/03-3/">
			<i aria-hidden="true" class="fas fa-dice-five"></i>			</a>
		</div>
						</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-16 elementor-top-column elementor-element elementor-element-323fe5c6" data-id="323fe5c6" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5f431ee4 elementor-view-default elementor-widget elementor-widget-icon" data-id="5f431ee4" data-element_type="widget" data-e-type="widget" data-widget_type="icon.default">
				<div class="elementor-widget-container">
							<div class="elementor-icon-wrapper">
			<a class="elementor-icon" href="https://theeventhorizons.com/04-3/">
			<i aria-hidden="true" class="fas fa-dice-six"></i>			</a>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4d65b888 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4d65b888" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-17b33f56" data-id="17b33f56" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-102fe93f elementor-widget elementor-widget-spacer" data-id="102fe93f" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-29e5297d elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="29e5297d" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5134bb4c" data-id="5134bb4c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-209d9a45 elementor-widget elementor-widget-heading" data-id="209d9a45" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">Bibliography</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-61ded74a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="61ded74a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-605a8106" data-id="605a8106" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-c12fd9a elementor-widget elementor-widget-text-editor" data-id="c12fd9a" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p> </p>
<p><span style="font-size: 15px; color: var( --e-global-color-text );">P. Barbé et M. Ledoux, Probabilité, Les Ulis, EDP Sciences, 2007.</span></p>
<p>P. Bogaert, Probabilités pour scientifiques et ingénieurs : Introduction au calcul des probabilités, Paris, Éditions De Boeck, 2006.</p>
<p>M. Lejeune, Statistique : la théorie et ses applications, Springer Science et Business Media, 2004.</p>
<p>F. Caravenna, P. Dai Pra et Q. Berger, Introduction aux probabilités : Modèles et applications : mathématiques, physique, informatique, sciences de l&#8217;ingénieur, biologie, Dunod, 1er septembre 2021.</p>
<p> </p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-77628591 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="77628591" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-563d34d4" data-id="563d34d4" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2837f831 elementor-view-default elementor-position-block-start elementor-mobile-position-block-start elementor-widget elementor-widget-icon-box" data-id="2837f831" data-element_type="widget" data-e-type="widget" data-widget_type="icon-box.default">
				<div class="elementor-widget-container">
							<div class="elementor-icon-box-wrapper">

						<div class="elementor-icon-box-icon">
				<span  class="elementor-icon">
				<i aria-hidden="true" class="fab fa-python"></i>				</span>
			</div>
			
			
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-765d3fea elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="765d3fea" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-669eec9b" data-id="669eec9b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2d6b44fe elementor-widget elementor-widget-toggle" data-id="2d6b44fe" data-element_type="widget" data-e-type="widget" data-widget_type="toggle.default">
				<div class="elementor-widget-container">
							<div class="elementor-toggle">
							<div class="elementor-toggle-item">
					<div id="elementor-tab-title-7621" class="elementor-tab-title" data-tab="1" role="button" aria-controls="elementor-tab-content-7621" aria-expanded="false">
												<span class="elementor-toggle-icon elementor-toggle-icon-left" aria-hidden="true">
															<span class="elementor-toggle-icon-closed"><i class="fas fa-caret-right"></i></span>
								<span class="elementor-toggle-icon-opened"><i class="elementor-toggle-icon-opened fas fa-caret-up"></i></span>
													</span>
												<a class="elementor-toggle-title" tabindex="0">Representation of the mean</a>
					</div>

					<div id="elementor-tab-content-7621" class="elementor-tab-content elementor-clearfix" data-tab="1" role="region" aria-labelledby="elementor-tab-title-7621">
<pre class="wp-block-code has-black-background-color has-background"><code class="language-python line-numbers" lang="python">
import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import norm

# Parameters for normal distributions
mean = 5  # Common mean for both distributions
variance1 = 10  # Variance for the first example
variance2 = 20  # Variance for the second example

# Generate data for the two distributions
x = np.linspace(-10, 20, 1000)
pdf1 = norm.pdf(x, loc=mean, scale=np.sqrt(variance1))
pdf2 = norm.pdf(x, loc=mean, scale=np.sqrt(variance2))

# Plot probability density functions with transparent fill color
plt.plot(x, pdf1, label=f'Variance={variance1}')
plt.fill_between(x, pdf1, alpha=0.3)
#plt.plot(x, pdf2, label=f'Variance={variance2}')
#plt.fill_between(x, pdf2, alpha=0.3)

# Calculate the mean for both cases (they should be equal)
mean1 = mean
mean2 = mean

# Draw vertical lines for the means
plt.axvline(x=mean1, color='r', linestyle='--', label=f'Mean')

plt.xlabel('Values')
plt.ylabel('Probability')
plt.legend()
plt.grid(True)
plt.show()

print(f"Mean (Var={variance1}): {mean1:.2f}")
print(f"Mean (Var={variance2}): {mean2:.2f}")





</code></pre>
</div>
				</div>
							<div class="elementor-toggle-item">
					<div id="elementor-tab-title-7622" class="elementor-tab-title" data-tab="2" role="button" aria-controls="elementor-tab-content-7622" aria-expanded="false">
												<span class="elementor-toggle-icon elementor-toggle-icon-left" aria-hidden="true">
															<span class="elementor-toggle-icon-closed"><i class="fas fa-caret-right"></i></span>
								<span class="elementor-toggle-icon-opened"><i class="elementor-toggle-icon-opened fas fa-caret-up"></i></span>
													</span>
												<a class="elementor-toggle-title" tabindex="0">Representation of the variance</a>
					</div>

					<div id="elementor-tab-content-7622" class="elementor-tab-content elementor-clearfix" data-tab="2" role="region" aria-labelledby="elementor-tab-title-7622">
<pre class="wp-block-code has-black-background-color has-background"><code class="language-python line-numbers" lang="python">
import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import norm

# Parameters for normal distributions
mean = 5  # Common mean for both distributions
variance1 = 10  # Variance for the first example
variance2 = 20  # Variance for the second example

# Generate data for the two distributions
x = np.linspace(-10, 20, 1000)
pdf1 = norm.pdf(x, loc=mean, scale=np.sqrt(variance1))
pdf2 = norm.pdf(x, loc=mean, scale=np.sqrt(variance2))

# Plot probability density functions with transparent fill color
plt.plot(x, pdf1, label=f'Variance={variance1}')
plt.fill_between(x, pdf1, alpha=0.3)
plt.plot(x, pdf2, label=f'Variance={variance2}')
plt.fill_between(x, pdf2, alpha=0.3)

# Calculate the mean for both cases (they should be equal)
mean1 = mean
mean2 = mean

# Draw vertical lines for the means
plt.axvline(x=mean1, color='r', linestyle='--', label=f'Mean')

plt.xlabel('Values')
plt.ylabel('Probability')
plt.legend()
plt.grid(True)
plt.show()

print(f"Mean (Var={variance1}): {mean1:.2f}")
print(f"Mean (Var={variance2}): {mean2:.2f}")





</code></pre>
</div>
				</div>
							<div class="elementor-toggle-item">
					<div id="elementor-tab-title-7623" class="elementor-tab-title" data-tab="3" role="button" aria-controls="elementor-tab-content-7623" aria-expanded="false">
												<span class="elementor-toggle-icon elementor-toggle-icon-left" aria-hidden="true">
															<span class="elementor-toggle-icon-closed"><i class="fas fa-caret-right"></i></span>
								<span class="elementor-toggle-icon-opened"><i class="elementor-toggle-icon-opened fas fa-caret-up"></i></span>
													</span>
												<a class="elementor-toggle-title" tabindex="0">Representation of the skewness</a>
					</div>

					<div id="elementor-tab-content-7623" class="elementor-tab-content elementor-clearfix" data-tab="3" role="region" aria-labelledby="elementor-tab-title-7623">
<pre class="wp-block-code has-black-background-color has-background"><code class="language-python line-numbers" lang="python">
import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import skewnorm

# Parameters for the normal distribution
mean1 = 5
std_dev1 = 2
skewness1 = 0  

# Parameters for the asymmetric normal distribution
mean2 = 5
std_dev2 = 2
skewness2 = 10  # Positive skewness (right-skewed)

# Create a range of x values
x = np.linspace(0, 10, 1000)

# Calculate the probability density functions (PDFs) for both distributions
pdf1 = skewnorm.pdf(x, skewness1, loc=mean1, scale=std_dev1)
pdf2 = skewnorm.pdf(x, skewness2, loc=mean2, scale=std_dev2)

# Plot the PDFs as curves
plt.plot(x, pdf1, label=f'Skewness={skewness1}')
plt.fill_between(x, pdf1, alpha=0.3)
plt.plot(x, pdf2, label=f'Skewness={skewness2}')
plt.fill_between(x, pdf2, alpha=0.3)

plt.xlabel('Values')
plt.ylabel('Probability')
plt.legend()
plt.grid(True)
plt.show()





</code></pre>
</div>
				</div>
							<div class="elementor-toggle-item">
					<div id="elementor-tab-title-7624" class="elementor-tab-title" data-tab="4" role="button" aria-controls="elementor-tab-content-7624" aria-expanded="false">
												<span class="elementor-toggle-icon elementor-toggle-icon-left" aria-hidden="true">
															<span class="elementor-toggle-icon-closed"><i class="fas fa-caret-right"></i></span>
								<span class="elementor-toggle-icon-opened"><i class="elementor-toggle-icon-opened fas fa-caret-up"></i></span>
													</span>
												<a class="elementor-toggle-title" tabindex="0">Discrete uniform distribution of the coin flip</a>
					</div>

					<div id="elementor-tab-content-7624" class="elementor-tab-content elementor-clearfix" data-tab="4" role="region" aria-labelledby="elementor-tab-title-7624">
<pre class="wp-block-code has-black-background-color has-background"><code class="language-python line-numbers" lang="python">
import matplotlib.pyplot as plt

# Define possible values (coin faces)
values = [0, 1]

# Calculate uniform probabilities (each face has a 1/2 probability)
probabilities = [1/2] * 2

# Set the values to display on the y-axis
plt.yticks([0, 0.25, 1/2, 0.75, 1])

# Create the scatter plot
plt.plot(values, probabilities, marker='o', color='black', label='Probabilities', ls='--')

# Limit the y-axis scale from 0 to 1
plt.ylim(0, 1)

# Label the axes and add a title
plt.xlabel('Coin Value')
plt.ylabel('Probability')


# Display the plot
plt.grid(True)
plt.legend(loc='upper right')
plt.show()




</code></pre>
</div>
				</div>
							<div class="elementor-toggle-item">
					<div id="elementor-tab-title-7625" class="elementor-tab-title" data-tab="5" role="button" aria-controls="elementor-tab-content-7625" aria-expanded="false">
												<span class="elementor-toggle-icon elementor-toggle-icon-left" aria-hidden="true">
															<span class="elementor-toggle-icon-closed"><i class="fas fa-caret-right"></i></span>
								<span class="elementor-toggle-icon-opened"><i class="elementor-toggle-icon-opened fas fa-caret-up"></i></span>
													</span>
												<a class="elementor-toggle-title" tabindex="0">Discrete uniform distribution of the roll the a die</a>
					</div>

					<div id="elementor-tab-content-7625" class="elementor-tab-content elementor-clearfix" data-tab="5" role="region" aria-labelledby="elementor-tab-title-7625">
<pre class="wp-block-code has-black-background-color has-background"><code class="language-python line-numbers" lang="python">
import matplotlib.pyplot as plt

# Define possible values (dice faces)
values = [1, 2, 3, 4, 5, 6]

# Calculate uniform probabilities (each face has a 1/6 probability)
probabilities = [1/6] * 6

# Create the scatter plot
plt.plot(values, probabilities, marker='o', color='black', label='Probabilities', ls='--')

# Set the values to display on the y-axis
plt.yticks([0, 1/6, 0.25, 0.5, 0.75, 1])

# Label the axes and add a title
plt.xlabel('Dice Value')
plt.ylabel('Probability')

 
# Display the plot
plt.grid(True)
plt.legend(loc='upper right')
plt.show()




</code></pre>
</div>
				</div>
								</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				</div>
		<p>The article <a href="https://theeventhorizons.com/defeat-the-game-master/">Defeat the Game Master</a> first appeared on <a href="https://theeventhorizons.com">The Event Horizons</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theeventhorizons.com/defeat-the-game-master/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Wall-E: The Foundations of its Intelligence </title>
		<link>https://theeventhorizons.com/wall-e-the-foundations-of-its-intelligence/</link>
					<comments>https://theeventhorizons.com/wall-e-the-foundations-of-its-intelligence/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 02 Sep 2023 20:33:51 +0000</pubDate>
				<category><![CDATA[Artificial Intelligence]]></category>
		<guid isPermaLink="false">https://theeventhorizons.com/?p=2518</guid>

					<description><![CDATA[<p>In a post-apocalyptic world filled with waste, Wall-E is a solitary robot tasked with recycling. However, he doesn't just sort the waste; he learns and adapts, thus showcasing the early stages of artificial intelligence.</p>
<p>The article <a href="https://theeventhorizons.com/wall-e-the-foundations-of-its-intelligence/">Wall-E: The Foundations of its Intelligence </a> first appeared on <a href="https://theeventhorizons.com">The Event Horizons</a>.</p>
]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="2518" class="elementor elementor-2518">
						<section class="elementor-section elementor-top-section elementor-element elementor-element-2a5074d0 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2a5074d0" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5982525f" data-id="5982525f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2a8df4c0 elementor-align-center elementor-widget elementor-widget-button" data-id="2a8df4c0" data-element_type="widget" data-e-type="widget" data-widget_type="button.default">
				<div class="elementor-widget-container">
									<div class="elementor-button-wrapper">
					<a class="elementor-button elementor-button-link elementor-size-sm" href="https://theeventhorizons.com/category/ai-revolution/">
						<span class="elementor-button-content-wrapper">
									<span class="elementor-button-text">Artificial Intelligence</span>
					</span>
					</a>
				</div>
								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2f984bbd elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2f984bbd" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7bbd9180" data-id="7bbd9180" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3aaa070f elementor-widget elementor-widget-heading" data-id="3aaa070f" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-xxl">Wall-E: The Foundations of its Intelligence</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1e9f125f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1e9f125f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ad6f732" data-id="ad6f732" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5ae0352d elementor-widget elementor-widget-heading" data-id="5ae0352d" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Episode I</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-795c3f51 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="795c3f51" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-14592809" data-id="14592809" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2f6d3ffe elementor-widget elementor-widget-heading" data-id="2f6d3ffe" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">By Jordan Moles on September 2, 2023</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3c3aaa78 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3c3aaa78" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-19172564" data-id="19172564" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3997dae0 elementor-widget elementor-widget-image" data-id="3997dae0" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="576" src="https://theeventhorizons.com/wp-content/uploads/2023/08/intro-1024x576.jpg" class="attachment-large size-large wp-image-2107" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/08/intro-1024x576.jpg 1024w, https://theeventhorizons.com/wp-content/uploads/2023/08/intro-300x169.jpg 300w, https://theeventhorizons.com/wp-content/uploads/2023/08/intro-768x432.jpg 768w, https://theeventhorizons.com/wp-content/uploads/2023/08/intro-1536x864.jpg 1536w, https://theeventhorizons.com/wp-content/uploads/2023/08/intro-800x450.jpg 800w, https://theeventhorizons.com/wp-content/uploads/2023/08/intro.jpg 1920w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-e61d9ec elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="e61d9ec" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-386912b" data-id="386912b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3307c751 elementor-widget elementor-widget-text-editor" data-id="3307c751" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="text-align: center;"><strong>In a devastated post-apocalyptic world, where the remnants of human civilization are buried under massive heaps of waste, a solitary little robot named Wall-E navigates through this dystopian landscape. His mission: the methodical recycling of discarded waste that has accumulated over the years. However, Wall-E&#8217;s endeavors go beyond merely sorting pieces of plastic, metal sheets, and organic materials.</strong></p>
<p style="text-align: center;"><strong>Through his interactions with the environment, this dedicated robot also gathers an abundance of information, analyzes millions of data points, and learns from his experiences to adapt, survive, and carry out his tasks with remarkable efficiency. The capabilities of what seemed to be a simple waste-collecting robot reveal the foundations of a burgeoning field: artificial intelligence.
</strong></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-597c9ccc elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="597c9ccc" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-18b089c6" data-id="18b089c6" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-12a983f5 elementor-widget elementor-widget-spacer" data-id="12a983f5" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6cbe74ec elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6cbe74ec" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-423c421a" data-id="423c421a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6cdb0fc8 elementor-widget elementor-widget-heading" data-id="6cdb0fc8" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">The very Essence of Artificial Intelligence: Learning</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-73fa14f9 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="73fa14f9" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-305cf9a6" data-id="305cf9a6" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6c97a456 elementor-widget elementor-widget-text-editor" data-id="6c97a456" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>In the early sparks of its existence, our little robot, much like a computer, was born to plunge into the abyss of calculations that would take millions of years for a human to find an answer to. Tasks once titanic for earthly souls stood before it, demanding to be tamed.</p>
<p>But within its circuits, a transformation was underway. A transformation inspired by the geniuses of the world&#8217;s scientific community. They infused our robot with a unique form of intelligence, a digital spark that changed the game. Wall-E, once a machine, was now becoming an entity that would learn and make complex decisions. It was the dawn of artificial intelligence, a new technological era.</p>
<p>Confronted with ever-growing challenges, Wall-E showcased its versatility. It seamlessly navigated both types of situations that humanity presented to it. In one case, it obediently followed calculations programmed by humans, responding like a calculator would to a simple \(1+1\).</p>
<p>Yet, it encountered a much more intricate puzzle: how to differentiate between the types of waste it encountered? How to recognize plastic from metal or organic material? Or more generally, how to solve a given problem without knowing the specific calculation required for its solution? This is where learning comes into play, a fascinating method we call <span style="color: #4b4b4b;"><strong>Machine Learning</strong></span>. A method that opens a door when we don&#8217;t know which key to use. Machine Learning is a master key for a multitude of tasks: image recognition, stock market predictions, estimating gold values, detecting cybersecurity vulnerabilities, and, of course, in our case: waste sorting.</p>
<p>To bestow this computer with learning intelligence, methods inspired by our own learning process were implemented. Among them, three fundamental approaches stand out:</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1c52253d elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1c52253d" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-4a42b3f5" data-id="4a42b3f5" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2a562c85 elementor-widget elementor-widget-text-editor" data-id="2a562c85" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									• First and foremost, <span style="color: #4b4b4b;"><strong>supervised learning</strong></span>, which forms the cornerstone of Machine Learning. Much like our own experience of acquiring knowledge, this method guides the little wheeled computer by providing it with pre-labeled examples. Like an eager apprentice assimilating knowledge, Wall-E is exposed to situations where the expected outcomes are already known. Then, by observing these examples, it gradually generalizes the relationships between inputs and outputs, thereby enabling it to make decisions and solve similar problems it will encounter later on.								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-7cd7a82a" data-id="7cd7a82a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-70bd3eb4 elementor-absolute elementor-widget elementor-widget-image" data-id="70bd3eb4" data-element_type="widget" data-e-type="widget" data-settings="{&quot;_position&quot;:&quot;absolute&quot;}" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1500" height="624" src="https://theeventhorizons.com/wp-content/uploads/2023/08/Captain3.jpg" class="attachment-1536x1536 size-1536x1536 wp-image-2339" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/08/Captain3.jpg 1500w, https://theeventhorizons.com/wp-content/uploads/2023/08/Captain3-300x125.jpg 300w, https://theeventhorizons.com/wp-content/uploads/2023/08/Captain3-1024x426.jpg 1024w, https://theeventhorizons.com/wp-content/uploads/2023/08/Captain3-768x319.jpg 768w" sizes="(max-width: 1500px) 100vw, 1500px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-594d8e07 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="594d8e07" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-19d03752" data-id="19d03752" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6a5a4c36 elementor-widget elementor-widget-image" data-id="6a5a4c36" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="640" src="https://theeventhorizons.com/wp-content/uploads/2023/08/aspirateur-1024x640.jpg" class="attachment-large size-large wp-image-2341" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/08/aspirateur-1024x640.jpg 1024w, https://theeventhorizons.com/wp-content/uploads/2023/08/aspirateur-300x188.jpg 300w, https://theeventhorizons.com/wp-content/uploads/2023/08/aspirateur-768x480.jpg 768w, https://theeventhorizons.com/wp-content/uploads/2023/08/aspirateur-1536x960.jpg 1536w, https://theeventhorizons.com/wp-content/uploads/2023/08/aspirateur.jpg 1680w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-7f453886" data-id="7f453886" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-657fa1f5 elementor-widget elementor-widget-text-editor" data-id="657fa1f5" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									• Next, <strong><span style="color: #4b4b4b;">unsupervised learning</span></strong>, a more open and exploratory form of artificial intelligence. This method allows the computer to autonomously discover hidden structures and patterns within data, without the need for pre-labeled examples. Like a fearless explorer, Wall-E uses its sensory analysis to discern patterns, group similar information, and explore the nuances of its environment. Through this unconstrained exploration, it gains a deep understanding of the world around it, uncovering unexpected insights and knowledge.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6963c10a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6963c10a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-56542df8" data-id="56542df8" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-70fe3db elementor-widget elementor-widget-text-editor" data-id="70fe3db" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									• Finally, <strong><span style="color: #4b4b4b;">reinforcement learning</span></strong>, which relies on a system of rewards and punishments to guide the computer in its learning process. Similar to our own motivations, Wall-E is rewarded when it successfully accomplishes a task and faces negative consequences for failures. These encouragements and penalties enable it to optimize its actions, make intelligent decisions, and refine its skills over time.								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-5ed505b4" data-id="5ed505b4" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-68582063 elementor-widget__width-inherit elementor-widget elementor-widget-image" data-id="68582063" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="885" height="370" src="https://theeventhorizons.com/wp-content/uploads/2023/08/walle_eve.jpg" class="attachment-large size-large wp-image-2342" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/08/walle_eve.jpg 885w, https://theeventhorizons.com/wp-content/uploads/2023/08/walle_eve-300x125.jpg 300w, https://theeventhorizons.com/wp-content/uploads/2023/08/walle_eve-768x321.jpg 768w" sizes="(max-width: 885px) 100vw, 885px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-30e2b2ed elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="30e2b2ed" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1fd2d61c" data-id="1fd2d61c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-15f05607 elementor-widget elementor-widget-text-editor" data-id="15f05607" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<h2 data-elementor-setting-key="title" data-pen-placeholder="Écrivez ici..."> </h2>
<h2 class="elementor-heading-title elementor-size-large elementor-inline-editing pen" style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 29px; font-style: normal; color: #414141;" data-elementor-setting-key="title" data-pen-placeholder="Écrivez ici...">Baby Robot Will Grow Up: The Architecture of Supervised Learning</h2>
<div> <span style="font-size: 15px; color: var( --e-global-color-text );">At the birth of Wall-E, humanity had already charted its exodus to the distant corners of space, leaving behind a Earth suffocated under the weight of climate change and invasive pollution. The natural balances that had cradled our world for so long had faltered, relegating the planet to a new reality. Once vibrant cities teeming with life were now mere remnants, silent witnesses of a bygone era.</span></div>
<p>However, a group of scientists had committed to remain on this weary land, guided by a bold vision: to educate this small robot brimming with potential, to differentiate metals, to sort plastics, all for a crucial mission &#8211; to clean and regenerate the planet itself.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-73073fe3 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="73073fe3" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-755d2831" data-id="755d2831" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-c0d341f elementor-widget elementor-widget-image" data-id="c0d341f" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="540" src="https://theeventhorizons.com/wp-content/uploads/2023/08/waste-1024x540.png" class="attachment-large size-large wp-image-2123" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/08/waste-1024x540.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/08/waste-300x158.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/08/waste-768x405.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/08/waste-1536x810.png 1536w, https://theeventhorizons.com/wp-content/uploads/2023/08/waste-2048x1079.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3b914598 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3b914598" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-397d584f" data-id="397d584f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-dc52d9e elementor-widget elementor-widget-text-editor" data-id="dc52d9e" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Thus began a phase of learning, where human knowledge was imparted to Wall-E. Scientists employed a specific method to guide this apprentice robot: supervised learning. This foundational aspect of Machine Learning provided Wall-E with the opportunity to evolve and grow by absorbing clearly labeled examples.</p>
<p>The beginnings of this journey revolve around this principle, inviting us to delve into the intricate mechanics of learning and uncover the crucial elements that drive it.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3a63d8f2 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3a63d8f2" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2417d7f8" data-id="2417d7f8" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-343e381a elementor-widget elementor-widget-heading" data-id="343e381a" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-medium">1. The Dataset: A Treasure Trove of Information</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-22cfb5b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="22cfb5b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-26667a6" data-id="26667a6" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-41392edf elementor-widget elementor-widget-text-editor" data-id="41392edf" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Like a gold mine for Wall-E, the <strong><span style="color: #4b4b4b;">dataset</span></strong>, or ensemble of data, constitutes an organized collection of examples upon which the robot will base its learning. Each example consists of diverse input variables (<span style="color: #4b4b4b;"><strong>features</strong></span>) that it will arrange into a matrix (a kind of table) and corresponding expected outputs (<strong><span style="color: #4b4b4b;">targets</span></strong>) that it will arrange into a vector (a column). These final variables are what Wall-E will seek to predict.</p><p><span style="color: var( --e-global-color-text ); font-size: 15px;">For instance, if we wish to teach Wall-E to recognize types of waste, the specific characteristics of the objects will constitute the input data (density, thermal conductivity, electrical conductivity, etc.), and labels indicating the type of each object will constitute the expected outputs (plastic, metal, organic). Nothing too intricate with this example table containing 5 samples.</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-65dff96 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="65dff96" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-435f1c9a" data-id="435f1c9a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2946b288 elementor-widget elementor-widget-shortcode" data-id="2946b288" data-element_type="widget" data-e-type="widget" data-widget_type="shortcode.default">
				<div class="elementor-widget-container">
							<div class="elementor-shortcode">
<table id="tablepress-9" class="tablepress tablepress-id-9">
<thead>
<tr class="row-1">
	<th class="column-1">Index</th><th class="column-2">Density</th><th class="column-3">Electrical Conductivity (\(S.m^{-1}\))</th><th class="column-4">Carbon Content</th><th class="column-5">Material</th>
</tr>
</thead>
<tbody class="row-striping row-hover">
<tr class="row-2">
	<td class="column-1">1</td><td class="column-2">4.5</td><td class="column-3">\(2.4 \times 10^{6}\)</td><td class="column-4">0</td><td class="column-5">Metal</td>
</tr>
<tr class="row-3">
	<td class="column-1">2</td><td class="column-2">0.5</td><td class="column-3">\(10^{-16}\)</td><td class="column-4">0.5</td><td class="column-5">Organic</td>
</tr>
<tr class="row-4">
	<td class="column-1">3</td><td class="column-2">19.3</td><td class="column-3">\(41 \times 10^{6}\)</td><td class="column-4">0</td><td class="column-5">Metal</td>
</tr>
<tr class="row-5">
	<td class="column-1">4</td><td class="column-2">1.1</td><td class="column-3">\(10^{-16}\)</td><td class="column-4">0.4</td><td class="column-5">Organic</td>
</tr>
<tr class="row-6">
	<td class="column-1">5</td><td class="column-2">1.2</td><td class="column-3">\(10^{-14}\)</td><td class="column-4">0</td><td class="column-5">Plastic</td>
</tr>
</tbody>
</table>
</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-727f4e54 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="727f4e54" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5c1cdd15" data-id="5c1cdd15" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-17e7a898 elementor-widget elementor-widget-text-editor" data-id="17e7a898" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Of course, as a waste sorting robot, this task constitutes its main mission. However, our little robot is also passionate about estimating the prices of metals, especially that of gold. Yet, as it doesn&#8217;t truly grasp the human monetary system, it converts everything into bolts.</p><p>So, to entertain it, scientists have it analyze every piece of gold-like metal to determine its purity and assign it a market value. Here&#8217;s an illustrative example with 5 variables.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6134115c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6134115c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1751f0d6" data-id="1751f0d6" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5c7565af elementor-widget elementor-widget-shortcode" data-id="5c7565af" data-element_type="widget" data-e-type="widget" data-widget_type="shortcode.default">
				<div class="elementor-widget-container">
							<div class="elementor-shortcode">
<table id="tablepress-10" class="tablepress tablepress-id-10">
<thead>
<tr class="row-1">
	<th class="column-1">Index</th><th class="column-2">Purity</th><th class="column-3">Gold Price</th>
</tr>
</thead>
<tbody class="row-striping row-hover">
<tr class="row-2">
	<td class="column-1">1</td><td class="column-2">0.374540</td><td class="column-3">1224.193388</td>
</tr>
<tr class="row-3">
	<td class="column-1">2</td><td class="column-2">0.950714</td><td class="column-3">1483.925567</td>
</tr>
<tr class="row-4">
	<td class="column-1">3</td><td class="column-2">0.731994</td><td class="column-3">1360.214557</td>
</tr>
<tr class="row-5">
	<td class="column-1">4</td><td class="column-2">0.598658</td><td class="column-3">1284.274057</td>
</tr>
<tr class="row-6">
	<td class="column-1">5</td><td class="column-2">0.156019</td><td class="column-3">1004.083221</td>
</tr>
</tbody>
</table>
</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4518c556 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4518c556" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-794d6542" data-id="794d6542" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-31e93f1d elementor-widget elementor-widget-text-editor" data-id="31e93f1d" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									With a much larger training dataset, it will be able to learn how to classify metal, plastic, and organic materials based on their characteristics, and assess the price of an unknown metal based on its purity.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-800045b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="800045b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3557aa5e" data-id="3557aa5e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-41f70ca8 elementor-widget elementor-widget-spacer" data-id="41f70ca8" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4d6014b5 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4d6014b5" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-fd4c04a" data-id="fd4c04a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-50929c9c elementor-widget elementor-widget-heading" data-id="50929c9c" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-medium">2. The Model and Its Parameters: The Architecture of Learning</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2ce199a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2ce199a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-58893709" data-id="58893709" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-366e6d6f elementor-widget elementor-widget-text-editor" data-id="366e6d6f" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Now, let me introduce you to the structure that Wall-E will use to learn from the dataset. This will be our model. Imagine a &#8220;black box&#8221; like an electronic device that Wall-E uses to process information and make predictions. It&#8217;s &#8220;black&#8221; in the sense that its internal workings are somewhat mysterious and complex, at least from Wall-E&#8217;s perspective. Inside this box, there are gears, levers, and hidden mechanisms that transform inputs (the data collected by Wall-E) into outputs (the predictions made by Wall-E).</p><p>Within this black box are the &#8220;parameters.&#8221; These are like the internal settings that Wall-E can adjust to improve its ability to make accurate predictions. Think of them as the secret buttons and knobs that Wall-E can turn and press to make the black box work more effectively.</p><p>When we talk about a &#8220;model,&#8221; we&#8217;re referring to a specific configuration of this black box or how each piece interacts with the rest of the system.</p><p>Supervised learning involves adjusting the parameters of this black box so that the predictions it generates are as close as possible to the correct answers (labels) provided in the training dataset. By adjusting the parameters and observing how predictions change, Wall-E is trying to understand how this black box actually works and how to make it better.</p><p>These models can be of different natures; some are linear, and others are non-linear. Let&#8217;s start by exploring linear models:</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-23455b4c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="23455b4c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c13dca4" data-id="c13dca4" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7265a604 elementor-widget elementor-widget-heading" data-id="7265a604" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">
Linear Models: Simplicity in Linearity</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-38e9b7f7 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="38e9b7f7" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-79d1bd65" data-id="79d1bd65" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-77aed80e elementor-widget elementor-widget-text-editor" data-id="77aed80e" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>These are relatively simple yet powerful mathematical representations. They assume that the relationship between the inputs and outputs is linear, which means it can be represented by a straight line (or a plane or hyperplane in a multidimensional space).</p>
<p><span style="font-size: 15px; color: var( --e-global-color-text );">As mentioned earlier, scientists didn&#8217;t just limit the robot to simple waste recycling; they also taught it how to estimate the price of a metal based on its purity. By revisiting its data, Wall-E has a dataset consisting of only k samples of gold, where purity is the input feature \(x^{(k)}\) and the corresponding price is the target \(y^{(k)}\). Let&#8217;s use the previous table to illustrate this.</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4f1abbcc elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4f1abbcc" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-25d2d77" data-id="25d2d77" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5ec6c325 elementor-widget elementor-widget-shortcode" data-id="5ec6c325" data-element_type="widget" data-e-type="widget" data-widget_type="shortcode.default">
				<div class="elementor-widget-container">
							<div class="elementor-shortcode">
<table id="tablepress-11" class="tablepress tablepress-id-11">
<thead>
<tr class="row-1">
	<th class="column-1">Index</th><th class="column-2">x</th><th class="column-3">y</th>
</tr>
</thead>
<tbody class="row-striping row-hover">
<tr class="row-2">
	<td class="column-1">1</td><td class="column-2">0.374540</td><td class="column-3">1224.193388</td>
</tr>
<tr class="row-3">
	<td class="column-1">2</td><td class="column-2">0.950714</td><td class="column-3">1483.925567</td>
</tr>
<tr class="row-4">
	<td class="column-1">3</td><td class="column-2">0.731994</td><td class="column-3">1360.214557</td>
</tr>
<tr class="row-5">
	<td class="column-1">4</td><td class="column-2">0.598658</td><td class="column-3">1284.274057</td>
</tr>
<tr class="row-6">
	<td class="column-1">5</td><td class="column-2">0.156019</td><td class="column-3">1004.083221</td>
</tr>
</tbody>
</table>
</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-37e9891a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="37e9891a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4d5722fa" data-id="4d5722fa" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-71470b49 elementor-widget elementor-widget-text-editor" data-id="71470b49" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									Here, we have 5 samples of gold with their respective data, indicating, for example, that sample 2 has a purity \(x^{(2)}=0.731994\) and is worth \(y^{(2)}=1360.214557\) bolts.

<span style="font-size: 15px; color: var( --e-global-color-text );">So, on the graph, we display the data from the table (we show 50 samples instead of 5, and imagine that there could be millions).</span>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3ef3b10c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3ef3b10c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-24d95b93" data-id="24d95b93" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1c9e0bdc elementor-widget elementor-widget-image" data-id="1c9e0bdc" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="577" src="https://theeventhorizons.com/wp-content/uploads/2023/08/vision-1024x577.png" class="attachment-large size-large wp-image-2060" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/08/vision-1024x577.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/08/vision-300x169.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/08/vision-768x433.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/08/vision-1536x865.png 1536w, https://theeventhorizons.com/wp-content/uploads/2023/08/vision-2048x1153.png 2048w, https://theeventhorizons.com/wp-content/uploads/2023/08/vision-800x450.png 800w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-592c88f1" data-id="592c88f1" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3ef37f4a elementor-widget elementor-widget-image" data-id="3ef37f4a" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1000" height="600" src="https://theeventhorizons.com/wp-content/uploads/2023/08/graphique.png" class="attachment-large size-large wp-image-2061" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/08/graphique.png 1000w, https://theeventhorizons.com/wp-content/uploads/2023/08/graphique-300x180.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/08/graphique-768x461.png 768w" sizes="(max-width: 1000px) 100vw, 1000px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-370ffa21 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="370ffa21" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-66e2113d" data-id="66e2113d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5b8f8d07 elementor-widget elementor-widget-text-editor" data-id="5b8f8d07" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Such a model could thus be represented by an equation of the form \(y = ax + b\), where &#8220;a&#8221; (the slope) and &#8220;b&#8221; (the y-intercept) are adjustable parameters within the model&#8217;s black box.</p><p><span style="font-size: 15px; color: var( --e-global-color-text );">Supervised learning aims to find the optimal values of &#8220;a&#8221; and &#8220;b&#8221; so that the model can draw the best possible line that minimizes the error between predictions and actual values.</span></p>								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-415f9ed4" data-id="415f9ed4" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1cfd56d8 elementor-widget elementor-widget-image" data-id="1cfd56d8" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="611" src="https://theeventhorizons.com/wp-content/uploads/2023/08/graphique-3-1024x611.png" class="attachment-large size-large wp-image-2063" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/08/graphique-3-1024x611.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/08/graphique-3-300x179.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/08/graphique-3-768x459.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/08/graphique-3-1536x917.png 1536w, https://theeventhorizons.com/wp-content/uploads/2023/08/graphique-3.png 1976w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4620350b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4620350b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-29ec4821" data-id="29ec4821" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2b7e219e elementor-widget elementor-widget-text-editor" data-id="2b7e219e" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Of course, reality is more complex than that, and for a more accurate estimation of the gold price, it would be necessary to consider historical information about gold prices over time, as well as relevant economic, political, and geopolitical features that can influence its value.</p><p><span style="font-size: 15px; color: var( --e-global-color-text );">While linear models are simple and easy to interpret, they can be limited in their ability to capture complex relationships between variables. This is where non-linear models come into play.</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-55b0924b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="55b0924b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-207b4d23" data-id="207b4d23" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-240001db elementor-widget elementor-widget-heading" data-id="240001db" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">
Non-linear Models: Elegance in Complexity</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4eb3610b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4eb3610b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-9b1fa59" data-id="9b1fa59" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-17eae9ca elementor-widget elementor-widget-text-editor" data-id="17eae9ca" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>As for non-linear models, they offer increased flexibility compared to linear models. They are capable of capturing complex and obviously non-linear relationships between inputs and outputs, thus allowing the representation of more sophisticated data behaviors.</p><p>Imagine that in fact, we have different data behaving more like this.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6637ee8e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6637ee8e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-18037378" data-id="18037378" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4310ee38 elementor-widget elementor-widget-image" data-id="4310ee38" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1996" height="1198" src="https://theeventhorizons.com/wp-content/uploads/2023/08/graphique-6.png" class="attachment-2048x2048 size-2048x2048 wp-image-2068" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/08/graphique-6.png 1996w, https://theeventhorizons.com/wp-content/uploads/2023/08/graphique-6-300x180.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/08/graphique-6-1024x615.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/08/graphique-6-768x461.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/08/graphique-6-1536x922.png 1536w" sizes="(max-width: 1996px) 100vw, 1996px" />											<figcaption class="widget-image-caption wp-caption-text">Estimation du prix de l'or </figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-1f948026" data-id="1f948026" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4ee182db elementor-widget elementor-widget-image" data-id="4ee182db" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1994" height="1194" src="https://theeventhorizons.com/wp-content/uploads/2023/08/graphique-7.png" class="attachment-2048x2048 size-2048x2048 wp-image-2069" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/08/graphique-7.png 1994w, https://theeventhorizons.com/wp-content/uploads/2023/08/graphique-7-300x180.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/08/graphique-7-1024x613.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/08/graphique-7-768x460.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/08/graphique-7-1536x920.png 1536w" sizes="(max-width: 1994px) 100vw, 1994px" />											<figcaption class="widget-image-caption wp-caption-text">Classification Plastique-Métal</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-29a3533d" data-id="29a3533d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5bea8d1c elementor-widget elementor-widget-image" data-id="5bea8d1c" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="300" height="279" src="https://theeventhorizons.com/wp-content/uploads/2023/08/RegardGauche-300x279.png" class="attachment-medium size-medium wp-image-2070" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/08/RegardGauche-300x279.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/08/RegardGauche.png 752w" sizes="(max-width: 300px) 100vw, 300px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6ab5f974 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6ab5f974" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-70c49f67" data-id="70c49f67" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7ec28ba1 elementor-widget elementor-widget-text-editor" data-id="7ec28ba1" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>So such models could be represented by equations like \(y = ax^2 + bx +c\) (a quadratic polynomial for the first curve) or more complex functions (like the sigmoid for the second) where the goal remains to find the parameters that minimize the error.</p><p><span style="font-size: 15px; color: var( --e-global-color-text );">Thus, the choice between a linear model and a non-linear model depends on the nature of the data and the complexity of the problem to be solved. Linear models are generally preferred when relationships between variables are simple and clear, while non-linear models are favored for more complex tasks and data sets rich in information.</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-ff61981 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="ff61981" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-461782b5" data-id="461782b5" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2b4729e3 elementor-widget elementor-widget-spacer" data-id="2b4729e3" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-73c4559f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="73c4559f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4f95291f" data-id="4f95291f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4a6c3509 elementor-widget elementor-widget-heading" data-id="4a6c3509" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-medium">3. Cost Function: Measuring Errors</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3d8e89df elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3d8e89df" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3de01b58" data-id="3de01b58" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7b81384d elementor-widget elementor-widget-text-editor" data-id="7b81384d" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									To measure how well Wall-E performs in this gold estimation task, we use a special function called the <strong><span style="color: #4b4b4b;">Cost Function</span></strong>. This function plays a crucial role in quantifying the errors between the price estimates made by Wall-E and the actual gold prices from historical data. It calculates the error for each estimate and then sums up these errors to form an overall measure of Wall-E&#8217;s performance in gold price estimation.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-36a6c8be elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="36a6c8be" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-17c01921" data-id="17c01921" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1b425dd4 elementor-widget elementor-widget-image" data-id="1b425dd4" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="577" src="https://theeventhorizons.com/wp-content/uploads/2023/08/vision-1024x577.png" class="attachment-large size-large wp-image-2060" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/08/vision-1024x577.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/08/vision-300x169.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/08/vision-768x433.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/08/vision-1536x865.png 1536w, https://theeventhorizons.com/wp-content/uploads/2023/08/vision-2048x1153.png 2048w, https://theeventhorizons.com/wp-content/uploads/2023/08/vision-800x450.png 800w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-244c964a" data-id="244c964a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7eb6b219 elementor-widget elementor-widget-image" data-id="7eb6b219" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="614" src="https://theeventhorizons.com/wp-content/uploads/2023/08/graphique-4-1024x614.png" class="attachment-large size-large wp-image-2100" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/08/graphique-4-1024x614.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/08/graphique-4-300x180.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/08/graphique-4-768x461.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/08/graphique-4-1536x922.png 1536w, https://theeventhorizons.com/wp-content/uploads/2023/08/graphique-4.png 1990w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6d8cc0e6 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6d8cc0e6" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7d952478" data-id="7d952478" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-63c063b elementor-widget elementor-widget-text-editor" data-id="63c063b" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									Being a true perfectionist, Wall-E aims to have a Cost Function that is well-suited to the model and as small as possible. This implies that he wants to minimize the errors between his price estimates and the actual prices, in order to make predictions with the highest possible accuracy.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1b5eef94 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1b5eef94" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-634d12bc" data-id="634d12bc" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5ab16923 elementor-widget elementor-widget-spacer" data-id="5ab16923" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-409c29ae elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="409c29ae" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-30104a80" data-id="30104a80" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7e39118d elementor-widget elementor-widget-heading" data-id="7e39118d" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">4. 
The Learning Algorithm: Finding the Optimum</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2406df6 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2406df6" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-612ac549" data-id="612ac549" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-fad1e5 elementor-widget elementor-widget-text-editor" data-id="fad1e5" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>To reduce this Cost Function, Wall-E employs a well-known algorithm called <strong><span style="color: #4b4b4b;">the gradient descent</span></strong>. This technique enables it to gradually adjust its internal parameters (for the linear model, it adjusts a and b) based on the errors made during the gold price estimation. At each step of the learning process, Wall-E enhances its performance by moving closer to the optimum, where the Cost Function is minimized.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3285a8d0 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3285a8d0" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-66f5d54c" data-id="66f5d54c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-67662881 elementor-widget elementor-widget-image" data-id="67662881" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="616" src="https://theeventhorizons.com/wp-content/uploads/2023/08/graphique5-1024x616.png" class="attachment-large size-large wp-image-2093" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/08/graphique5-1024x616.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/08/graphique5-300x180.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/08/graphique5-768x462.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/08/graphique5-1536x924.png 1536w, https://theeventhorizons.com/wp-content/uploads/2023/08/graphique5.png 1992w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-629e61b2" data-id="629e61b2" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7723a565 elementor-absolute elementor-widget elementor-widget-image" data-id="7723a565" data-element_type="widget" data-e-type="widget" data-settings="{&quot;_position&quot;:&quot;absolute&quot;}" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="474" src="https://theeventhorizons.com/wp-content/uploads/2023/08/calculatrice-1024x474.png" class="attachment-large size-large wp-image-2092" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/08/calculatrice-1024x474.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/08/calculatrice-300x139.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/08/calculatrice-768x355.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/08/calculatrice.png 1284w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3ffdd49f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3ffdd49f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-44750a" data-id="44750a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3a27e89b elementor-widget elementor-widget-text-editor" data-id="3a27e89b" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									We observe that with each iteration, the errors become progressively smaller until they reach a constant level. This way, Wall-E becomes an expert in gold price estimation, making predictions with remarkable accuracy.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-609cb0b5 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="609cb0b5" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-437d4676" data-id="437d4676" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-465dda3a elementor-widget elementor-widget-image" data-id="465dda3a" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="768" height="454" src="https://theeventhorizons.com/wp-content/uploads/2023/08/Graphique-2-768x454.png" class="attachment-medium_large size-medium_large wp-image-2335" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/08/Graphique-2-768x454.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/08/Graphique-2-300x177.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/08/Graphique-2-1024x606.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/08/Graphique-2-1536x908.png 1536w, https://theeventhorizons.com/wp-content/uploads/2023/08/Graphique-2.png 1958w" sizes="(max-width: 768px) 100vw, 768px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-7e70d496 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="7e70d496" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-50ee7705" data-id="50ee7705" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-30886e5b elementor-widget elementor-widget-text-editor" data-id="30886e5b" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									
Therefore, thanks to the final curve, it can, for instance, estimate the price of a gold sample with a purity level of 0.8, which would be approximately 1400 bolts.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5a83ed2a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5a83ed2a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-35b139b9" data-id="35b139b9" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-675cae5e elementor-widget elementor-widget-spacer" data-id="675cae5e" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4c43995e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4c43995e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4ffea47" data-id="4ffea47" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-58f8b8cd elementor-widget elementor-widget-heading" data-id="58f8b8cd" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">A Super Robot</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-75f3509b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="75f3509b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-40bfe3d0" data-id="40bfe3d0" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-25598d8 elementor-widget elementor-widget-text-editor" data-id="25598d8" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									Wall-E&#8217;s learning universe extends across a multitude of applications, each resonating with well-defined problems that can be categorized into two distinct families: regression and classification.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-41d6725d elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="41d6725d" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-44c62f7a" data-id="44c62f7a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-c88f502 elementor-widget elementor-widget-text-editor" data-id="c88f502" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<strong><span style="color: #4b4b4b;">Regression</span></strong> is a quantitative technique used to predict continuous target values, meaning numbers that can take any value within a certain range. Thus, among Wall-E&#8217;s favorite pursuits, estimating the price of gold falls under regression problems. Other examples include:								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-647dc9a6 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="647dc9a6" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-655c1d14" data-id="655c1d14" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7bcffecf elementor-widget elementor-widget-text-editor" data-id="7bcffecf" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<strong>Estimation of Remaining Drinkable Water Quantity</strong>: Wall-E can use historical data on groundwater levels, precipitation, and evaporation rates to create a regression model. This model could be used to estimate the amount of drinkable water remaining in underground sources, enabling humans to better plan their use of this vital resource.								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-7cdd312d" data-id="7cdd312d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-447f15ac elementor-widget elementor-widget-image" data-id="447f15ac" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="576" src="https://theeventhorizons.com/wp-content/uploads/2023/08/eau-1024x576.jpg" class="attachment-large size-large wp-image-2071" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/08/eau-1024x576.jpg 1024w, https://theeventhorizons.com/wp-content/uploads/2023/08/eau-300x169.jpg 300w, https://theeventhorizons.com/wp-content/uploads/2023/08/eau-768x432.jpg 768w, https://theeventhorizons.com/wp-content/uploads/2023/08/eau-800x450.jpg 800w, https://theeventhorizons.com/wp-content/uploads/2023/08/eau.jpg 1200w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-68f5ada elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="68f5ada" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-134b4bdc" data-id="134b4bdc" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7206abeb elementor-widget elementor-widget-image" data-id="7206abeb" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="708" height="330" src="https://theeventhorizons.com/wp-content/uploads/2023/08/solaire.jpg" class="attachment-large size-large wp-image-2072" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/08/solaire.jpg 708w, https://theeventhorizons.com/wp-content/uploads/2023/08/solaire-300x140.jpg 300w" sizes="(max-width: 708px) 100vw, 708px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-6914576c" data-id="6914576c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4aeac563 elementor-widget elementor-widget-text-editor" data-id="4aeac563" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<strong>Prediction of Solar Energy Production</strong>: Wall-E relies on solar energy to power its functions and recharge. By using data on daily sunlight, solar panel quality, and other environmental factors, Wall-E could create a regression model to predict solar energy production at different times of the day and under various weather conditions.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-14f448ac elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="14f448ac" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-76265b00" data-id="76265b00" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-14c87e0c elementor-widget elementor-widget-text-editor" data-id="14c87e0c" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<strong>Battery Lifespan Estimation</strong>: Wall-E&#8217;s batteries degrade over time and usage. By analyzing past battery performances and considering environmental conditions, Wall-E could develop a regression model to estimate the remaining lifespan of batteries. This would allow for proactive battery replacement planning.								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-6b4a9390" data-id="6b4a9390" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-205ddda7 elementor-widget elementor-widget-image" data-id="205ddda7" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="944" height="406" src="https://theeventhorizons.com/wp-content/uploads/2023/08/battery.jpg" class="attachment-large size-large wp-image-2073" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/08/battery.jpg 944w, https://theeventhorizons.com/wp-content/uploads/2023/08/battery-300x129.jpg 300w, https://theeventhorizons.com/wp-content/uploads/2023/08/battery-768x330.jpg 768w" sizes="(max-width: 944px) 100vw, 944px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4e4013f1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4e4013f1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-55ff12b0" data-id="55ff12b0" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-29c9841e elementor-widget elementor-widget-image" data-id="29c9841e" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="576" src="https://theeventhorizons.com/wp-content/uploads/2023/08/pollution-1024x576.jpg" class="attachment-large size-large wp-image-2074" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/08/pollution-1024x576.jpg 1024w, https://theeventhorizons.com/wp-content/uploads/2023/08/pollution-300x169.jpg 300w, https://theeventhorizons.com/wp-content/uploads/2023/08/pollution-768x432.jpg 768w, https://theeventhorizons.com/wp-content/uploads/2023/08/pollution-1536x864.jpg 1536w, https://theeventhorizons.com/wp-content/uploads/2023/08/pollution-800x450.jpg 800w, https://theeventhorizons.com/wp-content/uploads/2023/08/pollution.jpg 1920w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-7cd7f7a6" data-id="7cd7f7a6" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-75102fce elementor-absolute elementor-widget elementor-widget-text-editor" data-id="75102fce" data-element_type="widget" data-e-type="widget" data-settings="{&quot;_position&quot;:&quot;absolute&quot;}" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<strong>Prediction of Pollution Levels</strong>: Wall-E roams through the mountains of waste and polluted areas. By gathering data on air and water pollution levels, as well as waste dumping practices, it could create a regression model to predict future pollution levels in different regions, helping to identify the most critical areas for sanitation efforts.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-48a83dda elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="48a83dda" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-51ba7626" data-id="51ba7626" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-cc00837 elementor-widget elementor-widget-spacer" data-id="cc00837" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5092c74d elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5092c74d" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-219c0e" data-id="219c0e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7c15cadc elementor-widget elementor-widget-text-editor" data-id="7c15cadc" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<span style="color: #4b4b4b;"><strong>Classification</strong></span> is another qualitative supervised learning technique used to predict discrete labels or categories. Therefore, in its quest to clean up the Earth, Wall-E must sort a wide variety of waste materials. By using data on the shape, size, composition, and hazardousness of the waste, it can create a classification model to automatically categorize them into different classes (plastics, metals, organic materials, toxic waste, etc.). This would help optimize the recycling process and contribute to environmental preservation. Here are some examples of applications:								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-11a9a8c1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="11a9a8c1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-5fa2d11e" data-id="5fa2d11e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-672c3aa3 elementor-widget elementor-widget-text-editor" data-id="672c3aa3" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<strong>Classification of Celestial Objects</strong>: As Wall-E moves through the universe, it encounters a multitude of celestial objects, from asteroids to comets to planets. It can create a classification model to automatically identify different celestial objects based on their characteristics and trajectories.								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-4a7919e1" data-id="4a7919e1" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-aa5cb45 elementor-widget elementor-widget-image" data-id="aa5cb45" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="576" src="https://theeventhorizons.com/wp-content/uploads/2023/08/star-1024x576.jpeg" class="attachment-large size-large wp-image-2078" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/08/star-1024x576.jpeg 1024w, https://theeventhorizons.com/wp-content/uploads/2023/08/star-300x169.jpeg 300w, https://theeventhorizons.com/wp-content/uploads/2023/08/star-768x432.jpeg 768w, https://theeventhorizons.com/wp-content/uploads/2023/08/star-1536x864.jpeg 1536w, https://theeventhorizons.com/wp-content/uploads/2023/08/star-800x450.jpeg 800w, https://theeventhorizons.com/wp-content/uploads/2023/08/star.jpeg 1920w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3e337194 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3e337194" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-77534bb7" data-id="77534bb7" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3d76627b elementor-widget elementor-widget-image" data-id="3d76627b" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="428" src="https://theeventhorizons.com/wp-content/uploads/2023/08/human-1024x428.jpg" class="attachment-large size-large wp-image-2079" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/08/human-1024x428.jpg 1024w, https://theeventhorizons.com/wp-content/uploads/2023/08/human-300x125.jpg 300w, https://theeventhorizons.com/wp-content/uploads/2023/08/human-768x321.jpg 768w, https://theeventhorizons.com/wp-content/uploads/2023/08/human-1536x641.jpg 1536w, https://theeventhorizons.com/wp-content/uploads/2023/08/human.jpg 1600w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-3df0faeb" data-id="3df0faeb" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-66514f44 elementor-widget elementor-widget-text-editor" data-id="66514f44" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<strong>Classification of Human Emotions</strong>: When Wall-E interacts with humans, it can gather data on facial expressions, gestures, and vocal tones to develop a classification model to recognize human emotions such as joy, sadness, fear, or anger. This would enable Wall-E to better understand and adapt its interactions with humans, making its relationships even more authentic.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-662f75e8 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="662f75e8" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-641cb89e" data-id="641cb89e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-f6c9421 elementor-widget elementor-widget-text-editor" data-id="f6c9421" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									
<strong>Classification of Extraterrestrial Signals</strong>: While scanning the stars, Wall-E may detect signals from other extraterrestrial civilizations. To comprehend these cosmic communications, it can use supervised learning to create a classification model capable of distinguishing different types of signals, such as greeting messages, mathematical patterns, or warnings.								</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-4af9ec2c" data-id="4af9ec2c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7389baf2 elementor-widget elementor-widget-image" data-id="7389baf2" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="560" height="233" src="https://theeventhorizons.com/wp-content/uploads/2023/08/ship.png" class="attachment-large size-large wp-image-2080" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/08/ship.png 560w, https://theeventhorizons.com/wp-content/uploads/2023/08/ship-300x125.png 300w" sizes="(max-width: 560px) 100vw, 560px" />											<figcaption class="widget-image-caption wp-caption-text">Credits: Disney/PIXAR</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3e7ed72 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3e7ed72" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e1f30e8" data-id="e1f30e8" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-77b573ef elementor-widget elementor-widget-spacer" data-id="77b573ef" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-24ceee69 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="24ceee69" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6f4a243f" data-id="6f4a243f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-172bffa1 elementor-widget elementor-widget-heading" data-id="172bffa1" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">Exploration and Enrichment</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-11f2a07c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="11f2a07c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-45551e26" data-id="45551e26" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4480f82e elementor-widget elementor-widget-text-editor" data-id="4480f82e" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>As it evolved in this intricate world, the little solitary robot demonstrated unmatched mastery with every challenge that came its way. Its journey started humbly as a mere waste collector, but it evolved to become an expert in value estimation, thereby uncovering the profound foundations of artificial intelligence. This unique trajectory highlights the incredible potential of machine learning and the accompanying techniques.</p><p>Supervised learning, the true cornerstone of this intelligence, allowed Wall-E to transcend the limitations of its machine nature and become an agile learner. Guided by pre-labeled examples, it assimilated complex knowledge and made sound decisions. Later, it embraced linear and non-linear models to interpret and predict relationships within data, transforming into a master in gold value estimation and an elite waste sorter.</p><p>The upcoming sections delve into two crucial aspects of supervised learning in more detail:</p><p><strong>Part II: The Little Gold Miner</strong></p><p>We will delve into the regression model that enabled Wall-E to gain an in-depth understanding of gold value estimation. From dataset analysis to model design, employing the cost function and gradient descent algorithm, each step will be methodically dissected. We will explore the nuances of linear and non-linear models, showcasing how Wall-E optimized its performance to become a master in the art of gold estimation.</p><p><strong>Part III: The Sorting Specialist</strong></p><p>In this part, we will enter the complex realm of waste sorting, a task that is both critical and challenging. We will detail how Wall-E used classification models to learn to distinguish different types of waste. From dataset processing to creating the classification model, addressing the unique challenges posed by diverse materials, we will explore how Wall-E progressed from a mere waste sorter to an expert in recycling.</p><p><span style="font-size: 15px; color: var( --e-global-color-text );">Just as Wall-E learned to differentiate plastic from metal and estimate gold purity, artificial intelligence finds its place in domains ranging from predicting solar energy production to classifying human emotions. Wall-E&#8217;s brilliance thus reflects an evolution in how AI enriches our understanding of the world and enhances our interactions with it.</span></p><p>The path Wall-E has treaded is only a prologue. The algorithms and models it embraced have set a precedent for artificial intelligence, broadening the horizons of what machines can achieve. And as scientists and engineers continue to build upon these foundations, Wall-E&#8217;s story serves as an inspiring reminder: even amidst rubble, waste can become a precious source of knowledge and innovative solutions.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4acd17c2 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4acd17c2" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-59f4364a" data-id="59f4364a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-39e64f7d elementor-widget elementor-widget-spacer" data-id="39e64f7d" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-7d21ffc8 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="7d21ffc8" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3f32a24a" data-id="3f32a24a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-66aa4b81 elementor-widget elementor-widget-heading" data-id="66aa4b81" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">Bibliography</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-c458f89 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="c458f89" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-74ab61f2" data-id="74ab61f2" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-8bf2a2e elementor-widget elementor-widget-text-editor" data-id="8bf2a2e" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>G. James, D. Witten, T. Hastie et R. Tibshirani, An Introduction to Statistical Learning, Springer Verlag, coll. « Springer Texts in Statistics », 2013</p><p>D. MacKay, Information Theory, Inference, and Learning Algorithms, Cambridge University Press, 2003</p><p>T. Mitchell, Machine Learning, 1997</p><p>F. Galton,  Kinship and Correlation (reprinted 1989), Statistical Science, Institute of Mathematical Statistics, vol. 4, no 2,‎ 1989, p. 80–86</p><p>C. Bishop, Pattern Recognition And Machine Learning, Springer, 2006</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-26232a2d elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="26232a2d" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-38100a04" data-id="38100a04" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap">
							</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4957daed elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4957daed" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-19b8ec6f" data-id="19b8ec6f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1f116263 elementor-widget elementor-widget-spacer" data-id="1f116263" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6e8f4c11 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6e8f4c11" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7372bf94" data-id="7372bf94" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-f7a684d elementor-view-default elementor-position-block-start elementor-mobile-position-block-start elementor-widget elementor-widget-icon-box" data-id="f7a684d" data-element_type="widget" data-e-type="widget" data-widget_type="icon-box.default">
				<div class="elementor-widget-container">
							<div class="elementor-icon-box-wrapper">

						<div class="elementor-icon-box-icon">
				<span  class="elementor-icon">
				<i aria-hidden="true" class="fab fa-python"></i>				</span>
			</div>
			
			
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-73e3b189 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="73e3b189" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4d197bd" data-id="4d197bd" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6e28e5e7 elementor-widget elementor-widget-toggle" data-id="6e28e5e7" data-element_type="widget" data-e-type="widget" data-widget_type="toggle.default">
				<div class="elementor-widget-container">
							<div class="elementor-toggle">
							<div class="elementor-toggle-item">
					<div id="elementor-tab-title-1841" class="elementor-tab-title" data-tab="1" role="button" aria-controls="elementor-tab-content-1841" aria-expanded="false">
												<span class="elementor-toggle-icon elementor-toggle-icon-left" aria-hidden="true">
															<span class="elementor-toggle-icon-closed"><i class="fas fa-caret-right"></i></span>
								<span class="elementor-toggle-icon-opened"><i class="elementor-toggle-icon-opened fas fa-caret-up"></i></span>
													</span>
												<a class="elementor-toggle-title" tabindex="0"> Estimation of Gold Price: Non-Optimal</a>
					</div>

					<div id="elementor-tab-content-1841" class="elementor-tab-content elementor-clearfix" data-tab="1" role="region" aria-labelledby="elementor-tab-title-1841">
<pre class="wp-block-code has-black-background-color has-background"><code class="language-python line-numbers" lang="python">
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd

# Random data generation
np.random.seed(42)  # To reproduce the same results on each run
n_samples = 50  # Number of samples
purity = np.random.rand(n_samples)  # Random purity values between 0 and 1
gold_price = 1000 + 500 * purity + np.random.normal(0, 50, n_samples)  # Gold price based on purity

# Creating the data array
data = np.column_stack((purity, gold_price))

# Creating a Pandas DataFrame for the table
df = pd.DataFrame(data, columns=['Purity', 'Gold Price'])

# Calculate a non-optimal linear regression line
x = data[:, 0]
non_optimal_line = 600 * x + 1000

# Creating the plot
plt.figure(figsize=(10, 6))
plt.scatter(data[:, 0], data[:, 1], label='Data')

# Adding the non-optimal linear regression line in red
plt.plot(x, non_optimal_line, color='red', label='Non-Optimal Linear Regression Line')


plt.xlabel('Gold Purity')
plt.ylabel('Gold Price')
plt.title('Relationship between Gold Purity and Price')
plt.grid(True)
plt.show()




</code></pre>
</div>
				</div>
							<div class="elementor-toggle-item">
					<div id="elementor-tab-title-1842" class="elementor-tab-title" data-tab="2" role="button" aria-controls="elementor-tab-content-1842" aria-expanded="false">
												<span class="elementor-toggle-icon elementor-toggle-icon-left" aria-hidden="true">
															<span class="elementor-toggle-icon-closed"><i class="fas fa-caret-right"></i></span>
								<span class="elementor-toggle-icon-opened"><i class="elementor-toggle-icon-opened fas fa-caret-up"></i></span>
													</span>
												<a class="elementor-toggle-title" tabindex="0">Estimation of Gold Price: Non-Optimal with Errors</a>
					</div>

					<div id="elementor-tab-content-1842" class="elementor-tab-content elementor-clearfix" data-tab="2" role="region" aria-labelledby="elementor-tab-title-1842">
<pre class="wp-block-code has-black-background-color has-background"><code class="language-python line-numbers" lang="python">
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd

# Random data generation
np.random.seed(42)  # To reproduce the same results on each run
n_samples = 50  # Number of samples
purity = np.random.rand(n_samples)  # Random purity values between 0 and 1
gold_price = 1000 + 500 * purity + np.random.normal(0, 50, n_samples)  # Gold price based on purity

# Creating the data array
data = np.column_stack((purity, gold_price))

# Creating a Pandas DataFrame for the table
df = pd.DataFrame(data, columns=['Purity', 'Gold Price'])

# Calculate a non-optimal linear regression line
x = data[:, 0]
non_optimal_line = 600 * x + 1000

# Creating the plot
plt.figure(figsize=(10, 6))
plt.scatter(data[:, 0], data[:, 1], label='Data')

# Adding the non-optimal linear regression line in red
plt.plot(x, non_optimal_line, color='red', label='Non-Optimal Linear Regression Line')

# Adding lines indicating errors for each point relative to the non-optimal line
for i in range(n_samples):
    plt.plot([x[i], x[i]], [data[i, 1], non_optimal_line[i]], color='green', linestyle='--', linewidth=1)

# Adding a single entry in the legend for the error lines
plt.legend(['Data', 'Non-Optimal Linear Regression Line', 'Error'])

plt.xlabel('Gold Purity')
plt.ylabel('Gold Price')
plt.title('Relationship between Gold Purity and Price')
plt.grid(True)
plt.show()




</code></pre>
</div>
				</div>
							<div class="elementor-toggle-item">
					<div id="elementor-tab-title-1843" class="elementor-tab-title" data-tab="3" role="button" aria-controls="elementor-tab-content-1843" aria-expanded="false">
												<span class="elementor-toggle-icon elementor-toggle-icon-left" aria-hidden="true">
															<span class="elementor-toggle-icon-closed"><i class="fas fa-caret-right"></i></span>
								<span class="elementor-toggle-icon-opened"><i class="elementor-toggle-icon-opened fas fa-caret-up"></i></span>
													</span>
												<a class="elementor-toggle-title" tabindex="0">Plastic-Metal Classification</a>
					</div>

					<div id="elementor-tab-content-1843" class="elementor-tab-content elementor-clearfix" data-tab="3" role="region" aria-labelledby="elementor-tab-title-1843">
<pre class="wp-block-code has-black-background-color has-background"><code class="language-python line-numbers" lang="python">
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd

# Define the sigmoid function
def sigmoid(x, a, b):
    return 1 / (1 + np.exp(-(a * x + b)))

# Define the gradient descent function for sigmoid
def gradient_descent_sigmoid(X, y, P, learning_rate, n_iterations):
    m = len(y)
    cost_history = np.zeros(n_iterations)
    for i in range(n_iterations):
        P = P - learning_rate * (1/m) * X.T.dot(sigmoid(X.dot(P), 1, 0) - y)
        cost_history[i] = cost_function_sigmoid(X, y, P)
    return P, cost_history

# Define the cost function for sigmoid
def cost_function_sigmoid(X, y, P):
    m = len(y)
    return -1 / m * np.sum(y * np.log(sigmoid(X.dot(P), 1, 0)) + (1 - y) * np.log(1 - sigmoid(X.dot(P), 1, 0)))

# Random data generation for classification
np.random.seed(42)
n_samples = 50
density = np.random.uniform(0.8, 2.0, n_samples)
threshold = 1.4
material = np.where(density > threshold, 1, 0)

# Creating the design matrix X for classification
X_class = np.column_stack((np.ones(n_samples), density))

# Creating the target vector y for classification
y_class = material.reshape(material.shape[0], 1)

# Initialize P for sigmoid classification
P_class = np.random.randn(2, 1)

# Setting the learning rate and number of iterations for sigmoid classification
learning_rate_class = 0.5
n_iterations_class = 1000000

# Performing gradient descent for sigmoid classification
P_final_class, cost_history_class = gradient_descent_sigmoid(X_class, y_class, P_class, learning_rate_class, n_iterations_class)

# Calculate the sigmoid classification curve
x_range_class = np.linspace(0.8, 2.0, 100)
y_pred_sigmoid_class = sigmoid(x_range_class, P_final_class[1], P_final_class[0])

# Creating the plot for sigmoid classification
plt.figure(figsize=(10, 6))
plt.scatter(density, material, label='Data')
plt.plot(x_range_class, y_pred_sigmoid_class, color='red', label='Fitted Sigmoid Classification')
plt.xlabel('Density')
plt.ylabel('Material (Metal: 1, Plastic: 0)')
plt.title('Classification Using Fitted Sigmoid Curve')
plt.legend()
plt.grid(True)
plt.show()

# Display the fitted parameters and cost history for sigmoid classification
print("Fitted Sigmoid Classification Parameters (a, b):", P_final_class)
plt.plot(range(n_iterations_class), cost_history_class)
plt.xlabel('Number of Iterations')
plt.ylabel('Cost')
plt.title('Cost History during Gradient Descent (Sigmoid Classification)')
plt.show()




</code></pre>
</div>
				</div>
							<div class="elementor-toggle-item">
					<div id="elementor-tab-title-1844" class="elementor-tab-title" data-tab="4" role="button" aria-controls="elementor-tab-content-1844" aria-expanded="false">
												<span class="elementor-toggle-icon elementor-toggle-icon-left" aria-hidden="true">
															<span class="elementor-toggle-icon-closed"><i class="fas fa-caret-right"></i></span>
								<span class="elementor-toggle-icon-opened"><i class="elementor-toggle-icon-opened fas fa-caret-up"></i></span>
													</span>
												<a class="elementor-toggle-title" tabindex="0">Estimation of Gold Price</a>
					</div>

					<div id="elementor-tab-content-1844" class="elementor-tab-content elementor-clearfix" data-tab="4" role="region" aria-labelledby="elementor-tab-title-1844">
<pre class="wp-block-code has-black-background-color has-background"><code class="language-python line-numbers" lang="python">
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd

# Random data generation
np.random.seed(42)
n_samples = 50
purity = np.random.rand(n_samples)
gold_price = 1000 + 500 * purity + np.random.normal(0, 50, n_samples)  # Linear model

# Creating the data array
data = np.column_stack((purity, gold_price))

# Creating a Pandas DataFrame for the table
df = pd.DataFrame(data, columns=['Purity', 'Gold Price'])

# Define the linear function
def linear(x, a, b):
    return a * x + b

# Define the gradient descent function
def gradient_descent(X, y, P, learning_rate, n_iterations):
    m = len(y)
    cost_history = np.zeros(n_iterations)
    for i in range(n_iterations):
        P = P - learning_rate * (1/m) * X.T.dot(X.dot(P) - y)
        cost_history[i] = cost_function(X, y, P)
    return P, cost_history

# Define the cost function
def cost_function(X, y, P):
    m = len(y)
    return 1 / (2 * m) * np.sum((X.dot(P) - y) ** 2)

# Creating the design matrix X
X = np.column_stack((np.ones(n_samples), purity))

# Creating the target vector y
y = gold_price.reshape(gold_price.shape[0], 1)

# Initialize P
P = np.random.randn(2, 1)

# Setting the learning rate and number of iterations
learning_rate = 0.1
n_iterations = 1000

# Performing gradient descent
P_final, cost_history = gradient_descent(X, y, P, learning_rate, n_iterations)

# Calculate the linear regression line
x_range = np.linspace(0, 1, 100)
y_pred = linear(x_range, P_final[1], P_final[0])

# Creating the plot
plt.figure(figsize=(10, 6))
plt.scatter(purity, gold_price, label='Data')
plt.plot(x_range, y_pred, color='red', label='Optimal Linear Regression')
plt.xlabel('Gold Purity')
plt.ylabel('Gold Price')
plt.title('Linear Relationship between Gold Purity and Price with Linear Regression')
plt.legend()
plt.grid(True)
plt.show()



</code></pre>
</div>
				</div>
								</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				</div>
		<p>The article <a href="https://theeventhorizons.com/wall-e-the-foundations-of-its-intelligence/">Wall-E: The Foundations of its Intelligence </a> first appeared on <a href="https://theeventhorizons.com">The Event Horizons</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theeventhorizons.com/wall-e-the-foundations-of-its-intelligence/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Stormtroopers Are Bad at Shooting? Yes.</title>
		<link>https://theeventhorizons.com/stormtroopers/</link>
					<comments>https://theeventhorizons.com/stormtroopers/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 23 Jul 2023 17:33:03 +0000</pubDate>
				<category><![CDATA[Computing]]></category>
		<guid isPermaLink="false">https://theeventhorizons.com/?p=654</guid>

					<description><![CDATA[<p>A long time ago, in a galaxy far, far away, a young commander took a battalion of particularly clumsy stormtroopers to a shooting range. They seemed destined to constantly miss their targets, making them the laughing stock of the Empire. However, the commander had a bold idea to exploit their apparent incompetence. From now on, they would estimate areas!</p>
<p>The article <a href="https://theeventhorizons.com/stormtroopers/">Stormtroopers Are Bad at Shooting? Yes.</a> first appeared on <a href="https://theeventhorizons.com">The Event Horizons</a>.</p>
]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="654" class="elementor elementor-654">
						<section class="elementor-section elementor-top-section elementor-element elementor-element-7f0b92bf elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="7f0b92bf" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-47c28176" data-id="47c28176" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-8dd7f91 elementor-align-center elementor-widget elementor-widget-button" data-id="8dd7f91" data-element_type="widget" data-e-type="widget" data-widget_type="button.default">
				<div class="elementor-widget-container">
									<div class="elementor-button-wrapper">
					<a class="elementor-button elementor-button-link elementor-size-xs" href="">
						<span class="elementor-button-content-wrapper">
									<span class="elementor-button-text">	Computing</span>
					</span>
					</a>
				</div>
								</div>
				</div>
				<div class="elementor-element elementor-element-fe704c0 elementor-widget elementor-widget-heading" data-id="fe704c0" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-xxl">Stormtroopers Are Bad at Shooting? <br>Yes.</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1b0816d elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1b0816d" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b15b917" data-id="b15b917" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1955e17 elementor-widget elementor-widget-heading" data-id="1955e17" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">By Jordan Moles on July 23, 2023</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5313701 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5313701" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4f23751" data-id="4f23751" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6c373b0 elementor-widget elementor-widget-image" data-id="6c373b0" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="768" src="https://theeventhorizons.com/wp-content/uploads/2023/07/Miniature-storm-1-1024x768.jpeg" class="attachment-large size-large wp-image-669" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/Miniature-storm-1-1024x768.jpeg 1024w, https://theeventhorizons.com/wp-content/uploads/2023/07/Miniature-storm-1-300x225.jpeg 300w, https://theeventhorizons.com/wp-content/uploads/2023/07/Miniature-storm-1-768x576.jpeg 768w, https://theeventhorizons.com/wp-content/uploads/2023/07/Miniature-storm-1.jpeg 1440w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-923f755 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="923f755" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7898c36" data-id="7898c36" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-370feff elementor-widget elementor-widget-video" data-id="370feff" data-element_type="widget" data-e-type="widget" data-settings="{&quot;video_type&quot;:&quot;hosted&quot;,&quot;autoplay&quot;:&quot;yes&quot;,&quot;controls&quot;:&quot;yes&quot;}" data-widget_type="video.default">
				<div class="elementor-widget-container">
							<div class="e-hosted-video elementor-wrapper elementor-open-inline">
					<video class="elementor-video" src="https://theeventhorizons.com/wp-content/uploads/2023/07/StormvidEN.mp4" autoplay="" controls="" controlsList="nodownload"></video>
				</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6567bb72 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6567bb72" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2a3e55d2" data-id="2a3e55d2" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4ea83cb9 elementor-widget__width-initial elementor-widget elementor-widget-text-editor" data-id="4ea83cb9" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<h2 data-elementor-setting-key="title" data-pen-placeholder="Écrivez ici..."> </h2><h2 class="elementor-heading-title elementor-size-large elementor-inline-editing pen" style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 29px; font-style: normal; color: #414141;" data-elementor-setting-key="title" data-pen-placeholder="Écrivez ici...">The Monte Carlo Method</h2><p>The Monte Carlo method is an efficient mathematical strategy that is applied to approximate results that are otherwise intractable to calculate with precision. It relies on the use of pseudo-random numbers to simulate random events and derive probabilistic outcomes. A simple illustration to grasp this method would be to envision an army of stormtroopers randomly firing upon a target. By virtue of the Monte Carlo method, we can estimate the stormtroopers&#8217; precision rate by simulating their random shooting and counting the number of shots that strike the target. But especially they can estimate areas.</p><p>Tis method is grounded on the law of large numbers, which asserts that if a large number of independent random experiments are conducted, the frequency of the outcomes will converge towards the theoretical probability. For example, if you toss a balanced coin a very large number of times, it will appear tail or head half the time. To employ this method, one must first define a simulation space of random events, generate pseudo-random numbers to mimic these events, and tally the number of occurrences that transpire within a specific region of interest. This information is then used to estimate the probability of a particular event.</p><p>For instance, to estimate the precision rate of the stormtroopers, we could define a simulation space that represents the target, let them shoot, and count the number of shots that strike the target. By using the ratio of the number of shots that strike the target to the total number of shots, we can estimate the precision rate of the stormtroopers. To do so,</p><p>1. Put one stormtrooper in the closed and huge shooting range.<br />2. Let&#8217;s draw a circle of radius 25 meters in the center of the squared back wall of 50 meters.<br />3. Now, it&#8217;s time to order to the stormtrooper to fire.</p><p>&#8220;Stormtrooper, attention, target in the back wall in sight, fire one thousand shot.&#8221;</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-9096e17 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="9096e17" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-32b5271c" data-id="32b5271c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4220e4ef elementor-widget elementor-widget-image" data-id="4220e4ef" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="745" src="https://theeventhorizons.com/wp-content/uploads/2023/07/onestorm-1024x745.png" class="attachment-large size-large wp-image-266" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/onestorm-1024x745.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/07/onestorm-300x218.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/07/onestorm-768x558.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/07/onestorm-1536x1117.png 1536w, https://theeventhorizons.com/wp-content/uploads/2023/07/onestorm.png 1942w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-3224bf80" data-id="3224bf80" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-60cb4960 elementor-widget elementor-widget-image" data-id="60cb4960" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="776" height="770" src="https://theeventhorizons.com/wp-content/uploads/2023/07/1thousand.png" class="attachment-large size-large wp-image-267" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/1thousand.png 776w, https://theeventhorizons.com/wp-content/uploads/2023/07/1thousand-300x298.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/07/1thousand-150x150.png 150w, https://theeventhorizons.com/wp-content/uploads/2023/07/1thousand-768x762.png 768w" sizes="(max-width: 776px) 100vw, 776px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6ab7309 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6ab7309" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-fa9f996" data-id="fa9f996" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2e5df5de elementor-widget elementor-widget-heading" data-id="2e5df5de" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Figure 1: A stormtrooper trying to shot the target and the result obtained with one thousand shots.</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5e8e9c7c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5e8e9c7c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3dc9c4a" data-id="3dc9c4a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5a8b2614 elementor-widget elementor-widget-text-editor" data-id="5a8b2614" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>According to the target, we have the proof that he is not really good at shooting. In fact, he shoots uniformly in the back wall, i.e., in mathematical terms, it means that the probability of striking a defined zone in the back wall is the same as striking another one with the same area. This probability is called continuous uniform distribution. These non-skills will be used to estimate the value of mathematical constants (such as π) and a lot more things.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1a58a202 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1a58a202" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3980a90e" data-id="3980a90e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6475c6e3 elementor-widget elementor-widget-text-editor" data-id="6475c6e3" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<h2 data-elementor-setting-key="title" data-pen-placeholder="Écrivez ici...">&nbsp;</h2>
<h2 class="elementor-heading-title elementor-size-large elementor-inline-editing pen" style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 29px; font-style: normal; color: #414141;" data-elementor-setting-key="title" data-pen-placeholder="Écrivez ici...">Estimation of π and the Millennium Falcon&#8217;s Area</h2>
<p>Before continuing, let&#8217;s recall that the area of a square of side R is \(S_{square}=R²\) and the area of a circle of radius R is \(S_{circle}=π R²\). We will start with the simplest estimation: that of π. This works by using the same steps as outlined previously</p>
<p>1. Put the army of one million and identical stormtroopers in the closed and huge shooting range.<br>2. Draw a circle of radius 25 meters within the squared back wall of 50 meters.<br>3. Recall the order.</p>
<p>&#8220;Stormtroopers, attention, target in the back wall in sight, fire one shot.&#8221;</p>
<p>1. Count the number of impacts (or points) that fall inside the circle.<br>2. Use the proportion of impacts inside the circle to the total number of impacts generated to estimate π. Specifically, you can use the following formula:</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3440d9aa elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3440d9aa" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-69f8954b" data-id="69f8954b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-721e634b elementor-widget elementor-widget-text-editor" data-id="721e634b" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>\begin{equation*}<br />\pi=\frac{S_{circle}}{S_{square}}=\frac{\text{Number of impacts in the circle}}{\text{Total number of impacts}}.<br />\end{equation*}</p><p>Repeat steps several times or increase your army to get a more precise estimate of π.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-326f27dd elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="326f27dd" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-5a0bc21c" data-id="5a0bc21c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-76e0746f elementor-widget elementor-widget-image" data-id="76e0746f" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="845" height="1024" src="https://theeventhorizons.com/wp-content/uploads/2023/07/millionstorm-845x1024.png" class="attachment-large size-large wp-image-295" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/millionstorm-845x1024.png 845w, https://theeventhorizons.com/wp-content/uploads/2023/07/millionstorm-248x300.png 248w, https://theeventhorizons.com/wp-content/uploads/2023/07/millionstorm-768x931.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/07/millionstorm.png 1009w" sizes="(max-width: 845px) 100vw, 845px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-be3e15a" data-id="be3e15a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3a45e69 elementor-widget elementor-widget-image" data-id="3a45e69" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="780" height="770" src="https://theeventhorizons.com/wp-content/uploads/2023/07/10thousand.png" class="attachment-large size-large wp-image-296" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/10thousand.png 780w, https://theeventhorizons.com/wp-content/uploads/2023/07/10thousand-300x296.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/07/10thousand-768x758.png 768w" sizes="(max-width: 780px) 100vw, 780px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1e7faa42 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1e7faa42" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-181b07e3" data-id="181b07e3" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4fc26988 elementor-widget elementor-widget-heading" data-id="4fc26988" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Figure 2: The army has arrived and launch first 10 thousands shots.</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2e6e219 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2e6e219" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-13fe9ee0" data-id="13fe9ee0" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3cdf559a elementor-widget elementor-widget-image" data-id="3cdf559a" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="776" height="772" src="https://theeventhorizons.com/wp-content/uploads/2023/07/100thousand.png" class="attachment-large size-large wp-image-297" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/100thousand.png 776w, https://theeventhorizons.com/wp-content/uploads/2023/07/100thousand-300x298.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/07/100thousand-150x150.png 150w, https://theeventhorizons.com/wp-content/uploads/2023/07/100thousand-768x764.png 768w" sizes="(max-width: 776px) 100vw, 776px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-59704ecf" data-id="59704ecf" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5a60362b elementor-widget elementor-widget-image" data-id="5a60362b" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="776" height="772" src="https://theeventhorizons.com/wp-content/uploads/2023/07/1million.png" class="attachment-large size-large wp-image-298" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/1million.png 776w, https://theeventhorizons.com/wp-content/uploads/2023/07/1million-300x298.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/07/1million-150x150.png 150w, https://theeventhorizons.com/wp-content/uploads/2023/07/1million-768x764.png 768w" sizes="(max-width: 776px) 100vw, 776px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4078274a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4078274a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-66025faa" data-id="66025faa" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2234785a elementor-widget elementor-widget-heading" data-id="2234785a" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Figure 3: From left to right, 100 thousands and 1 million shots.
</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-41cfce0a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="41cfce0a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6f3e0714" data-id="6f3e0714" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-26628308 elementor-widget elementor-widget-text-editor" data-id="26628308" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Similarly, one can use this method to estimate the area of the Millennium Falcon, a famous spaceship from the Star Wars series that measures 35 meters in length and 25 meters in width.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-260e035b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="260e035b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-1eee9d9b" data-id="1eee9d9b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4dc1801e elementor-widget elementor-widget-image" data-id="4dc1801e" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="570" src="https://theeventhorizons.com/wp-content/uploads/2023/07/falcon4-1024x570.png" class="attachment-large size-large wp-image-300" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/falcon4-1024x570.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/07/falcon4-300x167.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/07/falcon4-768x427.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/07/falcon4.png 1298w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-5fe535f9" data-id="5fe535f9" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-131714db elementor-widget elementor-widget-image" data-id="131714db" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="890" height="878" src="https://theeventhorizons.com/wp-content/uploads/2023/07/falcon3.png" class="attachment-large size-large wp-image-299" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/falcon3.png 890w, https://theeventhorizons.com/wp-content/uploads/2023/07/falcon3-300x296.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/07/falcon3-768x758.png 768w" sizes="(max-width: 890px) 100vw, 890px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2291697a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2291697a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a109d0f" data-id="a109d0f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2f93c080 elementor-widget elementor-widget-heading" data-id="2f93c080" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Figure 4: Here is the real spaceship photo and plan.</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-7169396e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="7169396e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-13d6ab7e" data-id="13d6ab7e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-779aaf8e elementor-widget elementor-widget-text-editor" data-id="779aaf8e" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The methodology will almost be the same. We use a computer simulation where stormtroopers randomly shoot at the surface of the spaceship. Each point where a &#8220;stormtrooper&#8221; hits the surface is recorded and the total area is then calculated by counting the total number of points and comparing it to the total size of the spaceship&#8217;s surface. This method is very effective because it takes into account the irregular shapes of the spaceship&#8217;s surface, which could make it difficult for a more traditional area estimation. But, unfortunately, this will lead to the total destruction of the spaceship!</p><p>1. Put the army of stormtroopers in a closed and huge shooting range.<br />2. Draw a 35m x 25m rectangle to represent the surface of the back wall and stick the millennium falcon on it.<br />3. Order the stormtroopers to fire.<br />4. Count the number of shots that strike the surface of the Millennium Falcon.<br />5. Use the proportion of shots that strike the surface of the Millennium Falcon to the total number of shots to estimate the area of the Millennium Falcon. Specifically, you can use the following formula:<br />\begin{equation*}<br />\text{Area of Millennium Falcon}=35\times 25\frac{\text{Number of shots that strike the Millennium Falcon}}{\text{Total number of shots}}.<br />\end{equation*}<br />6. Repeat steps several times or increase the number of stormtroopers to get a more precise estimate of the area of the Millennium Falcon.<br /><br /></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6379c1e1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6379c1e1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-fe97f33" data-id="fe97f33" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5ebab9ef elementor-widget elementor-widget-image" data-id="5ebab9ef" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="628" height="844" src="https://theeventhorizons.com/wp-content/uploads/2023/07/10thousandF.png" class="attachment-large size-large wp-image-301" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/10thousandF.png 628w, https://theeventhorizons.com/wp-content/uploads/2023/07/10thousandF-223x300.png 223w" sizes="(max-width: 628px) 100vw, 628px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-29884a17" data-id="29884a17" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-25269628 elementor-widget elementor-widget-image" data-id="25269628" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="628" height="843" src="https://theeventhorizons.com/wp-content/uploads/2023/07/100thousandF.png" class="attachment-large size-large wp-image-302" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/100thousandF.png 628w, https://theeventhorizons.com/wp-content/uploads/2023/07/100thousandF-223x300.png 223w" sizes="(max-width: 628px) 100vw, 628px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-432eb565" data-id="432eb565" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-311ddf65 elementor-widget elementor-widget-image" data-id="311ddf65" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="624" height="839" src="https://theeventhorizons.com/wp-content/uploads/2023/07/1millionF.png" class="attachment-large size-large wp-image-303" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/1millionF.png 624w, https://theeventhorizons.com/wp-content/uploads/2023/07/1millionF-223x300.png 223w" sizes="(max-width: 624px) 100vw, 624px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5be2b59c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5be2b59c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4c46138a" data-id="4c46138a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1fc96b02 elementor-widget elementor-widget-heading" data-id="1fc96b02" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Figure 5: From left to right, with 10 thousands, 100 thousands and 1 million shots.</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6fd9af84 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6fd9af84" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-523c3a0f" data-id="523c3a0f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-9ff051d elementor-widget elementor-widget-text-editor" data-id="9ff051d" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The accuracy of the Monte Carlo method for estimating areas depends on the number of randomly generated shots. The more impacts you generate, the more accurate your estimate will be. However, it is important to note that even if you generate a large number of impacts, you will never be able to calculate the exact value of the area you consider. For example, with 1 million stormtroopers, you can get an estimate of π with an accuracy of about 2 decimal places. For the millenium falcon area, we get approximately 400.855m<span style="font-size: 14px; color: var( --e-global-color-text );">².</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-7ebb5562 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="7ebb5562" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-33c6bb0e" data-id="33c6bb0e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-61758fe0 elementor-widget elementor-widget-text-editor" data-id="61758fe0" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<h2 data-elementor-setting-key="title" data-pen-placeholder="Écrivez ici..."> </h2><h2 class="elementor-heading-title elementor-size-large elementor-inline-editing pen" style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 29px; font-style: normal; color: #414141;" data-elementor-setting-key="title" data-pen-placeholder="Écrivez ici...">The importance of lack of precision</h2><p>The Monte Carlo method relies heavily on the generation of random numbers to simulate random events. This is where the lack of precision of the stormtroopers comes in. In the previous example, the stormtroopers&#8217; lack of precision in shooting represents the randomness required for the Monte Carlo method to work effectively (here, they shoot perfectly bad). Without this randomness, the method would not be able to accurately approximate results.</p><p>Let me explain this concept by introducing Han Solo, a highly skilled marksman, into the simulation. The distribution of shots fired would no longer be uniformly random, but rather, it would be weighted towards the areas where Han Solo aims. More precisely, if we estimate its precision rate as we did with the stormtroopers, we observe that he shoots almost perfectly well.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-771ab516 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="771ab516" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-30ebf619" data-id="30ebf619" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6c6c2e4c elementor-widget elementor-widget-image" data-id="6c6c2e4c" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="704" height="596" src="https://theeventhorizons.com/wp-content/uploads/2023/07/han.png" class="attachment-large size-large wp-image-304" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/han.png 704w, https://theeventhorizons.com/wp-content/uploads/2023/07/han-300x254.png 300w" sizes="(max-width: 704px) 100vw, 704px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-455c8713" data-id="455c8713" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1fd32517 elementor-widget elementor-widget-image" data-id="1fd32517" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="772" height="774" src="https://theeventhorizons.com/wp-content/uploads/2023/07/hanshot.png" class="attachment-large size-large wp-image-305" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/hanshot.png 772w, https://theeventhorizons.com/wp-content/uploads/2023/07/hanshot-300x300.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/07/hanshot-150x150.png 150w, https://theeventhorizons.com/wp-content/uploads/2023/07/hanshot-768x770.png 768w" sizes="(max-width: 772px) 100vw, 772px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-52fea7e7 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="52fea7e7" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-828e4ad" data-id="828e4ad" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-78e7d569 elementor-widget elementor-widget-heading" data-id="78e7d569" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Figure 6: Han solo firing one million shots.</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-430b8307 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="430b8307" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-55b6b538" data-id="55b6b538" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-30585e3d elementor-widget elementor-widget-text-editor" data-id="30585e3d" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Maybe because Chewbacca is bothering him or because he has dust in his eye, and this is why its precision rate is not 100 percent (he says). Now, how good is he at estimating π? By using the same formula <br />\begin{equation*}<br />\pi=\frac{\text{Number of impact in the circle}}{\text{Total number of impact}},<br />\end{equation*}<br />it seems that π is more or less equal to 4 with 1 million of shots.</p><p>This highlights an important consideration when using the Monte Carlo method &#8211; the accuracy of the results depends heavily on the random nature of the simulation. Introducing biases or non-uniform distributions can greatly impact the effectiveness of the method. Roughly speaking, it means that to be accurate, the random numbers generated must be truly random and not follow a predictable pattern or being precise.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-72e381c9 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="72e381c9" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7bfb428e" data-id="7bfb428e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-47e1b033 elementor-widget elementor-widget-text-editor" data-id="47e1b033" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<h2 data-elementor-setting-key="title" data-pen-placeholder="Écrivez ici..."> </h2><h2 class="elementor-heading-title elementor-size-large elementor-inline-editing pen" style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 29px; font-style: normal; color: #414141;" data-elementor-setting-key="title" data-pen-placeholder="Écrivez ici...">Generation of random numbers</h2><p>Generating random numbers is a fundamental task in many fields, ranging from computer science to cryptography and simulations. While we often think of randomness as something that occurs naturally, such as the roll of a die or the flip of a coin, many random numbers used in computing are actually generated through sophisticated algorithms or physical phenomena.</p><p>One widely used method is the pseudo-random number generator, which produces a sequence of numbers that appears random, but is actually calculated deterministically from an initial &#8220;seed&#8221; value. Although not truly random, pseudo-random generators are highly efficient and unpredictable enough to meet most practical needs. However, they are subject to periodicities and correlations in the sequences produced, which can pose security risks in certain applications. By using the Star Wars analogy, it consists in taking a perfect imperial sniper which follows a shooting pattern; you only have to order the first target to hit and each shoot will be a defined function of the previous one.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-43645b58 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="43645b58" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-2c859974" data-id="2c859974" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2ee93cce elementor-widget elementor-widget-image" data-id="2ee93cce" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="743" src="https://theeventhorizons.com/wp-content/uploads/2023/07/sniper-1024x743.png" class="attachment-large size-large wp-image-306" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/sniper-1024x743.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/07/sniper-300x218.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/07/sniper-768x557.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/07/sniper-1536x1114.png 1536w, https://theeventhorizons.com/wp-content/uploads/2023/07/sniper-2048x1486.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-376725da" data-id="376725da" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-491518e9 elementor-widget elementor-widget-image" data-id="491518e9" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="736" height="734" src="https://theeventhorizons.com/wp-content/uploads/2023/07/plan.png" class="attachment-large size-large wp-image-307" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/plan.png 736w, https://theeventhorizons.com/wp-content/uploads/2023/07/plan-300x300.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/07/plan-150x150.png 150w" sizes="(max-width: 736px) 100vw, 736px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-36d18908 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="36d18908" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-70763668" data-id="70763668" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-246c8988 elementor-widget elementor-widget-heading" data-id="246c8988" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Figure 7: An imperial sniper with a part of his shooting pattern.</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-778885b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="778885b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-15ffd351" data-id="15ffd351" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-58fbbd07 elementor-widget elementor-widget-text-editor" data-id="58fbbd07" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Now, imagine that you are a rebel spy and you want to send a secret message to your base. For this, you need a random number that will serve as an encryption key. You could use a pseudorandom number generator to create one, but there is always a risk that the Empire has been able to predict the sequence of numbers you are going to use. To make sure that your encryption key is truly random, you could use a quantum number generator.</p><p>In this example, the pseudorandom number generator would be like an Empire soldier who follows a predefined and easily predictable attack plan as the imperial sniper. On the other hand, the quantum number generator would be like a scientist rebel who exploits the unique properties of light sabers to find unpredictable solutions to each situation. As quantum numbers are generated from unpredictable quantum phenomena such as polarization, phase, or frequency of photons, the Empire cannot predict the sequence of numbers you will use, making your secret message much safer. These generators produce numbers that are truly random and impossible to replicate. While still relatively new and expensive, quantum random number generators hold great promise for applications requiring the highest levels of security and unpredictability.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-62ea9fd4 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="62ea9fd4" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4d189414" data-id="4d189414" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3f70524a elementor-widget elementor-widget-text-editor" data-id="3f70524a" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<h2 data-elementor-setting-key="title" data-pen-placeholder="Écrivez ici..."> </h2><h2 class="elementor-heading-title elementor-size-large elementor-inline-editing pen" style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 29px; font-style: normal; color: #414141;" data-elementor-setting-key="title" data-pen-placeholder="Écrivez ici...">The Versatility and Power of the Monte Carlo Method</h2><p>To sum up, the Monte Carlo method is a versatile and powerful mathematical technique that allows for the approximation of complex results that are otherwise difficult to calculate precisely. The use of random or pseudo-random numbers to simulate random events and determine probabilistic outcomes makes it an effective tool for various applications, as demonstrated by the simulations of stormtroopers&#8217; shootings. The method&#8217;s applications extend beyond estimating mathematical constants and areas of irregular shapes, to include predicting the outcome of elections, simulating population growth, and estimating the probability of rolling a certain number on a dice game.</p><p> The Monte Carlo method is a valuable tool for numerous fields, such as physics, engineering, and finance, making it an essential component of the mathematician and statistician&#8217;s toolkit.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-36bf0986 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="36bf0986" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6e3a3ed8" data-id="6e3a3ed8" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4b171ca elementor-widget elementor-widget-image" data-id="4b171ca" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="547" src="https://theeventhorizons.com/wp-content/uploads/2023/07/yoda2-1024x547.png" class="attachment-large size-large wp-image-308" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/yoda2-1024x547.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/07/yoda2-300x160.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/07/yoda2-768x411.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/07/yoda2.png 1169w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3da7bcb2 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3da7bcb2" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-33085cd" data-id="33085cd" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-67842ff6 elementor-widget elementor-widget-spacer" data-id="67842ff6" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1ff8cd9c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1ff8cd9c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6113ee0e" data-id="6113ee0e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2ec3a36b elementor-widget elementor-widget-heading" data-id="2ec3a36b" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">Bibliography</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3d0aa54 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3d0aa54" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-50101f36" data-id="50101f36" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-74974dae elementor-widget elementor-widget-text-editor" data-id="74974dae" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>M. Kalos, P. Whitlock, Monte Carlo Methods, 2008.</p><p>D. P. Kroese, T. Taimre, Z.I. Botev, Handbook of Monte Carlo Methods, 2011.</p><p>D. P. Kroese, T. Brereton, T. Taimre, Z.I. Botev, Why the Monte Carlo method is so important today, 2014.</p><p>S. Weinzierl, Introduction to Monte Carlo methods, 2000.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-a1992de elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="a1992de" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-fa0df85" data-id="fa0df85" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap">
							</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-36cc0f5 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="36cc0f5" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ec9ee8f" data-id="ec9ee8f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7aac517 elementor-widget elementor-widget-spacer" data-id="7aac517" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-e69b643 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="e69b643" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-dabe4bb" data-id="dabe4bb" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5bb575c elementor-view-default elementor-position-block-start elementor-mobile-position-block-start elementor-widget elementor-widget-icon-box" data-id="5bb575c" data-element_type="widget" data-e-type="widget" data-widget_type="icon-box.default">
				<div class="elementor-widget-container">
							<div class="elementor-icon-box-wrapper">

						<div class="elementor-icon-box-icon">
				<span  class="elementor-icon">
				<i aria-hidden="true" class="fab fa-python"></i>				</span>
			</div>
			
			
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6161196 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6161196" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5cfd073" data-id="5cfd073" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-f6ac239 elementor-widget elementor-widget-toggle" data-id="f6ac239" data-element_type="widget" data-e-type="widget" data-widget_type="toggle.default">
				<div class="elementor-widget-container">
							<div class="elementor-toggle">
							<div class="elementor-toggle-item">
					<div id="elementor-tab-title-2581" class="elementor-tab-title" data-tab="1" role="button" aria-controls="elementor-tab-content-2581" aria-expanded="false">
												<span class="elementor-toggle-icon elementor-toggle-icon-left" aria-hidden="true">
															<span class="elementor-toggle-icon-closed"><i class="fas fa-caret-right"></i></span>
								<span class="elementor-toggle-icon-opened"><i class="elementor-toggle-icon-opened fas fa-caret-up"></i></span>
													</span>
												<a class="elementor-toggle-title" tabindex="0">Estimation of pi by Stormtroopers</a>
					</div>

					<div id="elementor-tab-content-2581" class="elementor-tab-content elementor-clearfix" data-tab="1" role="region" aria-labelledby="elementor-tab-title-2581">
<pre class="wp-block-code has-black-background-color has-background"><code class="language-python line-numbers" lang="python">
import random
import matplotlib.pyplot as plt

def estimate_pi(n):
    num_points_circle = 0
    num_points_total = 0
    circle_x, circle_y = [], []
    square_x, square_y = [], []

    # Loop for generating random points and estimating π
    for _ in range(n):
        x = random.uniform(-1, 1)
        y = random.uniform(-1, 1)
        distance = x**2 + y**2
        if distance <= 1:
            num_points_circle += 1
            circle_x.append(x)
            circle_y.append(y)
        else:
            square_x.append(x)
            square_y.append(y)
        num_points_total += 1

    # Plotting the points on a graph
    plt.figure(figsize=(5, 5))
    plt.scatter(circle_x, circle_y, color='blue', s=0.1)
    plt.scatter(square_x, square_y, color='red', s=0.1)
    plt.xlim(-1.1, 1.1)
    plt.ylim(-1.1, 1.1)
    plt.title("Estimation of π using the Monte Carlo method\nN = {}".format(n))
    plt.show()

    # Calculating and returning the estimated value of π
    return 4 * num_points_circle / num_points_total

print(estimate_pi(10000))


</code></pre>
</div>
				</div>
							<div class="elementor-toggle-item">
					<div id="elementor-tab-title-2582" class="elementor-tab-title" data-tab="2" role="button" aria-controls="elementor-tab-content-2582" aria-expanded="false">
												<span class="elementor-toggle-icon elementor-toggle-icon-left" aria-hidden="true">
															<span class="elementor-toggle-icon-closed"><i class="fas fa-caret-right"></i></span>
								<span class="elementor-toggle-icon-opened"><i class="elementor-toggle-icon-opened fas fa-caret-up"></i></span>
													</span>
												<a class="elementor-toggle-title" tabindex="0">Estimation of the Millenium Falcon</a>
					</div>

					<div id="elementor-tab-content-2582" class="elementor-tab-content elementor-clearfix" data-tab="2" role="region" aria-labelledby="elementor-tab-title-2582">
<pre class="wp-block-code has-black-background-color has-background"><code class="language-python line-numbers" lang="python">

import cv2
import numpy as np
import random

# Load the image and convert it to grayscale
img = cv2.imread("/Users/.../falcon2.png", cv2.IMREAD_GRAYSCALE)

# Apply thresholding to get a binary image
ret, thresh = cv2.threshold(img, 127, 255, cv2.THRESH_BINARY)

# Invert the colors so that black becomes white and vice versa
thresh = cv2.bitwise_not(thresh)

# Find contours in the image
contours, hierarchy = cv2.findContours(thresh, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)

# Create a black image to draw the contours
contour_img = np.zeros((img.shape[0], img.shape[1], 3), np.uint8)

# Draw the contours in white on the black image
cv2.drawContours(contour_img, contours, -1, (255, 255, 255), 2)

# Get the size of the image in pixels
height, width = img.shape[:2]

# Retrieve the size of the image in pixels
size = img.shape[:2]

# Define the real dimensions of the Millennium Falcon
real_length = 35  # in meters
real_width = 25   # in meters

# Define the resolution of the image in pixels/meter
resolution = 144

# Calculate the total number of pixels of the ship's surface
total_surface_pixels = int(real_length * real_width * resolution**2)

# Number of random points to generate for the estimation
n = 1000000

# Number of points inside the black figure
num_points_inside = 0

# Generate random points in the image and count the number of points inside the black figure
for i in range(n):
    # Generate a random point in the image
    x = random.randint(0, width-1)
    y = random.randint(0, height-1)

    # Check if the point is inside the black figure
    if cv2.pointPolygonTest(contours[0], (x, y), False) == 1:
        num_points_inside += 1
        # Draw the point in blue
        cv2.circle(contour_img, (x, y), 1, (255, 0, 0), -1)
    else:
        # Draw the point in red
        cv2.circle(contour_img, (x, y), 1, (0, 0, 255), -1)

# Estimation of the area of the black figure using the Monte Carlo method
estimated_area = (num_points_inside / n) * (width * height)

# Display the image with points in blue and red
cv2.imshow('Image with points', contour_img)

# Wait for the user to press a key to close the window
cv2.waitKey(0)
cv2.destroyAllWindows()

# Display the estimated area of the black figure
print("Estimated area of the black figure:", estimated_area)


</code></pre>
</div>
				</div>
							<div class="elementor-toggle-item">
					<div id="elementor-tab-title-2583" class="elementor-tab-title" data-tab="3" role="button" aria-controls="elementor-tab-content-2583" aria-expanded="false">
												<span class="elementor-toggle-icon elementor-toggle-icon-left" aria-hidden="true">
															<span class="elementor-toggle-icon-closed"><i class="fas fa-caret-right"></i></span>
								<span class="elementor-toggle-icon-opened"><i class="elementor-toggle-icon-opened fas fa-caret-up"></i></span>
													</span>
												<a class="elementor-toggle-title" tabindex="0">Estimation of pi by Han Solo</a>
					</div>

					<div id="elementor-tab-content-2583" class="elementor-tab-content elementor-clearfix" data-tab="3" role="region" aria-labelledby="elementor-tab-title-2583">
<pre class="wp-block-code has-black-background-color has-background"><code class="language-python line-numbers" lang="python">


import random
import math
import matplotlib.pyplot as plt

num_shots = 1000000
circle_hits = 0
square_hits = 0
circle_x = []
circle_y = []
square_x = []
square_y = []

for i in range(num_shots):
    x = random.gauss(0, 0.05) # shots centered at the circle's center
    y = random.gauss(0, 0.05)
    distance = math.sqrt(x**2 + y**2)
    if distance <= 1:
        circle_hits += 1
        circle_x.append(x)
        circle_y.append(y)
    else:
        square_x.append(x)
        square_y.append(y)
    square_hits += 1
    if random.random() < 0.1: # 10% chance of shooting in the circle
        if distance <= 1:
            circle_hits -= 1
            circle_x.pop()
            circle_y.pop()
        else:
            circle_hits += 1
            circle_x.append(x)
            circle_y.append(y)
        square_hits -= 1

pi_estimation = 4 * circle_hits / square_hits
print("Estimation of pi:", pi_estimation)

fig, ax = plt.subplots(figsize=(6, 6))
ax.set_xlim([-1.2, 1.2])
ax.set_ylim([-1.2, 1.2])
ax.set_aspect('equal')
ax.scatter(square_x, square_y, color='red', s=1, label='Outside the circle')
ax.scatter(circle_x, circle_y, color='blue', s=1, label='Inside the circle')
circle = plt.Circle((0, 0), 1, color='black', fill=False)
ax.add_artist(circle)
ax.legend()
plt.show()



</code></pre>
</div>
				</div>
								</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-c586581 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="c586581" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6df766d" data-id="6df766d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-8e524f3 elementor-widget elementor-widget-heading" data-id="8e524f3" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">To find the Millenium Falcon area, we used the following image.</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-397bbf3 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="397bbf3" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c501b45" data-id="c501b45" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-f0f961a elementor-widget elementor-widget-image" data-id="f0f961a" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="300" height="296" src="https://theeventhorizons.com/wp-content/uploads/2023/07/falcon2-300x296.png" class="attachment-medium size-medium wp-image-1994" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/falcon2-300x296.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/07/falcon2-768x758.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/07/falcon2.png 890w" sizes="(max-width: 300px) 100vw, 300px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				</div>
		<p>The article <a href="https://theeventhorizons.com/stormtroopers/">Stormtroopers Are Bad at Shooting? Yes.</a> first appeared on <a href="https://theeventhorizons.com">The Event Horizons</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theeventhorizons.com/stormtroopers/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		<enclosure url="https://theeventhorizons.com/wp-content/uploads/2023/07/StormvidEN.mp4" length="42453871" type="video/mp4" />

			</item>
		<item>
		<title>Toss a Coin to Your Witcher</title>
		<link>https://theeventhorizons.com/toss-a-coin/</link>
					<comments>https://theeventhorizons.com/toss-a-coin/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 23 Jul 2023 16:32:06 +0000</pubDate>
				<category><![CDATA[Probabilities/Statistics]]></category>
		<guid isPermaLink="false">https://theeventhorizons.com/?p=639</guid>

					<description><![CDATA[<p>In the heart of the mysterious lands of The Witcher universe, where swords clash and spells unleash, a valuable lesson emerges from the depths of probability and destiny. Inspired by a chance encounter in the mists of a casino bar, this lesson invites us to delve into the intricacies of the law of large numbers, while the player's ruin looms like a threatening shadow. Prepare to be transported into an enchanting narrative, where dice are cast, and games of chance play their captivating symphony.</p>
<p>The article <a href="https://theeventhorizons.com/toss-a-coin/">Toss a Coin to Your Witcher</a> first appeared on <a href="https://theeventhorizons.com">The Event Horizons</a>.</p>
]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="639" class="elementor elementor-639">
						<section class="elementor-section elementor-top-section elementor-element elementor-element-32b0bd1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="32b0bd1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-aa56939" data-id="aa56939" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-874194e elementor-align-center elementor-widget elementor-widget-button" data-id="874194e" data-element_type="widget" data-e-type="widget" data-widget_type="button.default">
				<div class="elementor-widget-container">
									<div class="elementor-button-wrapper">
					<a class="elementor-button elementor-button-link elementor-size-sm" href="">
						<span class="elementor-button-content-wrapper">
									<span class="elementor-button-text">	Probabilities/Statistics</span>
					</span>
					</a>
				</div>
								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-591a8f20 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="591a8f20" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1fd73a3d" data-id="1fd73a3d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-e8780a8 elementor-widget elementor-widget-heading" data-id="e8780a8" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-xxl">Toss a Coin to Your Witcher</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-d4710c9 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="d4710c9" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f204af0" data-id="f204af0" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3ddcc10 elementor-widget elementor-widget-heading" data-id="3ddcc10" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">By Jordan Moles on July 25, 2023</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6bca5bb elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6bca5bb" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-498f3c2" data-id="498f3c2" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-d266510 elementor-widget elementor-widget-image" data-id="d266510" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="768" src="https://theeventhorizons.com/wp-content/uploads/2023/07/Toss-a-coin-1-1-1024x768.jpg" class="attachment-large size-large wp-image-652" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/Toss-a-coin-1-1-1024x768.jpg 1024w, https://theeventhorizons.com/wp-content/uploads/2023/07/Toss-a-coin-1-1-300x225.jpg 300w, https://theeventhorizons.com/wp-content/uploads/2023/07/Toss-a-coin-1-1-768x576.jpg 768w, https://theeventhorizons.com/wp-content/uploads/2023/07/Toss-a-coin-1-1-1536x1152.jpg 1536w, https://theeventhorizons.com/wp-content/uploads/2023/07/Toss-a-coin-1-1-2048x1536.jpg 2048w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-997ed7d elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="997ed7d" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4e4bea6" data-id="4e4bea6" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-bffa82e elementor-widget elementor-widget-heading" data-id="bffa82e" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Credit: Netflix</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3cdc3c1b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3cdc3c1b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c578d2b" data-id="c578d2b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7eeadfa4 elementor-widget elementor-widget-text-editor" data-id="7eeadfa4" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="text-align: center;"><strong>In the heart of the mysterious lands of The Witcher universe, where swords clash and spells unleash, a valuable lesson emerges from the depths of probability and destiny. Inspired by a chance encounter in the mists of a casino bar, this lesson invites us to delve into the intricacies of the law of large numbers, while the player&#8217;s ruin looms like a threatening shadow. Prepare to be transported into an enchanting narrative, where dice are cast, and games of chance play their captivating symphony.</strong></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-65015f7f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="65015f7f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-50d73057" data-id="50d73057" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5b8b0a58 elementor-widget elementor-widget-text-editor" data-id="5b8b0a58" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<h2 data-elementor-setting-key="title" data-pen-placeholder="Écrivez ici..."></h2>
&nbsp;
<h2 class="elementor-heading-title elementor-size-large elementor-inline-editing pen" style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 29px; font-style: normal; color: #414141;" data-elementor-setting-key="title" data-pen-placeholder="Écrivez ici...">The Stranger and the Challenge of Destiny</h2>
On a tumultuous evening, a solitary witcher named Geralt of Rivia roams the dark streets of a city in search of respite. The echoes of laughter and enchanting melodies guide him to a mysterious bar, the Casino of Destiny. Driven by an irresistible curiosity, he crosses the ornate doors and enters a world where fate is sealed by a simple roll of the dice. Among the lively crowd in the bar, the witcher is drawn to an enigmatic stranger. With a mischievous twinkle in his eye, the stranger takes out a sparkling coin from his satchel. His sly smile betrays a clear intention: he wants to challenge the witcher to a little table game. Intrigued, Geralt accepts the invitation, preparing to face destiny itself.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-62d8f1d7 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="62d8f1d7" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-64af4019" data-id="64af4019" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2de3eea elementor-widget elementor-widget-image" data-id="2de3eea" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="648" height="648" src="https://theeventhorizons.com/wp-content/uploads/2023/07/hood.jpg" class="attachment-large size-large wp-image-381" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/hood.jpg 648w, https://theeventhorizons.com/wp-content/uploads/2023/07/hood-300x300.jpg 300w, https://theeventhorizons.com/wp-content/uploads/2023/07/hood-150x150.jpg 150w, https://theeventhorizons.com/wp-content/uploads/2023/07/hood-600x600.jpg 600w" sizes="(max-width: 648px) 100vw, 648px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2d8d9857 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2d8d9857" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-37b08fce" data-id="37b08fce" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-64f58e5 elementor-widget elementor-widget-heading" data-id="64f58e5" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Credit: Netflix</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-7bfd773e elementor-widget elementor-widget-text-editor" data-id="7bfd773e" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The stranger, with an enigmatic voice, lays out the rules of the game. Both of them will wager their respective fortunes in the game, assuming Geralt and the stranger both start with 1000 gold coins. In each round, destiny oscillates between the players, thus determining their fortune on a coin toss. Each victory grants a gain of 1, while each defeat comes with an equivalent loss. This bewitching dance continues until one of the players is irreversibly ruined, condemned to face the consequences of their choices.</p><p>Let us now translate this situation into probabilistic terms, where &#8220;destiny&#8221; is represented by a probability p, a value between 0 and 1. A sequence of independent and identically distributed random variables, symbolized by \(X_i\) where i is the i-th round, plays a crucial role in the course of the game. Each variable \(X_i\) takes the value 1 with a probability p, indicating a victory, and the value -1 with a probability 1-p, indicating a defeat. Mathematically, this is denoted as follows:</p><p>\begin{align*}<br />\mathbb{P}(X_i=1)=p,\quad \mathbb{P}(X_i=-1)=1-p.<br />\end{align*}<br />We also note the Witcher&#8217;s fortune in round n, which is equal to the sum of his initial fortune and the results of his gains and losses in each round:<br />\begin{align*}<br />F_n = 1000 + \sum_{i=1}^n X_i.<br />\end{align*}<br />Simultaneously, the fortune of his opponent, intimately linked to his own, evolves through similar mechanisms, but with a fortune in each round of 2000-\(F_n\).</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2d01d986 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2d01d986" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-61717551" data-id="61717551" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4784dee elementor-widget elementor-widget-text-editor" data-id="4784dee" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<h2 data-elementor-setting-key="title" data-pen-placeholder="Écrivez ici..."> </h2><p> </p><h2 class="elementor-heading-title elementor-size-large elementor-inline-editing pen" style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 29px; font-style: normal; color: #414141;" data-elementor-setting-key="title" data-pen-placeholder="Écrivez ici...">Probabilities Veiled: Geralt&#8217;s Quest Against Rigged Gambling</h2><p>The rules of this game are deceitful, and Geralt senses that something is amiss. He suspects the old man of trying to cheat him. Immersed in an enigmatic situation, Geralt finds himself facing a captivating coin game. The possible outcomes are simple: Heads or Tails, with an equal probability of <span style="font-size: 14px; color: var( --e-global-color-text );">50/50 if the coin is fair. However, he also knows that the coin could be biased, which worries him, with probabilities taking different values, such as 0, \(1/\pi\), or 1/100. The mystery deepens as the true probability remains unknown.</span></p><p>To unravel this mystery, Geralt mobilizes all his skills and available resources, even if it means losing money. He focuses on the first six coin tosses, which resulted in Heads, Tails, Heads, Tails, Tails, Tails (HTHTTT). At first glance, these results seem to indicate an imbalance. However, Geralt undertakes a thorough analysis of the probabilities associated with each possible configuration. He recalls that an old friend, Jacques Bernoulli, had presented him with a similar challenge. It was theoretically a random experiment with two possible outcomes, success or failure, each with a certain probability—exactly what he is facing now.</p><p> Jacques had told him that if the coin were fair, the probability of getting Heads first is 1/2, just like getting Tails first. By examining the different possible combinations (HT, HH, TT, TH), he realizes that the probability of getting Heads followed by Tails is 1/4, just like for the other combinations. This is because there are four equiprobable possibilities with a fair coin. Geralt remembers the reasoning well and becomes aware of the importance of details in this quest. He also realizes that, for three tosses, there are eight possible configurations. Among these, there is one chance in eight of getting Heads, Tails, Heads (HTH). Geralt quickly understand the extent of the calculations involved in this analysis. The more tosses there are, the lower the probability of obtaining a specific configuration becomes. For example, the probability of getting the configuration Heads, Tails, Heads, Tails, Tails, Tails (HTHTTT) is \(1/2^6\), a relatively low probability.</p><p>However, Geralt&#8217;s goal is not limited to determining specific configurations. His true interest lies in the proportion of Heads and Tails present in each configuration. In these terms, the sorcerer understands that he is facing a succession of n independent unbiased Bernoulli trials, where the random variable \(S_n\), which counts the number of successes, follows a binomial distribution. The probability of having k &#8220;Heads&#8221; in the sum is given by:</p><p>\begin{equation*}<br />\mathbb{P}(S_n=k)=\binom{n}{k}\frac{1}{2^n}.<br />\end{equation*}</p><p>We recall the following equality</p><p>$$\binom{n}{k}=\frac{n\times(n-1)\times\cdots\times 2\times 1}{(k\times(k-1)\times\cdots\times 2\times 1)(n-k)\times(n-k-1)\times \cdots\times 2\times 1}.$$</p><p>He anticipates that if the coin is tossed a very large number of times, the frequency of Heads or Tails will be revealed with great precision. His intuition proves correct, and mathematicians call this the &#8220;law of large numbers.&#8221;</p><p>In summary, the law of large numbers states that a fair coin, tossed an infinite number of times, will yield Heads and Tails with an equivalent frequency. Similarly, if the coin is biased, the Witcher will observe a proportion of Heads or Tails different from 50/50.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-58e924e3 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="58e924e3" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-1f8ff134" data-id="1f8ff134" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4399160 elementor-widget elementor-widget-image" data-id="4399160" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="640" height="480" src="https://theeventhorizons.com/wp-content/uploads/2023/07/Loi_10.png" class="attachment-large size-large wp-image-382" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/Loi_10.png 640w, https://theeventhorizons.com/wp-content/uploads/2023/07/Loi_10-300x225.png 300w" sizes="(max-width: 640px) 100vw, 640px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-6889e141" data-id="6889e141" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-be922aa elementor-widget elementor-widget-image" data-id="be922aa" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="640" height="480" src="https://theeventhorizons.com/wp-content/uploads/2023/07/Loi_100.png" class="attachment-large size-large wp-image-383" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/Loi_100.png 640w, https://theeventhorizons.com/wp-content/uploads/2023/07/Loi_100-300x225.png 300w" sizes="(max-width: 640px) 100vw, 640px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-a7576be" data-id="a7576be" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-eea69d3 elementor-widget elementor-widget-image" data-id="eea69d3" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="640" height="480" src="https://theeventhorizons.com/wp-content/uploads/2023/07/Loi_1000.png" class="attachment-large size-large wp-image-384" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/Loi_1000.png 640w, https://theeventhorizons.com/wp-content/uploads/2023/07/Loi_1000-300x225.png 300w" sizes="(max-width: 640px) 100vw, 640px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6a3bf8db elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6a3bf8db" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-a0db14" data-id="a0db14" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7f6c747a elementor-widget elementor-widget-image" data-id="7f6c747a" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="640" height="480" src="https://theeventhorizons.com/wp-content/uploads/2023/07/Loi_10000.png" class="attachment-large size-large wp-image-385" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/Loi_10000.png 640w, https://theeventhorizons.com/wp-content/uploads/2023/07/Loi_10000-300x225.png 300w" sizes="(max-width: 640px) 100vw, 640px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-4b91986f" data-id="4b91986f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-217d2378 elementor-widget elementor-widget-image" data-id="217d2378" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="640" height="480" src="https://theeventhorizons.com/wp-content/uploads/2023/07/Loi_100000.png" class="attachment-large size-large wp-image-386" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/Loi_100000.png 640w, https://theeventhorizons.com/wp-content/uploads/2023/07/Loi_100000-300x225.png 300w" sizes="(max-width: 640px) 100vw, 640px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-13806ec3" data-id="13806ec3" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-673ac057 elementor-widget elementor-widget-image" data-id="673ac057" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="640" height="480" src="https://theeventhorizons.com/wp-content/uploads/2023/07/Loi_100000-biased.png" class="attachment-large size-large wp-image-387" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/Loi_100000-biased.png 640w, https://theeventhorizons.com/wp-content/uploads/2023/07/Loi_100000-biased-300x225.png 300w" sizes="(max-width: 640px) 100vw, 640px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2c0c9711 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2c0c9711" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-785ff20" data-id="785ff20" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-576c0a51 elementor-widget elementor-widget-heading" data-id="576c0a51" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Simulation of coin tosses. The figures illustrate how the average of Heads tends to approach the theoretical expectation as the number of coin tosses increases (10, 100, 1000, 10000, and 100000), even with a biased coin. Thus, we can clearly observe that starting from 10000 tosses, the blue curve almost coincides with the theoretical average.</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-26b52ed0 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="26b52ed0" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-429fafb3" data-id="429fafb3" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-136f9aab elementor-widget elementor-widget-text-editor" data-id="136f9aab" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Geralt is aware of this mathematical truth, but he also knows that infinity is far too distant to reach, especially in the context of the game proposed by the stranger, where he could end up ruined very quickly.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-52df4470 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="52df4470" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1f58f4f5" data-id="1f58f4f5" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-35ffc053 elementor-widget elementor-widget-text-editor" data-id="35ffc053" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<h2 class="elementor-heading-title elementor-size-large elementor-inline-editing pen" style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 29px; font-style: normal; color: #414141;" data-elementor-setting-key="title" data-pen-placeholder="Écrivez ici...">The Power of Concentration: The Witcher Unravels the Mystery of the Biased Coin</h2><p>In the game proposed by the stranger, Geralt doesn&#8217;t have the luxury of tossing the coin an infinite number of times to verify the frequency of the results. He realizes that he must harness his powers of concentration to the maximum to unravel the mystery of the biased coin. In search of an additional advantage, he decides to drink a potion of concentration, which stimulates his mind and clarity of vision.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-57b9c31c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="57b9c31c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-479bcd03" data-id="479bcd03" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7af7d6f4 elementor-widget elementor-widget-image" data-id="7af7d6f4" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="512" src="https://theeventhorizons.com/wp-content/uploads/2023/07/potion-1024x512.png" class="attachment-large size-large wp-image-388" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/potion-1024x512.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/07/potion-300x150.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/07/potion-768x384.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/07/potion.png 1137w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
				<div class="elementor-element elementor-element-3b4bc83 elementor-widget elementor-widget-heading" data-id="3b4bc83" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Credit: Netflix</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5e46f6c0 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5e46f6c0" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-43440b11" data-id="43440b11" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5b6871d elementor-widget elementor-widget-text-editor" data-id="5b6871d" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									Guided by the effect of the potion, Geralt immerses himself in a thorough analysis of the coin tosses. He employs binary notation, where Heads is represented by 1 and Tails by 0. Therefore, \(S_n\) represents the number of Heads in a sequence. In the case where Geralt believes the coin is fair, the probability of getting Heads (or +1) on the i-th toss is 1/2, similarly for Tails (or 0), and this can be expressed as:</span>

\begin{equation*}
\mathbb{P}(X_i=+1)=\mathbb{P}(X_i=0)=\frac{1}{2}.
\end{equation*}
So, \(\mathbb{E}(S_n) = \frac{n}{2}\) because if there are as many +1 as there are 0 in the outcomes, the theoretical average must be \(\frac{n}{2}\).</span>

He realizes that to obtain a reliable estimation of the proportion of Heads and Tails with a limited number of tosses, he must resort to developed statistical tools such as the Gaussian concentration inequality. This inequality, also known as Hoeffding&#8217;s inequality, is a fundamental result in probability and statistics that works well in this specific case. It provides an estimation of the probability that a random variable, in this case, the outcomes of coin tosses, significantly deviates from its mean. It gives bounds on the probability of observing rare or extreme events. In mathematical terms, for all deviations u, it is written as:</span>

\begin{equation}\label{Gauss}
\mathbb{P}\left(\left|S_n-\mathbb{E}(S_n)\right|\geq u\right)\leq 2e^{-\frac{2u^2}{n}}
\end{equation}
where \(S_n = X_1 + \cdots + X_n\) is the result of n coin tosses, and \(\mathbb{E}(S_n)\) is its expectation (essentially its theoretical average). The use of the term &#8220;Gaussian concentration&#8221; in the context of this inequality refers to the ability of random variables to cluster around their mean, following a distribution close to the normal or Gaussian distribution, represented as a bell-shaped curve. It indicates that the probability of observations far from the mean decreases rapidly (very, very rapidly) as the standard deviation increases.								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-7770f33a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="7770f33a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-6e384385" data-id="6e384385" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-423a16ea elementor-widget elementor-widget-image" data-id="423a16ea" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="640" height="480" src="https://theeventhorizons.com/wp-content/uploads/2023/07/Binom_1000.png" class="attachment-large size-large wp-image-389" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/Binom_1000.png 640w, https://theeventhorizons.com/wp-content/uploads/2023/07/Binom_1000-300x225.png 300w" sizes="(max-width: 640px) 100vw, 640px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-186a4393" data-id="186a4393" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-72385b5f elementor-widget elementor-widget-image" data-id="72385b5f" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="736" height="484" src="https://theeventhorizons.com/wp-content/uploads/2023/07/etonne.png" class="attachment-large size-large wp-image-390" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/etonne.png 736w, https://theeventhorizons.com/wp-content/uploads/2023/07/etonne-300x197.png 300w" sizes="(max-width: 736px) 100vw, 736px" />															</div>
				</div>
				<div class="elementor-element elementor-element-5abc7ea elementor-widget elementor-widget-heading" data-id="5abc7ea" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Credit: Netflix</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2e536170 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2e536170" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6fdfa7e2" data-id="6fdfa7e2" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-8cf203f elementor-widget elementor-widget-heading" data-id="8cf203f" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Histogram representing the frequency of Heads appearing in 1000 coin tosses, along with its bell-shaped theoretical curve.</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-d1ea046 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="d1ea046" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e6c5fd1" data-id="e6c5fd1" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-109a365d elementor-widget elementor-widget-text-editor" data-id="109a365d" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>To experimentally measure this frequency of occurrence, Geralt knows that he must count the number of Heads (+1) in the n coin tosses, divide it by the total number of tosses, and estimate the probability of deviation by a certain percentage u from the value of \(\frac{1}{2}\). This can be written using the previous formula, for all deviations <span style="font-size: 14px; color: var( --e-global-color-text );">u:</span></p><p>\begin{equation}\label{Gauss2}<br />\mathbb{P}\left(\left|\frac{S_n}{n}-\frac{1}{2}\right| &gt; u\right) \leq 2e^{-2nu^2}.<br />\end{equation}<br />If his estimation exceeds the value on the right-hand side, then he is facing a biased coin. Thus, Geralt has a simple way to detect any potential bias in the coin.</p><p>Suddenly, time seems to freeze. The Witcher enters a deep trance that allows him to mentally toss the coin and perform all the necessary calculations using the previous formula.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-37aba13 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="37aba13" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-34337564" data-id="34337564" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1af4029a elementor-widget elementor-widget-image" data-id="1af4029a" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1014" height="569" src="https://theeventhorizons.com/wp-content/uploads/2023/07/meditation.png" class="attachment-large size-large wp-image-391" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/meditation.png 1014w, https://theeventhorizons.com/wp-content/uploads/2023/07/meditation-300x168.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/07/meditation-768x431.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/07/meditation-800x450.png 800w" sizes="(max-width: 1014px) 100vw, 1014px" />															</div>
				</div>
				<div class="elementor-element elementor-element-bae52bd elementor-widget elementor-widget-heading" data-id="bae52bd" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Credit: Netflix</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6cd7f3d8 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6cd7f3d8" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5090c27" data-id="5090c27" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-37ebfc54 elementor-widget elementor-widget-text-editor" data-id="37ebfc54" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									His first calculation involves estimating the probability that, in 10 tosses of a fair coin, the percentage of Heads is either higher or lower by \(20\%\) compared to the number of Tails. He finds:</span>

\begin{equation*}
\mathbb{P}\left(\left|\frac{S_{10}}{10}-\frac{1}{2}\right|&gt;0.2\right)\leq 2e^{- 20\times 0.04}\approx 0.89.
\end{equation*}
On the following figure, this means that the sum of the area under the red curve between 7 and 10, and between 0 and 3, is less than 0.89.</span>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-231e51e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="231e51e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6b5a40ea" data-id="6b5a40ea" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-ecee7c0 elementor-widget elementor-widget-image" data-id="ecee7c0" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="640" height="480" src="https://theeventhorizons.com/wp-content/uploads/2023/07/Binom_10.png" class="attachment-large size-large wp-image-392" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/Binom_10.png 640w, https://theeventhorizons.com/wp-content/uploads/2023/07/Binom_10-300x225.png 300w" sizes="(max-width: 640px) 100vw, 640px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2e69173e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2e69173e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-48fc403d" data-id="48fc403d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-58621935 elementor-widget elementor-widget-heading" data-id="58621935" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Histogram representing the frequency of Heads appearing in 10 coin tosses, along with its theoretical bell-shaped curve.</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-307fcefe elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="307fcefe" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-486bc2cf" data-id="486bc2cf" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-67e52eb7 elementor-widget elementor-widget-text-editor" data-id="67e52eb7" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									However, this result does not seem very informative in itself because the upper bound of probability, 0.89, is very close to 1. Geralt wonders what could be happening. Perhaps he simply did not toss enough coins? To explore this possibility, he decides to continue his thought experiment and toss the coin not only 10 times but also 20, 30, 40, 100, 500, 1000, and even 10,000 times (See some examples below).</span>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-361a78b1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="361a78b1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-4c400281" data-id="4c400281" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6c67fe31 elementor-widget elementor-widget-image" data-id="6c67fe31" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="640" height="480" src="https://theeventhorizons.com/wp-content/uploads/2023/07/Binom_100.png" class="attachment-large size-large wp-image-393" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/Binom_100.png 640w, https://theeventhorizons.com/wp-content/uploads/2023/07/Binom_100-300x225.png 300w" sizes="(max-width: 640px) 100vw, 640px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-14b84f00" data-id="14b84f00" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-32558c03 elementor-widget elementor-widget-image" data-id="32558c03" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="640" height="480" src="https://theeventhorizons.com/wp-content/uploads/2023/07/Binom_500.png" class="attachment-large size-large wp-image-394" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/Binom_500.png 640w, https://theeventhorizons.com/wp-content/uploads/2023/07/Binom_500-300x225.png 300w" sizes="(max-width: 640px) 100vw, 640px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-fe214b0 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="fe214b0" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5729f175" data-id="5729f175" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5a4bf89a elementor-widget elementor-widget-heading" data-id="5a4bf89a" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Histogram representing the frequency of Heads appearing in 100 and 500 coin tosses, along with their theoretical bell-shaped curves.</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-40ea5be8 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="40ea5be8" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6e372bbd" data-id="6e372bbd" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1c191124 elementor-widget elementor-widget-text-editor" data-id="1c191124" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The approximate results of these calculations are presented in the following table and heatmap:</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-796412a5 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="796412a5" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5e7431f0" data-id="5e7431f0" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4fbda5b8 elementor-widget elementor-widget-image" data-id="4fbda5b8" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="683" src="https://theeventhorizons.com/wp-content/uploads/2023/07/heatmap-1024x683.png" class="attachment-large size-large wp-image-396" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/heatmap-1024x683.png 1024w, https://theeventhorizons.com/wp-content/uploads/2023/07/heatmap-300x200.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/07/heatmap-768x512.png 768w, https://theeventhorizons.com/wp-content/uploads/2023/07/heatmap.png 1200w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-cc5b3f0 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="cc5b3f0" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-dcecec5" data-id="dcecec5" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7051f451 elementor-widget elementor-widget-heading" data-id="7051f451" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">The table presents the results obtained by Geralt during his calculations for different numbers of coin tosses. The values in the cells correspond to the estimated probabilities that the frequency of Heads differs from \(\frac{1}{2}\) by a certain percentage (the deviation) based on the number of tosses.</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-36cc7244 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="36cc7244" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2f28ef0c" data-id="2f28ef0c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-529edd68 elementor-widget elementor-widget-image" data-id="529edd68" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1000" height="600" src="https://theeventhorizons.com/wp-content/uploads/2023/07/concentration.png" class="attachment-large size-large wp-image-395" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/concentration.png 1000w, https://theeventhorizons.com/wp-content/uploads/2023/07/concentration-300x180.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/07/concentration-768x461.png 768w" sizes="(max-width: 1000px) 100vw, 1000px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-90a14b7 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="90a14b7" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-78c64284" data-id="78c64284" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-9b080b9 elementor-widget elementor-widget-heading" data-id="9b080b9" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">This graph represents the evolution of Gaussian concentration as a function of the deviation and the number of coin tosses.</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4f6fdba elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4f6fdba" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-74d37d4" data-id="74d37d4" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6d3e42fb elementor-widget elementor-widget-text-editor" data-id="6d3e42fb" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>By observing the data in the table and the evolution of the curves in the graph, we can draw the following conclusions:</p>
<p><span style="font-size: 14px; color: var( --e-global-color-text );">•</span>&nbsp;As the number of coin tosses increases, the probabilities of deviation decrease. This means that the more Geralt tosses coins, the more accurately he can estimate whether the coin is biased or not.</p>
<p><span style="font-size: 14px; color: var( --e-global-color-text );">•</span>&nbsp;For a small number of tosses (10 or 20), the probabilities of deviation remain relatively high. For example, for 10 tosses, the probability of a \(20\%\) deviation is&nbsp;0.89, indicating a considerable possibility of bias. However, for 20 tosses, this probability decreases to 0.40, suggesting a reduction in uncertainty.</p>
<p><span style="font-size: 14px; color: var( --e-global-color-text );">•</span>&nbsp;As the number of tosses increases further (30, 40, 100, 500, 1000), the probabilities of deviation decrease drastically. For example, for&nbsp;1000 tosses, the probability of a \(20\%\) deviation is extremely low, on the order of \(3.6 \times 10^{-35}\), indicating a high level of confidence that the coin is fair.</p>
<p>In summary, the table demonstrates that the more coin tosses Geralt performs, the more he can refine his estimation of the frequency of Heads and determine with greater certainty whether the coin is biased or not. The probabilities of deviation decrease rapidly as the number of tosses increases, which enhances the reliability of Geralt&#8217;s method to detect biased coins.</p>
<p>Thanks to his potion of concentration and his knowledge of probabilistic principles, the Witcher, Geralt, adjusts his game strategy and fully engages in the game proposed by the stranger. He tosses the provided coin 500 times and obtains a sequence of results where the number of Heads observed is&nbsp;286, approximately \(7\%\) more than the expected number. Here is the sequence:</p>
<p>\begin{align*}<br>
&amp;0 0 1 0 1 0 0 0 0 1 1 1 1 1 0 1 0 1 0 0 0 1 0 11 0 1 0 1 0 0 1 0 1 1 1 1111111100011 1 1 0 0 1 1 1 1 1 1 0 1 1 0 1 0 0 1 0 1 \\<br>
&amp;1111 1 1 0 0 1 0 1 1 0 0 1 1 0 0 0 1 0 0 1 0 1 1 10 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 0 1 1 1 1 1 10 0 1 0 10 0 0 1 1 1 0 01 1 0 0 1\\<br>
&amp;1 1 0 0 1 0 1 1 1 1 1 0 0 1 0 1 0 1 0 1 1 1 1 11 1 1 1 0 0 1 1 1 0 0 0 1 0 1 1 0 1 1 0 0 1 1 0 0 0 1 0 1 1 1 1 10 0 0 0 11 1 1 0 0 1 0 \\<br>
&amp; 0 1 1 1 0 1 1 0 10 1 1 0 0 0 1 1 0 0 1 1 0 1 1 0 0 0 0 0 0 1 1 10 0 1 1 1 0 1 1 111 1 1 1 1 0 1 0 0 1 0 1 0 10 1 0 1 0 1 1 0 1 1 10 \\<br>
&amp; 1 1 0 0 0 1 1 1 0 1 0 00 1 1 1 1 0 1 0 0 0 0 1 1 1 0 0 1 1 1 1 0 1 0 11 0 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 1 0 1 0 0 0 01 0 1 10 1 0 0 1 \\<br>
&amp; 0 1 0 1 1 0 1 1 1 1 0 1 1 1 0 0 1 1 1111111 1 0 1 0 0 0 1 1 1 0 1 0 1 1 1 1 0 0 1 0 0 1 1 1 1 0 1 0 1 0 1 0 1 0 0 1 0 01 0 1 0 1 1 \\<br>
&amp;1 0 1 1 1 0 1 1 1 1 1 0 1 1 1 1 0 1 0 1 1 1111 0 1 1 0 0 1 1 1 0 0 1 1 1 0 1 0 1 0 0 1 0 0 0 1 1 0 1 0 1 0 0 0 1 1 0 00 0 1 1 10 1 0 \\<br>
&amp; 0 0 1 0 0 0 0 0 1 1 0 0 0 0 1 1 0<br>
\end{align*}</p>
<p>By applying these calculations, Geralt estimates that the probability of obtaining such a deviation is approximately&nbsp;0.01 (which is very low). He realizes that he is facing a scam and requests to restart the game using another coin, as the provided one is biased.</p>
<p>He turns to a casino dealer to obtain an official and fair coin, to continue the game in a just and fair manner.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-58ac5846 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="58ac5846" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-172d83e2" data-id="172d83e2" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-733b06fe elementor-widget elementor-widget-image" data-id="733b06fe" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="801" height="429" src="https://theeventhorizons.com/wp-content/uploads/2023/07/tavern.png" class="attachment-large size-large wp-image-397" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/tavern.png 801w, https://theeventhorizons.com/wp-content/uploads/2023/07/tavern-300x161.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/07/tavern-768x411.png 768w" sizes="(max-width: 801px) 100vw, 801px" />															</div>
				</div>
				<div class="elementor-element elementor-element-2464eb6 elementor-widget elementor-widget-heading" data-id="2464eb6" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Credit: Netflix</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-45ff56c3 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="45ff56c3" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a99aa7a" data-id="a99aa7a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-e4d39f4 elementor-widget elementor-widget-text-editor" data-id="e4d39f4" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<h2 data-elementor-setting-key="title" data-pen-placeholder="Écrivez ici..."> </h2><p> </p><h2 class="elementor-heading-title elementor-size-large elementor-inline-editing pen" style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 29px; font-style: normal; color: #414141;" data-elementor-setting-key="title" data-pen-placeholder="Écrivez ici...">The Power of Concentration: The Plot of the Gambler&#8217;s Ruin: The Probability of Losing Everything</h2><p>The game is now fair, and each player has an equal chance of winning. The Witcher is interested in the probability that the stranger goes broke before him, meaning that the stranger&#8217;s final fortune \(F_{\text{Stranger}}\) reaches 0 before 2000. Mathematically, this probability is expressed as:</p><p>\begin{align*}<br />\mathbb{P}_{Stranger}(1000)=\mathbb{P}_{1000}\left(F\text{ reaches } 0 \text{ before } 2000\right).<br />\end{align*}<br />This can also be rephrased using what is called stopping times. Stopping times are random times that can be determined from the information available on the process up to that point. Their value indicates the moment when a certain condition is satisfied or a certain quantity is reached. The stopping time may depend on past realizations of the process, but it cannot depend on the future. In our case, this could be the time (which we called round in our case) denoted as \(T_0\) when the stranger&#8217;s fortune reaches 0, or the time \(T_{2000}\) when it reaches 2000. In other words, it is the smallest time n at which \(F_n\) becomes zero or reaches 2000:</p><p>\begin{align*}<br />T_0=\inf\{n\geq 0,\quad F_n =0\}\quad \text{ and } \quad T_{2000}=\inf\{n\geq 0,\quad F_n =2000\}.<br />\end{align*}<br />It is evident that the longer the game is played, the more likely it is to come to an end, meaning that one of the two players goes broke. Thus, we can express the probability that the stranger loses all his gold before the witcher as the probability that the stopping time \(T_0\) is smaller than \(T_{2000}\):<br />\begin{align*}<br />\mathbb{P}_{Stranger}(1000)=\mathbb{P}_{1000}\left(T_0&lt;T_{2000}\right).<br />\end{align*}</p><p>Also, it is important to note that the stranger&#8217;s fortune can take on all possible &#8220;states&#8221; (meaning his fortune can be any number between 0 and 2000). Let&#8217;s denote this value as k. Thus, the probability that, starting with a fortune of value k, he reaches 0 before 2000 is:<br />\begin{align*}<br />\mathbb{P}_{Stranger}(k)=\mathbb{P}_{k}\left(T_0&lt;T_{2000}\right).<br />\end{align*}</p><p>This probability depends only on the value of the fortune in the previous round. Indeed, since only one gold coin is played in each round, each player can either win or lose only one coin and not, for example, 4 coins at once. Without going into specific details and keeping it general, this means that the previous probability is equal to:<br />\begin{align*}<br />\mathbb{P}_{Stranger}(k)=p\mathbb{P}_{Stranger}(k+1)+(1-p)\mathbb{P}_{Stranger}(k-1).<br />\end{align*}<br />Since the coin is fair, it is more accurately written as:<br />\begin{align*}<br />\mathbb{P}_{Stranger}(k)=\frac{1}{2}\mathbb{P}_{Stranger}(k+1)+\frac{1}{2}\mathbb{P}_{Stranger}(k-1).<br />\end{align*}<br />Indeed, an attentive eye will easily solve this equation and provide an explicit relationship for the probability of interest. The probability in question can be expressed as follows:<br />\begin{align*}<br />\mathbb{P}_{Stranger}(k)=1-\frac{k}{2000}.<br />\end{align*}<br />So, if the stranger has a fortune of 1000, the probability that he reaches 0 before the Witcher is:<br />\begin{align*}<br />\mathbb{P}_{Stranger}(1000)=1-\frac{1000}{2000}=\frac{1}{2}.<br />\end{align*}<br />By a similar method, we can determine the average time it takes to reach 0 before 2000, denoted as \(\mathbb{E}_k(T)\), and it writes<br />\begin{align*}<br />\mathbb{E}_k(T)=k(2000-k).<br />\end{align*}<br />So, if \(k=1000\), it would take an average of one million rounds for one of the two players to reach \(0\). The man in the hood thus names this intriguing concept: the gambler&#8217;s ruin.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-7de92e30 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="7de92e30" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-185726e7" data-id="185726e7" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-32e2522a elementor-widget elementor-widget-image" data-id="32e2522a" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="640" height="480" src="https://theeventhorizons.com/wp-content/uploads/2023/07/ruine1.png" class="attachment-large size-large wp-image-398" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/ruine1.png 640w, https://theeventhorizons.com/wp-content/uploads/2023/07/ruine1-300x225.png 300w" sizes="(max-width: 640px) 100vw, 640px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-550f813 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="550f813" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4131c568" data-id="4131c568" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5eca0799 elementor-widget elementor-widget-heading" data-id="5eca0799" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Simulation of the gambler's ruin where Geralt wins after approximately 600,000 rounds.</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5f957c6d elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5f957c6d" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4e6e2b43" data-id="4e6e2b43" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3d0d535f elementor-widget elementor-widget-text-editor" data-id="3d0d535f" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>He explains that despite the law of large numbers, where results tend to converge towards the theoretical probability, the player is always confronted with the risk of losing everything he possesses. The gambler&#8217;s ruin, like an elusive creature, lurks in the shadows, ready to pounce on those who succumb to the call of chance without discretion. It serves as a reminder of the unpredictable nature of probability and the potential consequences of unchecked risk-taking in games of chance.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6c14d4a4 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6c14d4a4" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-21499b91" data-id="21499b91" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6974eda4 elementor-widget elementor-widget-image" data-id="6974eda4" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="737" height="594" src="https://theeventhorizons.com/wp-content/uploads/2023/07/dos.png" class="attachment-large size-large wp-image-399" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/dos.png 737w, https://theeventhorizons.com/wp-content/uploads/2023/07/dos-300x242.png 300w" sizes="(max-width: 737px) 100vw, 737px" />															</div>
				</div>
				<div class="elementor-element elementor-element-8273c78 elementor-widget elementor-widget-heading" data-id="8273c78" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Credit: Netflix</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2369007e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2369007e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7912943f" data-id="7912943f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6d7eb05d elementor-widget elementor-widget-text-editor" data-id="6d7eb05d" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<h2 data-elementor-setting-key="title" data-pen-placeholder="Écrivez ici..."> </h2><p> </p><p> </p><h2 class="elementor-heading-title elementor-size-large elementor-inline-editing pen" style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 29px; font-style: normal; color: #414141;" data-elementor-setting-key="title" data-pen-placeholder="Écrivez ici...">The Secret of the Casino: Bias, Deception, and Manipulated Probabilities</h2><p>In a fierce battle, the witcher emerges victorious over his adversary with unmatched grace. The masked face of the stranger is unveiled, revealing a gaze filled with admiration and surprise. With a trembling voice, he reveals his true identity as the powerful owner of the casino. The witcher is taken aback, realizing that the fortune of this man far surpasses any predictions that could have been made.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5e11701c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5e11701c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-2b51b29d" data-id="2b51b29d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6dd391d0 elementor-widget elementor-widget-image" data-id="6dd391d0" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="606" height="566" src="https://theeventhorizons.com/wp-content/uploads/2023/07/geraltenerve.png" class="attachment-large size-large wp-image-400" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/geraltenerve.png 606w, https://theeventhorizons.com/wp-content/uploads/2023/07/geraltenerve-300x280.png 300w" sizes="(max-width: 606px) 100vw, 606px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-79f44cde" data-id="79f44cde" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-77a175b5 elementor-widget elementor-widget-image" data-id="77a175b5" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="739" height="731" src="https://theeventhorizons.com/wp-content/uploads/2023/07/casino.png" class="attachment-large size-large wp-image-401" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/casino.png 739w, https://theeventhorizons.com/wp-content/uploads/2023/07/casino-300x297.png 300w" sizes="(max-width: 739px) 100vw, 739px" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-658a8ac elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="658a8ac" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c90789b" data-id="c90789b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-a4ef137 elementor-widget elementor-widget-heading" data-id="a4ef137" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Credit: Netflix</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4753df19 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4753df19" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7c831d48" data-id="7c831d48" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-583d7ef elementor-widget elementor-widget-text-editor" data-id="583d7ef" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									In an unexpected gesture of generosity, the casino owner decides to share some of his secrets with Geralt in a secluded room, away from prying ears. He confides that, thanks to his colossal wealth, his probability of losing is minuscule, allowing him to persist and thrive in his ventures. He specifies that by denoting the two initial fortunes as \(F_{Geralt}\) and \(F_{Casino}\), he obtains the following equation:

\begin{align*}
\mathbb{P}_{Casino}(k)=1-\frac{k}{F_{Geralt}+F_{Casino}}\quad\text{and}\quad \mathbb{E}_k(T)=k(F_{Geralt}+F_{Casino}-k).
\end{align*}

Just by having 100 times more initial money than Geralt, the casino loses its fortune with a low probability that equals:

\begin{align*}
\mathbb{P}_{Casino}(100\times F_{Geralt})=1-\frac{100\times F_{Geralt}}{F_{Geralt}+100\times F_{Geralt}}=1-\frac{100}{101}=0.0099.
\end{align*}								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1aa17dbf elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1aa17dbf" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-2349bfa7" data-id="2349bfa7" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1dd02ece elementor-widget elementor-widget-image" data-id="1dd02ece" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="640" height="480" src="https://theeventhorizons.com/wp-content/uploads/2023/07/ruine100.png" class="attachment-large size-large wp-image-402" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/ruine100.png 640w, https://theeventhorizons.com/wp-content/uploads/2023/07/ruine100-300x225.png 300w" sizes="(max-width: 640px) 100vw, 640px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-71d71fa4" data-id="71d71fa4" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-48c69c8c elementor-widget elementor-widget-image" data-id="48c69c8c" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="881" height="725" src="https://theeventhorizons.com/wp-content/uploads/2023/07/geraltthinks2.png" class="attachment-large size-large wp-image-403" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/geraltthinks2.png 881w, https://theeventhorizons.com/wp-content/uploads/2023/07/geraltthinks2-300x247.png 300w, https://theeventhorizons.com/wp-content/uploads/2023/07/geraltthinks2-768x632.png 768w" sizes="(max-width: 881px) 100vw, 881px" />															</div>
				</div>
				<div class="elementor-element elementor-element-c3100e2 elementor-widget elementor-widget-heading" data-id="c3100e2" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Credit: Netflix</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5992ba7e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5992ba7e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1422999c" data-id="1422999c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-70d57a61 elementor-widget elementor-widget-heading" data-id="70d57a61" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Simulation of the player's ruin when the casino has 100 times more money than Geralt.</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-7e8441a8 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="7e8441a8" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e85bc53" data-id="e85bc53" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3a3f9213 elementor-widget elementor-widget-text-editor" data-id="3a3f9213" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									But the most precious secret is revealed in a barely audible whisper. The stranger admits to having played with carefully biased coins in his favor. A sly smile appears on his face as he unveils this troubling truth. This subtle deception has allowed him to dramatically increase his gains and maintain his hold over the gambling souls who frequent his establishment. He reminds Geralt that, depending on the bias of the coin, his probability of losing with an initial fortune of k is:
\begin{align*}
\mathbb{P}_{Casino}(k)=\frac{\left(\frac{1-p}{p}\right)^{F_{Casino}+F_{Geralt}}-\left(\frac{1-p}{p}\right)^{k}}{\left(\frac{1-p}{p}\right)^{F_{Casino}+F_{Geralt}}-1}
\end{align*}
Indeed, if 1, this probability becomes extremely low. Additionally, upon examining the sketch provided by the master of the casino, Geralt quickly realizes that he would still be at a disadvantage even with a slightly biased coin.</span>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-20b794e2 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="20b794e2" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-31b115f" data-id="31b115f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-4bfb44b1 elementor-widget elementor-widget-image" data-id="4bfb44b1" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="640" height="480" src="https://theeventhorizons.com/wp-content/uploads/2023/07/ruinebiaisee.png" class="attachment-large size-large wp-image-404" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/ruinebiaisee.png 640w, https://theeventhorizons.com/wp-content/uploads/2023/07/ruinebiaisee-300x225.png 300w" sizes="(max-width: 640px) 100vw, 640px" />															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-53e07ddd" data-id="53e07ddd" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1766cdca elementor-widget elementor-widget-image" data-id="1766cdca" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="585" height="504" src="https://theeventhorizons.com/wp-content/uploads/2023/07/Geraltthinks.png" class="attachment-large size-large wp-image-405" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/Geraltthinks.png 585w, https://theeventhorizons.com/wp-content/uploads/2023/07/Geraltthinks-300x258.png 300w" sizes="(max-width: 585px) 100vw, 585px" />															</div>
				</div>
				<div class="elementor-element elementor-element-b7aa3fa elementor-widget elementor-widget-heading" data-id="b7aa3fa" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Credit: Netflix</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-74b51ecb elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="74b51ecb" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2cc53c5c" data-id="2cc53c5c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1e95ac8b elementor-widget elementor-widget-heading" data-id="1e95ac8b" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Simulation of the player's ruin with a biased coin (\(p=0.49\)).</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6fc622a5 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6fc622a5" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1b9a67e6" data-id="1b9a67e6" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-61fceae1 elementor-widget elementor-widget-text-editor" data-id="61fceae1" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p> </p><p>An aura of intrigue hangs in the air as Geralt absorbs this unexpected information. He realizes that he has just unmasked a far more cunning adversary than he could have imagined. But armed with his wisdom and experience, the Witcher is already preparing to face the new challenges that lie ahead. A new quest begins, where the fate of rigged coins and unsuspecting players will intertwine with that of the Witcher, in a complex dance where the stakes are higher than ever before.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-56be893 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="56be893" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-51f2efcd" data-id="51f2efcd" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-57cbb924 elementor-widget elementor-widget-text-editor" data-id="57cbb924" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<h2 data-elementor-setting-key="title" data-pen-placeholder="Écrivez ici..."> </h2><h2 class="elementor-heading-title elementor-size-large elementor-inline-editing pen" style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 29px; font-style: normal; color: #414141;" data-elementor-setting-key="title" data-pen-placeholder="Écrivez ici...">The Manipulation of Coin Tosses</h2><p>The power of the concentration potion fades, and Geralt snaps out of his trance. It is at this moment that the words of the renowned magician Persi Diaconis resonate in the Witcher&#8217;s mind.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-56def7a6 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="56def7a6" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2794feac" data-id="2794feac" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-70df48a8 elementor-widget elementor-widget-image" data-id="70df48a8" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="738" height="562" src="https://theeventhorizons.com/wp-content/uploads/2023/07/diaconis.png" class="attachment-large size-large wp-image-406" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/diaconis.png 738w, https://theeventhorizons.com/wp-content/uploads/2023/07/diaconis-300x228.png 300w" sizes="(max-width: 738px) 100vw, 738px" />															</div>
				</div>
				<div class="elementor-element elementor-element-bfda8b1 elementor-widget elementor-widget-heading" data-id="bfda8b1" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Credit: Netflix</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-455afe5f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="455afe5f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d7c7538" data-id="d7c7538" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5440d80b elementor-widget elementor-widget-text-editor" data-id="5440d80b" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><br />The precision potion he possesses is a unique creation of its kind. Just a sip of this potion elevates his abilities to an extraordinary level, granting him total mastery over the coin toss. Like a machine, Geralt controls every aspect of the toss: the initial conditions, the number of rotations performed in the air, and even which side will be revealed when the coin lands. His precision in manipulating these parameters is astounding, challenging the idea that the game of coin tossing is a simple random process.</p><p>This spectacular demonstration of mastery perfectly illustrates the findings of the study conducted by Joe Keller in our reality. Indeed, this study reveals that coin tossing, although it may seem random, is actually governed by mechanical laws. When a coin is tossed with high initial velocity and strong rotation, it has a probability of landing on the same side as where it started, in nearly half of the cases. However, if we take into account precession, which is the change in the coin&#8217;s axis of rotation during its flight, the outcome can differ. If the angle between the angular momentum and the normal to the coin is less than 45 degrees, the coin will never flip and will always land on the same side.</p><p>Thanks to his precision potion, Geralt sheds light on the possibility of manipulating coin tosses in a controlled manner, creating the illusion of a random game while being aware that the results are actually determined by mechanical factors. At the heart of this manipulation lies a crucial element: the hand that tosses the coin doesn&#8217;t always hold it on the same side, alternating between head and tail. It is the unconscious randomization carried out by the person tossing the coin, as they place it on their thumb before giving it a slight initial push, that evens out the probabilities of getting head or tail. Thus, the result of the toss tends towards equality.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-17765eaa elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="17765eaa" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-485e7970" data-id="485e7970" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-cf3ca1 elementor-widget elementor-widget-image" data-id="cf3ca1" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="683" src="https://theeventhorizons.com/wp-content/uploads/2023/07/casino-1024x683.jpg" class="attachment-large size-large wp-image-407" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/casino-1024x683.jpg 1024w, https://theeventhorizons.com/wp-content/uploads/2023/07/casino-300x200.jpg 300w, https://theeventhorizons.com/wp-content/uploads/2023/07/casino-768x512.jpg 768w, https://theeventhorizons.com/wp-content/uploads/2023/07/casino.jpg 1045w" sizes="(max-width: 1024px) 100vw, 1024px" />															</div>
				</div>
				<div class="elementor-element elementor-element-5188f87 elementor-widget elementor-widget-heading" data-id="5188f87" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Credit: Netflix</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-91c78bd elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="91c78bd" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5af8e43b" data-id="5af8e43b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1d960830 elementor-widget elementor-widget-text-editor" data-id="1d960830" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Indeed, for those seeking a slight advantage, diligent training in precision tossing can enable them to master this subtle art and influence the coin to land as they desire. However, in their ingenuity, games of chance introduce another random component: another player must call &#8220;Heads&#8221; or &#8220;Tails&#8221; at the precise moment the coin flutters in the air, thus escaping all predictions.</p><p>In this enchanting romance, we can appreciate the importance of this balance between precision and randomness. Geralt of Rivia, despite his extraordinary mastery of coin tossing thanks to his precision potion, realizes that the true essence of the game lies in this unconscious randomization, which ensures fairness of probabilities. Coin tossing remains a fascinating game where uncertainty and the magic of the moment harmoniously blend, awakening in each person a curiosity tinged with mystery.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-49dbbc92 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="49dbbc92" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-31a3e58" data-id="31a3e58" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1559b523 elementor-widget elementor-widget-text-editor" data-id="1559b523" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<h2 data-elementor-setting-key="title" data-pen-placeholder="Écrivez ici..."> </h2><h2 class="elementor-heading-title elementor-size-large elementor-inline-editing pen" style="font-variant-ligatures: normal; font-variant-caps: normal; font-family: 'Roboto Serif', sans-serif; font-size: 29px; font-style: normal; color: #414141;" data-elementor-setting-key="title" data-pen-placeholder="Écrivez ici...">Revelations of the Coin Toss: Geralt&#8217;s Insight</h2><p>In the dark twists and turns of games of chance, where the fate of eager players is decided by a simple coin toss, Geralt of Rivia, the legendary Witcher, has unveiled a troubling truth. He highlights the importance of probabilities and statistical tools to understand and analyze random situations. Despite appearances, Geralt realizes that the game of the coin toss is, in fact, a game of probabilities and chances. With his intelligence and concentration potion, he employs concepts such as the law of large numbers and the Gaussian concentration inequality to evaluate the probabilities and risks associated with coin tosses.</p><p>Although he cannot toss the coin an infinite number of times, he manages to obtain reliable estimates of the proportion of Heads and Tails using probabilistic and statistical results. Geralt&#8217;s quest also underscores the importance of prudence and self-awareness in games of chance. By being aware of probabilities and risks, Geralt makes informed decisions and minimizes the consequences of his choices.</p><p>So, whether you are a lone adventurer on the farthest reaches of the real world or a daring gambler in the depths of casinos, always remember that behind the veil of illusion lies the relentless mathematical truth. And, as Geralt has understood, sometimes the greatest victory lies in the wisdom of knowing when to step away from the gambling table, leaving behind fleeting mirages to embrace a more stable reality. One, perhaps, involving a well-deserved bath.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5a33e36c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5a33e36c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5f99820f" data-id="5f99820f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7908655e elementor-widget elementor-widget-image" data-id="7908655e" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="620" height="413" src="https://theeventhorizons.com/wp-content/uploads/2023/07/bath.jpg" class="attachment-large size-large wp-image-408" alt="" srcset="https://theeventhorizons.com/wp-content/uploads/2023/07/bath.jpg 620w, https://theeventhorizons.com/wp-content/uploads/2023/07/bath-300x200.jpg 300w" sizes="(max-width: 620px) 100vw, 620px" />															</div>
				</div>
				<div class="elementor-element elementor-element-1f58477 elementor-widget elementor-widget-heading" data-id="1f58477" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-small">Credit: Netflix</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6c0b798b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6c0b798b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1b0064dc" data-id="1b0064dc" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1a55b067 elementor-widget elementor-widget-spacer" data-id="1a55b067" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5b3e5966 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5b3e5966" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e19fb8c" data-id="e19fb8c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-19c4aaea elementor-widget elementor-widget-heading" data-id="19c4aaea" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-large">Bibliography</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-461f8c2f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="461f8c2f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-50ce70ca" data-id="50ce70ca" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3303de16 elementor-widget elementor-widget-text-editor" data-id="3303de16" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>D. Chafaï, F. Malrieu, Recueil de modèles aléatoires, 2015.</p><p>T. Bodineaux, Modélisation de phénomènes aléatoires : introduction aux chaînes de Markov et aux martingales, 2015</p><p>M. Ledoux, The concentration of measure phenomenon, 2001</p><p>I, Stewart, Do dice play god?, 2019</p><p>R. Epstein, The Theory of Gambling and Statistical Logic (Revised ed.), 1995</p><p>J. L. Coolidge, The Gambler&#8217;s Ruin. Annals of Mathematics. 10 (4): 181–192, 1909</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-859bdb0 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="859bdb0" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-9605297" data-id="9605297" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-9b27c52 elementor-widget elementor-widget-spacer" data-id="9b27c52" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
				<div class="elementor-element elementor-element-ecbc3a3 elementor-view-default elementor-position-block-start elementor-mobile-position-block-start elementor-widget elementor-widget-icon-box" data-id="ecbc3a3" data-element_type="widget" data-e-type="widget" data-widget_type="icon-box.default">
				<div class="elementor-widget-container">
							<div class="elementor-icon-box-wrapper">

						<div class="elementor-icon-box-icon">
				<span  class="elementor-icon">
				<i aria-hidden="true" class="fab fa-python"></i>				</span>
			</div>
			
			
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-26301ad elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="26301ad" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-9512e0b" data-id="9512e0b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-b5c7b3e elementor-widget elementor-widget-toggle" data-id="b5c7b3e" data-element_type="widget" data-e-type="widget" data-widget_type="toggle.default">
				<div class="elementor-widget-container">
							<div class="elementor-toggle">
							<div class="elementor-toggle-item">
					<div id="elementor-tab-title-1901" class="elementor-tab-title" data-tab="1" role="button" aria-controls="elementor-tab-content-1901" aria-expanded="false">
												<span class="elementor-toggle-icon elementor-toggle-icon-left" aria-hidden="true">
															<span class="elementor-toggle-icon-closed"><i class="fas fa-caret-right"></i></span>
								<span class="elementor-toggle-icon-opened"><i class="elementor-toggle-icon-opened fas fa-caret-up"></i></span>
													</span>
												<a class="elementor-toggle-title" tabindex="0">Law of Large Numbers Simulation</a>
					</div>

					<div id="elementor-tab-content-1901" class="elementor-tab-content elementor-clearfix" data-tab="1" role="region" aria-labelledby="elementor-tab-title-1901">
<pre class="wp-block-code has-black-background-color has-background"><code class="language-python line-numbers" lang="python">
import numpy as np
import matplotlib.pyplot as plt

def simulate_biased_coin_tosses(n, p, num_trials):
    """
    Simulates multiple trials of biased coin tosses and plots the running average.
    
    Args:
        n (int): Number of coin tosses in each trial.
        p (float): Probability of getting heads (biased coin).
        num_trials (int): Number of trials to simulate.
    """
    results = []
    
    for _ in range(num_trials):
        coin_tosses = np.random.choice([0, 1], size=n, p=[1-p, p])
        running_average = np.cumsum(coin_tosses) / np.arange(1, n + 1)
        results.append(running_average)
    
    # Plot the results
    for i, running_average in enumerate(results):
        plt.plot(np.arange(1, n + 1), running_average, alpha=0.5)
    
    # Plot the theoretical expectation (p for a biased coin)
    plt.plot(np.arange(1, n + 1), np.full(n, p), color='red', linestyle='--', label='Theoretical Expectation')
    
    plt.xlabel('Number of Tosses')
    plt.ylabel('Running Average')
    plt.title('Law of Large Numbers Simulation (Balanced Coin)')
    plt.legend()
    plt.grid()
    plt.show()

# Parameters
n = 100000  # Number of coin tosses in each trial
p = 0.5  # Probability of getting heads (biased coin)
num_trials = 1  # Number of trials to simulate

# Perform the simulation and visualize the results
simulate_biased_coin_tosses(n, p, num_trials)

</code></pre>
</div>
				</div>
							<div class="elementor-toggle-item">
					<div id="elementor-tab-title-1902" class="elementor-tab-title" data-tab="2" role="button" aria-controls="elementor-tab-content-1902" aria-expanded="false">
												<span class="elementor-toggle-icon elementor-toggle-icon-left" aria-hidden="true">
															<span class="elementor-toggle-icon-closed"><i class="fas fa-caret-right"></i></span>
								<span class="elementor-toggle-icon-opened"><i class="elementor-toggle-icon-opened fas fa-caret-up"></i></span>
													</span>
												<a class="elementor-toggle-title" tabindex="0">Binomial Distribution Simulation</a>
					</div>

					<div id="elementor-tab-content-1902" class="elementor-tab-content elementor-clearfix" data-tab="2" role="region" aria-labelledby="elementor-tab-title-1902">
<pre class="wp-block-code has-black-background-color has-background"><code class="language-python line-numbers" lang="python">import numpy as np
import matplotlib.pyplot as plt

def simulate_binomial_distribution(n, p, num_trials):
    """
    Simulates multiple trials of a binomial distribution and plots the histogram of outcomes.
    
    Args:
        n (int): Number of trials in each binomial experiment.
        p (float): Probability of success in each trial.
        num_trials (int): Number of trials to simulate.
    """
    results = np.random.binomial(n, p, size=num_trials)
    
    # Plot the histogram of outcomes
    plt.hist(results, bins=np.arange(n + 1) - 0.5, density=True, alpha=0.7, edgecolor='black')
    
    # Plot the theoretical probability mass function
    x = np.arange(n + 1)
    y = np.array([np.math.comb(n, k) * p**k * (1 - p)**(n - k) for k in x])
    plt.plot(x, y, color='red', label='Theoretical Probability')
    
    plt.xlabel('Number of Successes')
    plt.ylabel('Probability')
    plt.title(f'Binomial Distribution (n={n}, p={p})')
    plt.legend()
    plt.grid()
    plt.show()

# Parameters
n =10  # Number of trials in each binomial experiment
p = 0.5  # Probability of success in each trial
num_trials = 100000  # Number of trials to simulate

# Perform the simulation and visualize the results
simulate_binomial_distribution(n, p, num_trials)
</code></pre>
</div>
				</div>
							<div class="elementor-toggle-item">
					<div id="elementor-tab-title-1903" class="elementor-tab-title" data-tab="3" role="button" aria-controls="elementor-tab-content-1903" aria-expanded="false">
												<span class="elementor-toggle-icon elementor-toggle-icon-left" aria-hidden="true">
															<span class="elementor-toggle-icon-closed"><i class="fas fa-caret-right"></i></span>
								<span class="elementor-toggle-icon-opened"><i class="elementor-toggle-icon-opened fas fa-caret-up"></i></span>
													</span>
												<a class="elementor-toggle-title" tabindex="0">Gaussian Concentration Heatmap</a>
					</div>

					<div id="elementor-tab-content-1903" class="elementor-tab-content elementor-clearfix" data-tab="3" role="region" aria-labelledby="elementor-tab-title-1903">
<pre class="wp-block-code has-black-background-color has-background"><code class="language-python line-numbers" lang="python">
# Importing libraries
import numpy as np
import pandas as pd
import seaborn as sns
from scipy.stats import norm
import matplotlib.pyplot as plt

# Function to simulate coin toss
def coin_toss(n, deviation):
    coin = np.random.choice([0, 1], size=n)  # Simulating coin toss
    proportion = np.mean(coin)  # Calculating proportion of Heads
    concentration = 2 * np.exp(-2 * n * deviation**2)  # Calculating Gaussian concentration
    return proportion, concentration

# Parameters for simulation
n_values = [10, 20, 30, 40, 50, 75, 100, 500, 1000, 10000]
deviation_values = [0.01, 0.03, 0.05, 0.07, 0.1, 0.15, 0.2, 0.25, 0.3, 0.5]

# Simulation and calculation of Gaussian concentration for each combination of parameters
results = []
for n in n_values:
    row = []
    for deviation in deviation_values:
        proportion, concentration = coin_toss(n, deviation)
        row.append(concentration)
    results.append(row)

# Creating DataFrame from results
df = pd.DataFrame(results, columns=deviation_values, index=n_values)

# Displaying results as a table
print("Number of coin tosses\t", end="")
for deviation in deviation_values:
    print(f"Deviation {deviation}\t", end="")
print()
for i, n in enumerate(n_values):
    row_str = f"{n}\t\t"
    for j, deviation in enumerate(deviation_values):
        row_str += f"{results[i][j]:.3e}\t"
    print(row_str)

# Creating heatmap with Seaborn
plt.figure(figsize=(12, 8))
sns.heatmap(data=df, annot=True, cmap="Reds", fmt=".2e", cbar=True, cbar_kws={'label': 'Gaussian concentration'})
plt.xlabel("Deviation")
plt.ylabel("Number of coin tosses")
plt.title("Gaussian concentration as a function of the deviation and the number of coin tosses")
plt.show()


</code></pre>
</div>
				</div>
							<div class="elementor-toggle-item">
					<div id="elementor-tab-title-1904" class="elementor-tab-title" data-tab="4" role="button" aria-controls="elementor-tab-content-1904" aria-expanded="false">
												<span class="elementor-toggle-icon elementor-toggle-icon-left" aria-hidden="true">
															<span class="elementor-toggle-icon-closed"><i class="fas fa-caret-right"></i></span>
								<span class="elementor-toggle-icon-opened"><i class="elementor-toggle-icon-opened fas fa-caret-up"></i></span>
													</span>
												<a class="elementor-toggle-title" tabindex="0">Gaussian Concentration table</a>
					</div>

					<div id="elementor-tab-content-1904" class="elementor-tab-content elementor-clearfix" data-tab="4" role="region" aria-labelledby="elementor-tab-title-1904">
<pre class="wp-block-code has-black-background-color has-background"><code class="language-python line-numbers" lang="python">
# Importing libraries
import numpy as np
import pandas as pd
import seaborn as sns
from scipy.stats import norm
import matplotlib.pyplot as plt

# Function to simulate coin toss
def coin_toss(n, deviation):
    coin = np.random.choice([0, 1], size=n)  # Simulating coin toss
    proportion = np.mean(coin)  # Calculating proportion of Heads
    concentration = 2 * np.exp(-2 * n * deviation**2)  # Calculating Gaussian concentration
    return proportion, concentration

# Parameters for simulation
n_values = [10, 20, 30, 40, 100, 500, 1000]
deviation_values = [0.01, 0.03, 0.05, 0.1, 0.2]

# Simulation and calculation of Gaussian concentration for each combination of parameters
results = []
for n in n_values:
    row = []
    for deviation in deviation_values:
        proportion, concentration = coin_toss(n, deviation)
        row.append(concentration)
    results.append(row)

# Creating DataFrame from results
df = pd.DataFrame(results, columns=deviation_values, index=n_values)

# Displaying results as a table
print("Number of coin tosses\tDeviation 0.01\tDeviation 0.03\tDeviation 0.05\tDeviation 0.1\tDeviation 0.2")
for i, n in enumerate(n_values):
    row_str = f"{n}\t\t"
    for j, deviation in enumerate(deviation_values):
        row_str += f"{results[i][j]:.3e}\t"
    print(row_str)

# Creating the graph with Seaborn
sns.set(style="whitegrid")
plt.figure(figsize=(10, 6))
sns.lineplot(data=df, markers=True, dashes=False)
plt.xlabel("Number of coin tosses")
plt.ylabel("Gaussian concentration")
plt.title("Gaussian concentration as a function of the number of coin tosses and the deviation")
plt.legend(title="Deviation")
plt.show()



</code></pre>
</div>
				</div>
							<div class="elementor-toggle-item">
					<div id="elementor-tab-title-1905" class="elementor-tab-title" data-tab="5" role="button" aria-controls="elementor-tab-content-1905" aria-expanded="false">
												<span class="elementor-toggle-icon elementor-toggle-icon-left" aria-hidden="true">
															<span class="elementor-toggle-icon-closed"><i class="fas fa-caret-right"></i></span>
								<span class="elementor-toggle-icon-opened"><i class="elementor-toggle-icon-opened fas fa-caret-up"></i></span>
													</span>
												<a class="elementor-toggle-title" tabindex="0">Players Ruin Simulation</a>
					</div>

					<div id="elementor-tab-content-1905" class="elementor-tab-content elementor-clearfix" data-tab="5" role="region" aria-labelledby="elementor-tab-title-1905">
<pre class="wp-block-code has-black-background-color has-background"><code class="language-python line-numbers" lang="python">

import numpy as np
import matplotlib.pyplot as plt

def simulate_ruin(player_a_amount, player_b_amount, win_probability):
    """
    Simulates the ruin of two players in a gambling game and returns the number of rounds played.
    
    Args:
        player_a_amount (int): Initial amount of money for player A.
        player_b_amount (int): Initial amount of money for player B.
        win_probability (float): Probability of winning a bet.
        
    Returns:
        int: Number of rounds played until one of the players goes broke.
    """
    rounds = 0
    
    while player_a_amount > 0 and player_b_amount > 0:
        # Simulate a round of the game
        if np.random.rand() < win_probability:
            player_a_amount += 1  # Player A wins
            player_b_amount -= 1  # Player B loses
        else:
            player_a_amount -= 1  # Player A loses
            player_b_amount += 1  # Player B wins
        
        rounds += 1
    
    return rounds

def simulate_ruin_visual(player_a_amount, player_b_amount, win_probability):
    """
    Simulates the ruin of two players in a gambling game with a biased coin and visualizes the results.
    
    Args:
        player_a_amount (int): Initial amount of money for player A.
        player_b_amount (int): Initial amount of money for player B.
        win_probability (float): Probability of winning a bet.
    """
    player_a_history = [player_a_amount]
    player_b_history = [player_b_amount]
    rounds = 0
    
    while player_a_amount > 0 and player_b_amount > 0:
        # Simulate a round of the game with a biased coin
        if np.random.rand() < win_probability:
            player_a_amount += 1  # Player A wins
            player_b_amount -= 1  # Player B loses
        else:
            player_a_amount -= 1  # Player A loses
            player_b_amount += 1  # Player B wins
        
        rounds += 1
        player_a_history.append(player_a_amount)
        player_b_history.append(player_b_amount)
    
    # Plot the results
    plt.plot(player_a_history, label='Geralt fortune')
    plt.plot(player_b_history, label='Casino fortune')
    plt.xlabel('Rounds')
    plt.ylabel('Amount')
    plt.title('Players Ruin Simulation (Balanced Coin)')
    plt.legend()
    plt.grid()
    plt.show()

# Parameters
player_a_amount = 1000  # Initial amount of money for player A
player_b_amount = 1000  # Initial amount of money for player B
win_probability = 0.5  # Probability of winning a bet (balanced coin)

# Perform the simulation and get the number of rounds played
rounds_played = simulate_ruin(player_a_amount, player_b_amount, win_probability)
print("Number of rounds played:", rounds_played)

# Perform the simulation and visualize the results
simulate_ruin_visual(player_a_amount, player_b_amount, win_probability)




</code></pre>
</div>
				</div>
								</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-e44b304 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="e44b304" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-37d46d7" data-id="37d46d7" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap">
							</div>
		</div>
					</div>
		</section>
				</div>
		<p>The article <a href="https://theeventhorizons.com/toss-a-coin/">Toss a Coin to Your Witcher</a> first appeared on <a href="https://theeventhorizons.com">The Event Horizons</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theeventhorizons.com/toss-a-coin/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
