{"embed":false,"podcast":"Data Skeptic","podcast_slug":"Data-Skeptic","tags":[],"thumbnail_url":"https://static.libsyn.com/p/assets/0/e/4/b/0e4bd71bb64c6e45/DS_-_New_Logo_assets_-_JL_DS_Logo_Stacked_-_Color_2.jpg","episode":"[MINI] Feed Forward Neural Networks","episode_slug":"Data-Skeptic-MINI-Feed-Forward-Neural-Networks","description":"Feed Forward Neural Networks In a feed forward neural network, neurons cannot form a cycle. In this episode, we explore how such a network would be able to represent three common logical operators: OR, AND, and XOR. The XOR operation is the interesting case. Below are the truth tables that describe each of these functions. AND Truth Table    Input 1 Input 2 Output     0 0 0   0 1 0   1 0 0   1 1 1    OR Truth Table    Input 1 Input 2 Output     0 0 0   0 1 1   1 0 1   1 1 1    XOR Truth Table    Input 1 Input 2 Output     0 0 0   0 1 1   1 0 1   1 1 0    The AND and OR functions should seem very intuitive. Exclusive or (XOR) if true if and only if exactly single input is 1. Could a neural network learn these mathematical functions? Let's consider the perceptron described below. First we see the visual representation, then the Activation function , followed by the formula for calculating the output.              Can this perceptron learn the AND function? Sure. Let  and  What about OR? Yup. Let  and  An infinite number of possible solutions exist, I just picked values that hopefully seem intuitive. This is also a good example of why the bias term is important. Without it, the AND function could not be represented. How about XOR? No. It is not possible to represent XOR with a single layer. It requires two layers. The image below shows how it could be done with two laters.      In the above example, the weights computed for the middle hidden node capture the essence of why this works. This node activates when recieving two positive inputs, thus contributing a heavy penalty to be summed by the output node. If a single input is 1, this node will not activate. Universal approximation theorem tells us that any continuous function can be tightly approximated using a neural network with only a single hidden layer and a finite number of neurons. With this in mind, a feed forward neural network should be adaquet for any applications. However, in practice, other network architectures and the allowance of more hidden layers are empirically motivated. Other types neural networks have less strict structal definitions. The various ways one might relax this constraint generate other classes of neural networks that often have interesting properties. We'll get into some of these in future mini-episodes.    Check out our recent blog post on how we're using  Periscope Data cohort charts. Thanks to Periscope Data for sponsoring this episode. More about them at periscopedata.com/skeptics","release_date":"24 Mar 2017","episode_embed_code":"<iframe src=\"https://api.pastimeapp.com/embed/Data-Skeptic-MINI-Feed-Forward-Neural-Networks\" height=\"170px\" width=\"100%\" style=\"width: 1px; min-width: 100%; border: 1px dashed rgba(0,0,0,0.1); border-radius: 10px\" frameborder=\"0\" scrolling=\"no\" loading=\"lazy\"></iframe>","episode_share_url":"https://api.pastimeapp.com/ep/Data-Skeptic-MINI-Feed-Forward-Neural-Networks","podcast_share_url":"https://api.pastimeapp.com/pod/Data-Skeptic","audio_url":"https://pscrb.fm/rss/p/mgln.ai/e/35/traffic.libsyn.com/secure/dataskeptic/feed-forward-neural-networks.mp3?dest-id=201630","ads":[],"meta":{"title":"Data Skeptic: [MINI] Feed Forward Neural Networks","description":"From Data Skeptic. Feed Forward Neural Networks In a feed forward neural network, neurons cannot form a cycle. In this episode, we explore how such a network would be able to represent three common logical operators: OR, AND, and XOR. The XOR operation is the interesting case. Below are the truth tables that describe each of these functions. AND Truth Table    Input 1 Input 2 Output     0 0 0   0 1 0   1 0 0   1 1 1    OR Truth Table    Input 1 Input 2 Output     0 0 0   0 1 1   1 0 1   1 1 1    XOR Truth Table    Input 1 Input 2 Output     0 0 0   0 1 1   1 0 1   1 1 0    The AND and OR functions should seem very intuitive. Exclusive or (XOR) if true if and only if exactly single input is 1. Could a neural network learn these mathematical functions? Let's consider the perceptron described below. First we see the visual representation, then the Activation function , followed by the formula for calculating the output.              Can this perceptron learn the AND function? Sure. Let  and  What about OR? Yup. Let  and  An infinite number of possible solutions exist, I just picked values that hopefully seem intuitive. This is also a good example of why the bias term is important. Without it, the AND function could not be represented. How about XOR? No. It is not possible to represent XOR with a single layer. It requires two layers. The image below shows how it could be done with two laters.      In the above example, the weights computed for the middle hidden node capture the essence of why this works. This node activates when recieving two positive inputs, thus contributing a heavy penalty to be summed by the output node. If a single input is 1, this node will not activate. Universal approximation theorem tells us that any continuous function can be tightly approximated using a neural network with only a single hidden layer and a finite number of neurons. With this in mind, a feed forward neural network should be adaquet for any applications. However, in practice, other network architectures and the allowance of more hidden layers are empirically motivated. Other types neural networks have less strict structal definitions. The various ways one might relax this constraint generate other classes of neural networks that often have interesting properties. We'll get into some of these in future mini-episodes.    Check out our recent blog post on how we're using  Periscope Data cohort charts. Thanks to Periscope Data for sponsoring this episode. More about them at periscopedata.com/skeptics","image":"https://static.libsyn.com/p/assets/0/e/4/b/0e4bd71bb64c6e45/DS_-_New_Logo_assets_-_JL_DS_Logo_Stacked_-_Color_2.jpg","twitter":{"card_type":"summary"}},"episode_data":{"id":1825694291,"guid":"e9b58d49df0695e019b3a061049edaa3","slug":"Data-Skeptic-MINI-Feed-Forward-Neural-Networks","title":"[MINI] Feed Forward Neural Networks","alias":null,"description":"Feed Forward Neural Networks <p>In a feed forward neural network, neurons cannot form a cycle. In this episode, we explore how such a network would be able to represent three common logical operators: OR, AND, and XOR. The XOR operation is the interesting case.</p> <p>Below are the truth tables that describe each of these functions.</p> <h3>AND Truth Table</h3>    Input 1 Input 2 Output     0 0 0   0 1 0   1 0 0   1 1 1    <h3>OR Truth Table</h3>    Input 1 Input 2 Output     0 0 0   0 1 1   1 0 1   1 1 1    <h3>XOR Truth Table</h3>    Input 1 Input 2 Output     0 0 0   0 1 1   1 0 1   1 1 0    <p>The AND and OR functions should seem very intuitive. Exclusive or (XOR) if true if and only if exactly single input is 1. Could a neural network learn these mathematical functions?</p> <p>Let's consider the perceptron described below. First we see the visual representation, then the Activation function , followed by the formula for calculating the output.</p> <p> </p>  <p> </p> <p></p> <p></p> <p></p> <p> </p>  <p> </p> <p>Can this perceptron learn the AND function?</p> <p>Sure. Let  and </p> <p>What about OR?</p> <p>Yup. Let  and </p> <p>An infinite number of possible solutions exist, I just picked values that hopefully seem intuitive. This is also a good example of why the bias term is important. Without it, the AND function could not be represented.</p> <p>How about XOR?</p> <p>No. It is not possible to represent XOR with a single layer. It requires two layers. The image below shows how it could be done with two laters.</p> <p> </p>  <p> </p> <p>In the above example, the weights computed for the middle hidden node capture the essence of why this works. This node activates when recieving two positive inputs, thus contributing a heavy penalty to be summed by the output node. If a single input is 1, this node will not activate.</p> <p>Universal approximation theorem tells us that any continuous function can be tightly approximated using a neural network with only a single hidden layer and a finite number of neurons. With this in mind, a feed forward neural network should be adaquet for any applications. However, in practice, other network architectures and the allowance of more hidden layers are empirically motivated.</p> <p>Other types neural networks have less strict structal definitions. The various ways one might relax this constraint generate other classes of neural networks that often have interesting properties. We'll get into some of these in future mini-episodes.</p> <p> </p> <p><a href=\"https://www.periscopedata.com/skeptics\" rel=\"noreferrer\" target=\"_blank\"></a></p> <p>Check out our recent blog post on how we're using <a href=\"https://dataskeptic.com/blog/sponsored/2017/periscope-data-cohort-charts\" rel=\"noreferrer\" target=\"_blank\"> Periscope Data cohort charts</a>.</p> <p>Thanks to Periscope Data for sponsoring this episode. More about them at <a href=\"https://www.periscopedata.com/skeptics\" rel=\"noreferrer\" target=\"_blank\">periscopedata.com/skeptics</a></p>","transcript":"","deepgram":null,"categories":"Technology,Science,Mathematics","duration":958,"episode_number":null,"season":null,"episode_type":null,"release_date":"2017-03-24T15:00:00.000Z","audio_url":"https://pscrb.fm/rss/p/mgln.ai/e/35/traffic.libsyn.com/secure/dataskeptic/feed-forward-neural-networks.mp3?dest-id=201630","image_url":null,"player_url":"/ep/Data-Skeptic-MINI-Feed-Forward-Neural-Networks","valid":true,"accessTier":null,"created":"2026-11-26T06:05:13.545Z","updated":"2026-11-26T06:05:13.545Z","podcastId":813,"podcast":{"id":813,"slug":"Data-Skeptic","name":"Data Skeptic","alias":null,"network":"","author":"Kyle Polich","rss_url":"http://dataskeptic.libsyn.com/rss","description":"The Data Skeptic Podcast features interviews and discussion of topics related to data science, statistics, machine learning, artificial intelligence and the like, all from the perspective of applying critical thinking and the scientific method to evaluate the veracity of claims and efficacy of approaches.","categories":"Technology,Science,Mathematics","itunes_type":null,"itunesTypeSource":null,"image_url":"https://static.libsyn.com/p/assets/0/e/4/b/0e4bd71bb64c6e45/DS_-_New_Logo_assets_-_JL_DS_Logo_Stacked_-_Color_2.jpg","thumbnail_url":"https://static.libsyn.com/p/assets/0/e/4/b/0e4bd71bb64c6e45/DS_-_New_Logo_assets_-_JL_DS_Logo_Stacked_-_Color_2.jpg","error":false,"errorSince":null,"errorReason":null,"feedChangedAt":null,"tagsEditedAt":null,"hiddenAt":null,"hiddenReason":null,"endedAt":null,"popularity":0,"language":null,"country":null,"countrySource":null,"created":"2016-11-04T23:15:00.583Z","updated":"2026-11-26T06:05:13.545Z","tags":[]},"captions":[]},"podcast_data":{"id":813,"slug":"Data-Skeptic","name":"Data Skeptic","alias":null,"network":"","author":"Kyle Polich","rss_url":"http://dataskeptic.libsyn.com/rss","description":"The Data Skeptic Podcast features interviews and discussion of topics related to data science, statistics, machine learning, artificial intelligence and the like, all from the perspective of applying critical thinking and the scientific method to evaluate the veracity of claims and efficacy of approaches.","categories":"Technology,Science,Mathematics","itunes_type":null,"itunesTypeSource":null,"image_url":"https://static.libsyn.com/p/assets/0/e/4/b/0e4bd71bb64c6e45/DS_-_New_Logo_assets_-_JL_DS_Logo_Stacked_-_Color_2.jpg","thumbnail_url":"https://static.libsyn.com/p/assets/0/e/4/b/0e4bd71bb64c6e45/DS_-_New_Logo_assets_-_JL_DS_Logo_Stacked_-_Color_2.jpg","error":false,"errorSince":null,"errorReason":null,"feedChangedAt":null,"tagsEditedAt":null,"hiddenAt":null,"hiddenReason":null,"endedAt":null,"popularity":0,"language":null,"country":null,"countrySource":null,"created":"2016-11-04T23:15:00.583Z","updated":"2026-11-26T06:05:13.545Z","tags":[]}}