<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: shreya</title>
    <description>The latest articles on DEV Community by shreya (@shreya2006).</description>
    <link>https://dev.to/shreya2006</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F99mvlsfu5tfj9m7ku25d.png</url>
      <title>DEV Community: shreya</title>
      <link>https://dev.to/shreya2006</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shreya2006"/>
    <language>en</language>
    <item>
      <title>Artificial Neural Networks (ANN)</title>
      <dc:creator>shreya</dc:creator>
      <pubDate>Wed, 02 Dec 2026 18:37:21 +0000</pubDate>
      <link>https://dev.to/shreya2006/artificial-neural-networks-ann-19kp</link>
      <guid>https://dev.to/shreya2006/artificial-neural-networks-ann-19kp</guid>
      <description>&lt;h1&gt;
  
  
  Artificial Neural Networks (ANN) Explained: A Beginner-Friendly Guide
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;By Data Science &amp;amp; Beyond (&lt;a class="mentioned-user" href="https://dev.to/shreya2006"&gt;@shreya2006&lt;/a&gt;)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Explore how computer systems learn patterns using interconnected&lt;br&gt;
artificial neurons.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction to ANN
&lt;/h2&gt;

&lt;p&gt;An Artificial Neural Network (ANN) is a machine learning model inspired&lt;br&gt;
by the structure and functioning of biological neural systems.&lt;/p&gt;

&lt;p&gt;It consists of interconnected artificial neurons that process&lt;br&gt;
information and learn patterns from data. ANNs are commonly used for&lt;br&gt;
classification, prediction and pattern recognition.&lt;/p&gt;

&lt;h2&gt;
  
  
  Architecture of an ANN
&lt;/h2&gt;

&lt;p&gt;A basic neural network contains three main types of layers.&lt;/p&gt;

&lt;h3&gt;
  
  
  Input Layer
&lt;/h3&gt;

&lt;p&gt;Receives the input features from a dataset. Each input unit represents a&lt;br&gt;
feature supplied to the model.&lt;/p&gt;

&lt;h3&gt;
  
  
  Hidden Layer
&lt;/h3&gt;

&lt;p&gt;Processes information using weights, biases and activation functions. A&lt;br&gt;
network can contain one or more hidden layers.&lt;/p&gt;

&lt;h3&gt;
  
  
  Output Layer
&lt;/h3&gt;

&lt;p&gt;Produces the final prediction or classification. Its structure depends&lt;br&gt;
on the task.&lt;/p&gt;

&lt;h2&gt;
  
  
  Important Components of an ANN
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Neurons:&lt;/strong&gt; Basic processing units of the network.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Weights:&lt;/strong&gt; Control the strength of connections between units.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Bias:&lt;/strong&gt; An additional adjustable parameter.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Activation function:&lt;/strong&gt; Introduces non-linearity so the network can
learn more complex patterns.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Loss function:&lt;/strong&gt; Measures the difference between predictions and
target values.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Optimizer:&lt;/strong&gt; Updates model parameters during training.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How an ANN Works
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt; Input data is supplied to the input layer.&lt;/li&gt;
&lt;li&gt; Neurons calculate weighted sums and add biases.&lt;/li&gt;
&lt;li&gt; Activation functions process the results.&lt;/li&gt;
&lt;li&gt; Information moves through the hidden layers.&lt;/li&gt;
&lt;li&gt; The output layer generates a prediction.&lt;/li&gt;
&lt;li&gt; A loss function compares predictions with actual values.&lt;/li&gt;
&lt;li&gt; Backpropagation calculates gradients, and an optimizer updates the
weights and biases to reduce the loss.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A neuron's pre-activation value can be represented as:&lt;/p&gt;

&lt;p&gt;[ z = &lt;code&gt;\sum&lt;/code&gt;{=tex}_i w_i x_i + b ]&lt;/p&gt;

&lt;p&gt;Where &lt;strong&gt;w&lt;/strong&gt; represents weights, &lt;strong&gt;x&lt;/strong&gt; represents inputs and &lt;strong&gt;b&lt;/strong&gt;&lt;br&gt;
represents bias. An activation function is then applied to this value.&lt;/p&gt;

&lt;h2&gt;
  
  
  Activation Functions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Sigmoid
&lt;/h3&gt;

&lt;p&gt;[ f(x) = &lt;code&gt;\frac{1}{1 + e^{-x}}&lt;/code&gt;{=tex} ]&lt;/p&gt;

&lt;p&gt;Produces values between 0 and 1. It is often used in the output layer&lt;br&gt;
for binary classification.&lt;/p&gt;

&lt;h3&gt;
  
  
  ReLU
&lt;/h3&gt;

&lt;p&gt;[ f(x) = &lt;code&gt;\max&lt;/code&gt;{=tex}(0, x) ]&lt;/p&gt;

&lt;p&gt;Returns zero for negative inputs and the input itself for positive&lt;br&gt;
inputs. ReLU is widely used in hidden layers.&lt;/p&gt;

&lt;h3&gt;
  
  
  Tanh
&lt;/h3&gt;

&lt;p&gt;[ f(x) = &lt;code&gt;\tanh&lt;/code&gt;{=tex}(x) ]&lt;/p&gt;

&lt;p&gt;Produces values between -1 and 1.&lt;/p&gt;

&lt;h2&gt;
  
  
  Training an ANN
&lt;/h2&gt;

&lt;p&gt;Training means adjusting the network parameters so that predictions&lt;br&gt;
become more accurate.&lt;/p&gt;

&lt;p&gt;A simplified training cycle includes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;Forward propagation:&lt;/strong&gt; Pass input data through the network.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Loss calculation:&lt;/strong&gt; Measure prediction error.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Backpropagation:&lt;/strong&gt; Calculate gradients of the loss with respect to
parameters.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Parameter update:&lt;/strong&gt; Use an optimizer to update weights and biases.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Repeat:&lt;/strong&gt; Continue over batches and training epochs.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The model is then evaluated on data that was not used for training to&lt;br&gt;
estimate how well it generalizes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Applications of ANN
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Image and speech recognition.&lt;/li&gt;
&lt;li&gt;  Medical decision-support research.&lt;/li&gt;
&lt;li&gt;  Fraud detection.&lt;/li&gt;
&lt;li&gt;  Sales forecasting.&lt;/li&gt;
&lt;li&gt;  Recommendation systems.&lt;/li&gt;
&lt;li&gt;  Natural language processing.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Advantages
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Learns complex patterns.&lt;/li&gt;
&lt;li&gt;  Can model nonlinear relationships.&lt;/li&gt;
&lt;li&gt;  Can work with large and varied datasets.&lt;/li&gt;
&lt;li&gt;  Useful for prediction and classification.&lt;/li&gt;
&lt;li&gt;  Can improve as training data and model design improve.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Limitations
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Often requires substantial training data.&lt;/li&gt;
&lt;li&gt;  Training can be computationally expensive.&lt;/li&gt;
&lt;li&gt;  May overfit the training data.&lt;/li&gt;
&lt;li&gt;  Can be difficult to interpret.&lt;/li&gt;
&lt;li&gt;  Requires careful selection of architecture and parameters.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Artificial Neural Networks are powerful machine learning models that&lt;br&gt;
learn patterns from data through interconnected layers. They are widely&lt;br&gt;
used in image recognition, forecasting, healthcare research and&lt;br&gt;
artificial intelligence. Understanding ANNs provides a foundation for&lt;br&gt;
exploring specialized architectures such as Convolutional Neural&lt;br&gt;
Networks and Recurrent Neural Networks.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Next in this series:&lt;/strong&gt; Convolutional Neural Networks (CNNs), which are&lt;br&gt;
especially useful for image and visual data.&lt;/p&gt;

&lt;h1&gt;
  
  
  deeplearning #machinelearning #ai #python
&lt;/h1&gt;

</description>
      <category>machinelearning</category>
      <category>datascience</category>
      <category>python</category>
    </item>
    <item>
      <title>Logistic Regression</title>
      <dc:creator>shreya</dc:creator>
      <pubDate>Wed, 02 Dec 2026 18:35:33 +0000</pubDate>
      <link>https://dev.to/shreya2006/logistic-regression-5a9k</link>
      <guid>https://dev.to/shreya2006/logistic-regression-5a9k</guid>
      <description>&lt;h1&gt;
  
  
  Logistic Regression Explained: A Beginner's Guide to Classification
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;By Data Science &amp;amp; Beyond (&lt;a class="mentioned-user" href="https://dev.to/shreya2006"&gt;@shreya2006&lt;/a&gt;)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Discover how Logistic Regression predicts categories using probability&lt;br&gt;
and classification techniques.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction to Logistic Regression
&lt;/h2&gt;

&lt;p&gt;Logistic Regression is a supervised machine learning algorithm commonly&lt;br&gt;
used for classification. It estimates the probability that an input&lt;br&gt;
belongs to a particular category.&lt;/p&gt;

&lt;p&gt;Unlike Linear Regression, which predicts continuous numerical values,&lt;br&gt;
Logistic Regression is used to predict categorical outcomes.&lt;/p&gt;

&lt;p&gt;Examples include: - Whether an email is spam or not spam. - Whether a&lt;br&gt;
customer is likely to purchase a product. - Whether a student is likely&lt;br&gt;
to pass or fail.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mathematical Formula
&lt;/h2&gt;

&lt;p&gt;Logistic Regression uses the sigmoid function to convert a linear score&lt;br&gt;
into a probability:&lt;/p&gt;

&lt;p&gt;[ P(Y=1) = &lt;code&gt;\frac{1}{1 + e^{-z}}&lt;/code&gt;{=tex} ]&lt;/p&gt;

&lt;p&gt;The linear score is:&lt;/p&gt;

&lt;p&gt;[ z = b_0 + b_1X_1 + b_2X_2 + &lt;code&gt;\cdots&lt;/code&gt;{=tex}+ b_nX_n ]&lt;/p&gt;

&lt;p&gt;Where:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;P(Y=1):&lt;/strong&gt; Estimated probability of the positive class.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;e:&lt;/strong&gt; Euler's mathematical constant.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;z:&lt;/strong&gt; Linear combination of input variables.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;b₀:&lt;/strong&gt; Intercept.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;b₁, b₂, ... bₙ:&lt;/strong&gt; Model coefficients.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;X₁, X₂, ... Xₙ:&lt;/strong&gt; Input features.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The sigmoid function returns a value between 0 and 1, which can be&lt;br&gt;
interpreted as a probability under the model.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Logistic Regression Works
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt; Collect and prepare the dataset.&lt;/li&gt;
&lt;li&gt; Identify input features and target categories.&lt;/li&gt;
&lt;li&gt; Calculate a linear combination of the input features.&lt;/li&gt;
&lt;li&gt; Apply the sigmoid function to the score.&lt;/li&gt;
&lt;li&gt; Estimate the probability of the positive class.&lt;/li&gt;
&lt;li&gt; Choose a decision threshold.&lt;/li&gt;
&lt;li&gt; Assign a predicted category based on that threshold.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A threshold of 0.5 is a common starting point for binary classification,&lt;br&gt;
but it is not mandatory. The best threshold depends on the task and the&lt;br&gt;
costs of false positives and false negatives.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practical Example: Predicting Student Results
&lt;/h2&gt;

&lt;p&gt;Suppose we want to estimate whether a student will pass or fail based on&lt;br&gt;
study hours.&lt;/p&gt;




&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;            Study hours  Estimated probability of Example prediction
                                          passing at 0.5 threshold
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                      1                      0.10 Fail

                      2                      0.25 Fail

                      3                      0.45 Fail

                      4                      0.65 Pass

                      5                      0.85 Pass
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;p&gt;If the estimated probability is 0.85, the model predicts the positive&lt;br&gt;
class (Pass) using a 0.5 threshold.&lt;/p&gt;

&lt;p&gt;These probabilities are illustrative examples, not results from a&lt;br&gt;
trained model.&lt;/p&gt;

&lt;h2&gt;
  
  
  Types of Logistic Regression
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Binary Logistic Regression
&lt;/h3&gt;

&lt;p&gt;Used when there are two possible classes, such as Pass/Fail or Yes/No.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Multinomial Logistic Regression
&lt;/h3&gt;

&lt;p&gt;Used when there are three or more unordered categories, such as Red,&lt;br&gt;
Blue and Green.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Ordinal Logistic Regression
&lt;/h3&gt;

&lt;p&gt;Used when target categories have a natural order, such as Low, Medium&lt;br&gt;
and High.&lt;/p&gt;

&lt;h2&gt;
  
  
  Applications
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Email spam detection
&lt;/h3&gt;

&lt;p&gt;Classifies messages as spam or legitimate.&lt;/p&gt;

&lt;h3&gt;
  
  
  Healthcare
&lt;/h3&gt;

&lt;p&gt;Estimates the probability of a particular medical outcome using relevant&lt;br&gt;
data.&lt;/p&gt;

&lt;h3&gt;
  
  
  Banking
&lt;/h3&gt;

&lt;p&gt;Helps estimate the likelihood of loan default.&lt;/p&gt;

&lt;h3&gt;
  
  
  Marketing
&lt;/h3&gt;

&lt;p&gt;Predicts whether a customer may purchase a product.&lt;/p&gt;

&lt;h2&gt;
  
  
  Advantages
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Relatively easy to understand and implement.&lt;/li&gt;
&lt;li&gt;  Provides probability estimates.&lt;/li&gt;
&lt;li&gt;  Computationally efficient for many classification tasks.&lt;/li&gt;
&lt;li&gt;  Works well when the relationship between features and log-odds is
approximately linear.&lt;/li&gt;
&lt;li&gt;  Provides a useful baseline for classification problems.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Limitations
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Assumes a linear relationship between features and log-odds.&lt;/li&gt;
&lt;li&gt;  May perform poorly with complex nonlinear decision boundaries.&lt;/li&gt;
&lt;li&gt;  Multicollinearity can affect coefficient estimates.&lt;/li&gt;
&lt;li&gt;  Feature engineering may be needed.&lt;/li&gt;
&lt;li&gt;  Outliers and influential observations can affect the model.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Linear Regression vs.&amp;nbsp;Logistic Regression
&lt;/h2&gt;




&lt;p&gt;Linear Regression                   Logistic Regression&lt;/p&gt;




&lt;p&gt;Predicts numerical values           Estimates class probabilities&lt;/p&gt;

&lt;p&gt;Used for regression tasks           Used for classification tasks&lt;/p&gt;

&lt;p&gt;Often models a continuous outcome   Models categorical outcomes&lt;/p&gt;

&lt;p&gt;Output can be any real value        Binary sigmoid output is between 0&lt;br&gt;
                                      and 1&lt;/p&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Logistic Regression is an important supervised machine learning&lt;br&gt;
algorithm for classification. It uses the sigmoid function to convert a&lt;br&gt;
linear score into a probability. Its simplicity, efficiency and&lt;br&gt;
probability estimates make it useful in healthcare, banking, marketing&lt;br&gt;
and many other fields.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Continue learning:&lt;/strong&gt; Read the next article in the &lt;em&gt;Deep Learning&lt;br&gt;
Explained&lt;/em&gt; series to understand how Artificial Neural Networks learn&lt;br&gt;
patterns from data.&lt;/p&gt;

&lt;h1&gt;
  
  
  machinelearning #datascience #python #ai
&lt;/h1&gt;

</description>
      <category>machinelearning</category>
      <category>python</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Linear Regression</title>
      <dc:creator>shreya</dc:creator>
      <pubDate>Wed, 02 Dec 2026 18:31:57 +0000</pubDate>
      <link>https://dev.to/shreya2006/linear-regression-4ngd</link>
      <guid>https://dev.to/shreya2006/linear-regression-4ngd</guid>
      <description>&lt;h1&gt;
  
  
  Linear Regression Explained: A Beginner-Friendly Guide
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;By Data Science &amp;amp; Beyond (&lt;a class="mentioned-user" href="https://dev.to/shreya2006"&gt;@shreya2006&lt;/a&gt;)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Explore one of the most important machine learning algorithms for&lt;br&gt;
predicting numerical values and understanding relationships between&lt;br&gt;
variables.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction to Linear Regression
&lt;/h2&gt;

&lt;p&gt;Linear Regression is a supervised machine learning algorithm used to&lt;br&gt;
predict a continuous numerical value based on one or more independent&lt;br&gt;
variables.&lt;/p&gt;

&lt;p&gt;It establishes a relationship between dependent and independent&lt;br&gt;
variables by fitting the best possible straight line through the&lt;br&gt;
available data.&lt;/p&gt;

&lt;p&gt;For example, we can use linear regression to predict: - House prices&lt;br&gt;
based on area and other property features. - Exam scores based on study&lt;br&gt;
hours. - Sales based on advertising expenses.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mathematical Formula
&lt;/h2&gt;

&lt;p&gt;The equation of simple linear regression is:&lt;/p&gt;

&lt;p&gt;[ Y = mX + C ]&lt;/p&gt;

&lt;p&gt;Where:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Y:&lt;/strong&gt; Predicted dependent variable.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;X:&lt;/strong&gt; Independent variable.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;m:&lt;/strong&gt; Slope of the regression line.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;C:&lt;/strong&gt; Y-intercept.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The model estimates the slope and intercept that best fit the training&lt;br&gt;
data. A common fitting method is ordinary least squares, which minimizes&lt;br&gt;
the sum of squared residuals.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Linear Regression Works
&lt;/h2&gt;

&lt;p&gt;A typical workflow is:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Collect a relevant dataset.&lt;/li&gt;
&lt;li&gt; Identify the independent variables (features) and dependent variable
(target).&lt;/li&gt;
&lt;li&gt; Clean and prepare the data.&lt;/li&gt;
&lt;li&gt; Fit a linear model to the training data.&lt;/li&gt;
&lt;li&gt; Calculate prediction errors.&lt;/li&gt;
&lt;li&gt; Estimate parameters that minimize squared errors.&lt;/li&gt;
&lt;li&gt; Evaluate the model and use it to predict new values.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For multiple input variables, the model can be written as:&lt;/p&gt;

&lt;p&gt;[ &lt;code&gt;\hat{y}&lt;/code&gt;{=tex} = b_0 + b_1x_1 + b_2x_2 + &lt;code&gt;\cdots&lt;/code&gt;{=tex}+ b_px_p ]&lt;/p&gt;

&lt;h2&gt;
  
  
  Practical Example: Predicting Exam Marks
&lt;/h2&gt;

&lt;p&gt;Suppose we want to estimate a student's exam marks from the number of&lt;br&gt;
hours studied.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Study hours   Exam marks
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;          1           20
          2           30
          3           40
          4           50
          5           60
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;The pattern can be represented by:&lt;/p&gt;

&lt;p&gt;[ &lt;code&gt;\text{Marks}&lt;/code&gt;{=tex} = 10 &lt;code&gt;\times&lt;/code&gt;{=tex}&lt;code&gt;\text{Hours}&lt;/code&gt;{=tex} + 10 ]&lt;/p&gt;

&lt;p&gt;If a student studies for 6 hours, the predicted marks are:&lt;/p&gt;

&lt;p&gt;[ 10 &lt;code&gt;\times 6&lt;/code&gt;{=tex} + 10 = 70 ]&lt;/p&gt;

&lt;p&gt;This is an illustrative dataset and equation, not a guarantee that study&lt;br&gt;
time alone determines exam performance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Applications of Linear Regression
&lt;/h2&gt;

&lt;h3&gt;
  
  
  House-price prediction
&lt;/h3&gt;

&lt;p&gt;Estimate property prices using features such as area, location and&lt;br&gt;
number of rooms.&lt;/p&gt;

&lt;h3&gt;
  
  
  Business and sales forecasting
&lt;/h3&gt;

&lt;p&gt;Estimate future sales from historical sales and marketing expenditure.&lt;/p&gt;

&lt;h3&gt;
  
  
  Education
&lt;/h3&gt;

&lt;p&gt;Study the relationship between study time and academic performance.&lt;/p&gt;

&lt;h3&gt;
  
  
  Healthcare research
&lt;/h3&gt;

&lt;p&gt;Analyze relationships between measurable variables in carefully designed&lt;br&gt;
datasets.&lt;/p&gt;

&lt;h2&gt;
  
  
  Advantages
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Simple and relatively easy to understand.&lt;/li&gt;
&lt;li&gt;  Easy to implement.&lt;/li&gt;
&lt;li&gt;  Computationally efficient for many datasets.&lt;/li&gt;
&lt;li&gt;  Helps explain relationships between variables.&lt;/li&gt;
&lt;li&gt;  Useful for predicting numerical outcomes.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Limitations
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Assumes the relationship is adequately represented by a linear
model.&lt;/li&gt;
&lt;li&gt;  Sensitive to outliers.&lt;/li&gt;
&lt;li&gt;  May perform poorly when relationships are complex or nonlinear.&lt;/li&gt;
&lt;li&gt;  Multicollinearity can make coefficient estimates unstable.&lt;/li&gt;
&lt;li&gt;  Predictions outside the range of training data can be unreliable.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Linear Regression is a fundamental algorithm in statistics and machine&lt;br&gt;
learning. It helps identify relationships between variables and predict&lt;br&gt;
continuous numerical outcomes. Although it has limitations, its&lt;br&gt;
simplicity, interpretability and efficiency make it an excellent&lt;br&gt;
starting point for learning machine learning.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;What would you like to explore next?&lt;/strong&gt; In the next article in this&lt;br&gt;
series, we'll look at Logistic Regression and how machine learning&lt;br&gt;
models predict categories rather than continuous values.&lt;/p&gt;

&lt;h1&gt;
  
  
  machinelearning #datascience #python #beginners
&lt;/h1&gt;

</description>
      <category>machinelearning</category>
      <category>datascience</category>
      <category>python</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
