<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Hayrunisa ipek on Medium]]></title>
        <description><![CDATA[Stories by Hayrunisa ipek on Medium]]></description>
        <link>https://medium.com/@hayrunisaipek?source=rss-460ff4334f32------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*BuIWPKyuEdt2WYN8t47QzA.jpeg</url>
            <title>Stories by Hayrunisa ipek on Medium</title>
            <link>https://medium.com/@hayrunisaipek?source=rss-460ff4334f32------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 04:19:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hayrunisaipek/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Anatomy of Magnetism and Electromagnets]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@hayrunisaipek/anatomy-of-magnetism-and-electromagnets-883879323529?source=rss-460ff4334f32------2"><img src="https://cdn-images-1.medium.com/max/2400/1*I9z74d_JaLd0bcwGP6JYyg.png" width="2400"></a></p><p class="medium-feed-snippet">In this part of our article series examining the systems that form the foundation of engineering and modern industry, we focus on the art&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@hayrunisaipek/anatomy-of-magnetism-and-electromagnets-883879323529?source=rss-460ff4334f32------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@hayrunisaipek/anatomy-of-magnetism-and-electromagnets-883879323529?source=rss-460ff4334f32------2</link>
            <guid isPermaLink="false">https://medium.com/p/883879323529</guid>
            <category><![CDATA[physics]]></category>
            <category><![CDATA[aircraft]]></category>
            <category><![CDATA[airlines]]></category>
            <dc:creator><![CDATA[Hayrunisa ipek]]></dc:creator>
            <pubDate>Tue, 21 Jul 2026 12:21:29 GMT</pubDate>
            <atom:updated>2026-07-21T12:21:29.993Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Prompt Engineering Fundamentals]]></title>
            <link>https://medium.com/@hayrunisaipek/prompt-engineering-fundamentals-a124ec66f4cd?source=rss-460ff4334f32------2</link>
            <guid isPermaLink="false">https://medium.com/p/a124ec66f4cd</guid>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[writing-prompt-response]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Hayrunisa ipek]]></dc:creator>
            <pubDate>Mon, 29 Jun 2026 18:05:54 GMT</pubDate>
            <atom:updated>2026-06-29T18:05:54.176Z</atom:updated>
            <content:encoded><![CDATA[<h3>Comprehensive Prompt Engineering Guide: From Basics to Advanced</h3><p>Interacting with artificial intelligence models is more than just putting the right words together in the right order. This guide aims to present the structural approaches, technical infrastructure, and advanced tactics in a single flow to help you get the maximum efficiency from language models.</p><h3>Chapter 1: Fundamentals and Communication Framework</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tdd_DJ269hbrWHuYXLyagQ.png" /><figcaption><a href="https://claude.ai/new">Figure 1</a>: What is a Prompt?</figcaption></figure><h4>1.1 What is a Prompt, Who is a Prompt Engineer?</h4><p>Prompts (requests or commands) are the texts you enter to communicate with artificial intelligence tools and request them to perform a specific action.</p><p>Understanding the working logic of the system is quite simple: You can think of artificial intelligence models as assistants who are eager to help you but need accurate and complete guidance. The more clear, well-defined, and detailed instructions you give to your assistant, the more the outcome will match your expectations. The fundamental rule of the job is being able to express your intention with such clarity that it leaves no room for the other party to make assumptions.</p><h4>1.2 Application: Weak and Effective Prompts with CRTF</h4><p>A specific structure is needed to create a good instruction. The CRTF (Context, Role, Task, Format) model provides this structure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n1gtEkSJY-aRhw-PL6aZig.png" /><figcaption><a href="https://claude.ai/new">Figure 2</a>: Weak vs. Effective Prompt with CRTF</figcaption></figure><p>Let’s examine this topic through the example of a daily tailor:</p><p><strong>Weak Prompt</strong>: “Sew me a suit.” (The result will likely be disappointing because the tailor does not know your measurements, the fabric, or the purpose of the suit.)</p><p><strong>Effective Prompt (CRTF):</strong></p><ul><li><strong>Context</strong>: “I am attending a close friend’s wedding in a summer resort area next month.”</li><li><strong>Role</strong>: “You are an expert tailor with 20 years of experience, specializing in Italian cuts.”</li><li><strong>Task</strong>: “I want you to sew me a suit made of breathable, thin linen fabric in light gray tones.”</li><li><strong>Format</strong>: “List the delivery date of the suit, the price per meter of the fabric to be used, and the total cost in bullet points.”</li></ul><h3>Chapter 2: Fundamentals of Large Language Models (LLM)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GsuGXotRoA4pQMY0OQKcHw.png" /><figcaption><a href="https://claude.ai/new">Figure 3</a>: LLM Fundamentals.</figcaption></figure><p>To manage these models, you need a basic understanding of how they think.</p><p><strong>2.1 How do LLMs Work?</strong> Large language models are essentially advanced word prediction engines. They analyze the flow of a sentence to select the most logical next word. They work much like a chef who guesses which spice should be added to a dish by looking at the ingredients in the pot.</p><p><strong>2.2 Temperature and Top-P</strong> These two settings determine the creativity level of the model.</p><ul><li><strong>Temperature:</strong> Determines how strictly the recipe is followed. A low temperature (0.0) is like a chef following a traditional recipe gram by gram; the result is predictable and consistent. A high temperature (1.0) allows the chef to improvise; the result is surprising and diverse.</li><li><strong>Top-P:</strong> Represents the range of ingredients the chef can use. A low Top-P means putting only the 3–4 most common spices on the table, while a high Top-P makes the entire pantry available.</li></ul><p><strong>2.3 Perplexity</strong> This value measures how “surprised” or “confused” the model is when faced with a text. Low perplexity is good; it indicates that the model is familiar with the topic. It can be thought of as a master chef having no trouble while cooking a dish they know well.</p><p><strong>2.4 Token Cost Analysis</strong> Models process letters or syllables in chunks called “tokens.” Every word consumes a certain number of tokens, and systems are charged based on this count. It is like buying groceries by weight; the more instructions you give and the longer answers you request, the higher the cost.</p><p><strong>2.5 Prompt Selection via AB Testing</strong> This is the process of testing two different instructions written to achieve the same task. It is similar to trying two different recipes for a family dinner and measuring which one is better liked. You proceed by choosing the prompt that yields the best result.</p><h3>Chapter 3: Advanced Prompt Writing</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jFCOd85YNFXuOkagMlMdmA.png" /><figcaption><a href="https://claude.ai/new">Figure 4</a>: Advanced Prompting Techniques</figcaption></figure><p>Once you understand the system fundamentals, more advanced techniques are used to manage complex tasks.</p><p><strong>3.1 Zero-Shot, One-Shot, Few-Shot</strong> These techniques are ways of showing the model exactly how to perform a task using examples.</p><ul><li><strong>Zero-Shot:</strong> Telling someone, “Fold the napkin into a swan.” No example is provided.</li><li><strong>One-Shot:</strong> Showing only one finished swan example by saying, “You will fold the napkin like this.”</li><li><strong>Few-Shot:</strong> Showing a few different napkins folded like a swan, a fan, and a rose, then saying, “Make a new shape in this style.”</li></ul><p><strong>3.2 Chain of Thought</strong> Instead of asking for a direct result, you request the model to think step-by-step. When planning a vacation, instead of saying “Take me on a vacation,” you guide the thought process by saying, “First calculate my budget, then find suitable hotels, and finally book the plane ticket.” This method significantly reduces the model’s error margin.</p><p><strong>3.3 Role Prompting</strong> Assigning a specific expert identity to the model. It ensures that the model thinks like the requested expert rather than an ordinary person when answering. Instead of “How do I improve this kitchen layout?”, saying “How would you improve this layout as a 25-year industry kitchen designer?” completely changes the quality of the answer.</p><h3>Chapter 4: Real-Life Application</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NCcvB_hhBRFB3oYDTFQNvw.png" /><figcaption><a href="https://claude.ai/new">Figure 5</a>: Real Life Application (End-to-End Scenario)</figcaption></figure><p>Let us apply all the learned concepts from start to finish using the scenario of an annual holiday dinner for a large family.</p><p><strong>4.1 Defining the Application Area</strong> First, it is necessary to understand the situation. 30 people, ranging from elders to children, will attend. Some family members have allergies, and the dinner will be held in the host’s garden. The model is asked to create a plan considering these conditions (Context creation).</p><p><strong>4.2 Initial Analysis</strong> The basic requirements of the organization are determined. Where will the tables be set up, how many types of dishes will be cooked, and what is the shopping budget? You request the model to draw a general framework for these three main topics.</p><p><strong>4.3 Root Cause Analysis</strong> Problems from last year’s dinner are examined. Last year, food was served cold, and there were not enough chairs. You instruct the model to “Analyze the root causes of these problems by thinking step-by-step (Chain of Thought).” The model identifies timing errors during service and logistical shortcomings.</p><p><strong>4.4 SWOT Analysis</strong> The current state of the organization is evaluated.</p><ul><li><strong>Strengths:</strong> Having talented people to cook.</li><li><strong>Weaknesses:</strong> The kitchen area being too small to cook for 30 people.</li><li><strong>Opportunities:</strong> The weather being sunny, allowing the use of the garden.</li><li><strong>Threats:</strong> The possibility of sudden wind towards the evening.</li></ul><p>By providing this data to the model (in the role of an expert event planner — Role Prompting), you ask it to create risk management strategies.</p><p><strong>4.5 Executive Summary</strong> In line with all the analyses obtained, a one-page executive summary plan is created where everything from the menu to the seating arrangement is clarified (Low Temperature, clear format).</p><p><strong>4.6 Data Generation</strong> A full shopping list for the greengrocer, butcher, and market is created according to the determined menu. At this stage, you ask the model to categorize the items by their aisles so that time is not wasted at the market.</p><p><strong>4.7 Segmentation</strong> Finally, tasks are divided. You ask the model to group the people according to their ages and skills. The organization is completed by dividing them into groups: teenagers for moving and arranging tables (logistics), children for placing napkins (light tasks), and adults for cooking and serving (operations).</p><p>Artificial intelligence tools have now become an inseparable part of our lives. However, the potential of this technology is limited by how accurately we can guide it. Beyond being a complex technical detail, prompt engineering is a next-generation communication skill that is essential to learn in order to work efficiently with machines.</p><p>The clearer, more well-defined, and understandable framework you present to the system, the more high-quality and functional results you will get. Those who make a difference today and in the future will not just be those who have access to AI, but those who succeed in speaking its most accurate language.</p><p>Reference: <a href="https://gelecegiyazanlar.turkcell.com.tr/">Turkcell Geleceği Yazanlar</a> (Prompt Engineering).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a124ec66f4cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Are Missing Values in Data?]]></title>
            <link>https://medium.com/@hayrunisaipek/what-are-missing-values-in-data-ff2f22ea47dd?source=rss-460ff4334f32------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff2f22ea47dd</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Hayrunisa ipek]]></dc:creator>
            <pubDate>Thu, 23 Apr 2026 18:42:43 GMT</pubDate>
            <atom:updated>2026-04-23T18:42:43.182Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cZUR0AwB56FhIzT9zzZ1RQ.png" /></figure><p>One of the most common situations encountered when starting a data science project is that not every cell in the dataset is filled. Defined as Missing Values in technical literature, this concept refers to the loss of information in observations or the inability of a variable to be represented at that moment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*UuRaBPk3wsEE4LO6t-whDg.png" /><figcaption><a href="https://miuul.com/">Figure 2</a>: An example Dataset.</figcaption></figure><p>As seen in the dataset provided above, there are values written as ‘NA’. These expressions mean that the specific part is empty in the dataset. Resolving missing values is one of the main problems we need to focus on when working on the dataset.</p><p><strong>How to Manage Missing Data?</strong></p><p>There are three main strategies generally accepted in the literature and industry practices to properly manage the gaps (NA/NaN) in the dataset. The chosen method determines the course of the project depending on the nature of the data and the source of the missingness:</p><p><strong>1. Deletion Methods</strong></p><p>The deletion method, which is the fastest and most effortless approach, is the complete removal of observation units (rows) or variables (columns) containing missing values from the dataset. However, if the overall volume of the dataset is small, this method can lead to a serious loss of information and weaken the statistical power.</p><p><strong>2. Imputation Methods</strong></p><p>This is the filling of missing cells with statistical metrics to preserve the existing distribution in the dataset. Commonly, data integrity is maintained by assigning the mean or median for numerical variables, and the most frequent value (mode) for categorical variables.</p><p><strong>3. Predictive Methods</strong></p><p>In this method, which is the most advanced approach analytically, missing values are treated as dependent variables. Using other available variables, an answer to the question “what value should be here?” is sought through modeling via machine learning algorithms (KNN, Regression, etc.). This is the method that best preserves the correlation structure in the dataset.</p><p>Missing data management is one of both the most functional and the most open to manipulation areas of the data processing process. The main parameter to consider in order to avoid a strategic mistake at this stage is the randomness of the data. Randomness analysis is the process of determining whether the missingness in the data occurred through a completely random mechanism or if it contains a specific pattern or dependency between variables.</p><p>In the rest of the article, which methodological approaches should be adopted according to different scenarios will be detailed. However, the invariable rule in data science is this: Any kind of imputation or deletion process to be applied should not be started without analyzing the randomness nature of the data. This analysis is the most important threshold that protects the model’s generalization ability and the reliability of the results.</p><blockquote>“Directly removing observations with missing values from the dataset and not examining their randomness will reduce the reliability of the statistical inferences and modeling studies to be made.” (Alpar, 2011)</blockquote><blockquote>“In order to directly remove missing values from the dataset, the missingness in the dataset must have occurred partly in some cases and completely randomly in others. If the missingness has occurred due to structural problems arising in relation to the variables, then the deletion operations to be performed in this case can cause serious biases.” (Tabachnick and Fidell, 1966)</blockquote><p><strong>Conceptual Application: Structural Dependency Scenario</strong></p><p>In order to make these technical approaches more concrete, let’s have a sample scenario. Suppose we have a “Monthly Average Credit Card Expenditure” variable in our dataset. Let’s assume that missing values (NA) are observed in this variable at certain rates during the analysis process.</p><p>If these missing values occurred completely as a result of a random data entry error or a technical glitch, they do not pose a methodological problem. In this case, we can delete the observation or complete the dataset with simple imputation or predictive methods according to the need.</p><p>However, if these missing values did not occur randomly and are the result of a dependency, what path should we follow?</p><p>Let’s expand our scenario: Let’s consider that there is another variable called “Credit Card Ownership” in our dataset. In this setup, it is impossible for an individual without a credit card to make a credit card expenditure. The system might have assigned a value of “0” to the expenditure area for people without a card, or left it blank, and this situation might have been automatically represented as “NA” in the dataset.</p><p>Here, this situation is the emergence of a missingness in one variable directly depending on the status of another variable; that is, it is a structural dependency.</p><p>This distinction is one of the most fundamental professional thresholds that determine the competence of a data scientist. The approach to missing data is a reflection of the ability to read data, beyond just a technical operation.</p><h3><strong>Application: Missing Value Analysis on the Titanic Dataset</strong></h3><p>In order to put theoretical approaches into practice, let’s carry out an application on the Titanic dataset, which is a classic dataset in the data science world.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LaaMH_Ehlb4MWsG9.jpg" /><figcaption><a href="https://www.kaggle.com/datasets/yasserh/titanic-dataset">Figure 3</a>: You can access the dataset here.</figcaption></figure><p><strong>1. Detecting Missing Values</strong></p><p>Before starting the analysis process, we need to complete the steps of importing the necessary libraries and loading the dataset:</p><pre>import numpy as np<br>import pandas as pd<br>import seaborn as sns<br>from matplotlib import pyplot as plt<br># !pip install missingno<br>import missingno as msno <br>from datetime import date<br>from sklearn.metrics import accuracy_score<br>from sklearn.model_selection import train_test_split<br>from sklearn.neighbors import LocalOutlierFactor<br>from sklearn.preprocessing import MinMaxScaler, LabelEncoder, StandardScaler, RobustScaler<br><br># Loading the dataset<br>df = pd.read_csv(&quot;datasets/titanic.csv&quot;)</pre><p>We use a functional approach to quickly detect the missing values in the dataset and see their proportion within the overall table. The missing_values_table function below captures the empty values in the dataset and provides us with a summary report:</p><pre>def missing_values_table(dataframe, na_name=False):<br>    na_columns = [col for col in dataframe.columns if dataframe[col].isnull().sum() &gt; 0]<br><br>    n_miss = dataframe[na_columns].isnull().sum().sort_values(ascending=False)<br>    ratio = (dataframe[na_columns].isnull().sum() / dataframe.shape[0] * 100).sort_values(ascending=False)<br>    missing_df = pd.concat([n_miss, np.round(ratio, 2)], axis=1, keys=[&#39;n_miss&#39;, &#39;ratio&#39;])<br>    print(missing_df, end=&quot;\n&quot;)<br><br>    if na_name:<br>        return na_columns<br><br>missing_values_table(df)</pre><p>To elaborate on the function; first, we filter the variables with missing values and assign them to the na_columns list. Then, we assign the total amount of missing values in these variables to the n_miss variable, and their ratio to the entire dataset to the ratio variable. In the final step, by combining these two data points, we obtain a clear table showing both the numerical and percentage distribution of the missing values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/355/0*Zbc2xkQOkEkOaCpo.png" /><figcaption><a href="https://www.jetbrains.com/pycharm/">Figure </a>4: missing_values_table output.</figcaption></figure><p>Cabin (Cabin Number): Refers to the number of the cabin where the passenger stayed on the ship.</p><p>Age: Represents the age of the passenger.</p><p>Embarked (Port of Embarkation): Is a categorical variable indicating which port the passenger boarded the ship from. It contains 3 pieces of information: <strong>C</strong>, <strong>Q</strong>, and <strong>S</strong>.</p><p><strong>C</strong>: Cherbourg</p><p><strong>Q</strong>: Queenstown</p><p><strong>S</strong>: Southampton</p><p><strong>2. Solving the Missing Value Problem</strong></p><p>The next step after detecting the missing values is to decide how these gaps will be filled or managed without disrupting the overall structure of the dataset. Let’s examine these solutions through variables like Age and Embarked in the Titanic dataset.</p><p><strong>Solution 1: Quick Deletion</strong></p><p>The most radical and practical method is to completely delete the rows containing missing data. However, this method should be used carefully because it can significantly reduce the total number of observations in the dataset.</p><pre>missing_values_table(df)<br>df.dropna().shape</pre><p><strong>Solution 2: Simple Imputation Methods</strong></p><p>Filling the gaps with statistical metrics (imputation) to prevent data loss is one of the most frequently used methods in the industry.</p><p>For numerical variables like age, we can fill the gaps with measures of central tendency (mean or median). If there are outliers in the dataset, using the median provides a more robust result.</p><pre>df[&quot;Age&quot;].fillna(df[&quot;Age&quot;].mean()).isnull().sum()<br>df[&quot;Age&quot;].fillna(df[&quot;Age&quot;].median()).isnull().sum()<br>df[&quot;Age&quot;].fillna(0).isnull().sum()<br><br>#A more professional approach has been attempted using Apply.<br>df.apply(lambda x: x.fillna(x.mean()) if x.dtype != &quot;O&quot; else x, axis=0).head()<br>dff = df.apply(lambda x: x.fillna(x.mean()) if x.dtype != &quot;O&quot; else x, axis=0)<br>dff.isnull().sum().sort_values(ascending=False)</pre><p>Since a mathematical average cannot be calculated for categorical data, the most frequently occurring value, the Mode, is generally preferred.</p><pre>df[&quot;Embarked&quot;].fillna(df[&quot;Embarked&quot;].mode()[0]).isnull().sum()<br>df[&quot;Embarked&quot;].fillna(&quot;missing&quot;)#You could try filling it with &quot;missing&quot; and taking a different approach.<br>df.apply(lambda x: x.fillna(x.mode()[0]) if (x.dtype == &quot;O&quot; and len(x.unique())</pre><p>This apply function we wrote scans all columns in the dataset and captures the variables where the following two conditions are met simultaneously:</p><p><strong>x.dtype == &quot;O&quot;</strong>:The type of the variable must be “Object” (categorical/text).</p><p><strong>len(x.unique()) &lt;= 10</strong>: The number of unique values the variable has must be 10 or less.</p><p><strong>Why did we set the condition of 10?</strong> In data science, even if a variable is categorical (for example, “Name” or “Ticket Number”), if it contains a different value in each row, it is meaningless to take the mode (the most frequent value) of this variable. This code targets only <strong>classifiable (low-cardinality)</strong> variables such as “Gender”, “Port of Embarkation”, or “Passenger Class”. The “10” condition set here can be flexible depending on the business problem at hand and the categorical diversity in the dataset.</p><p><strong>3. Value Imputation by Categorical Variable Breakdown</strong></p><p>One of the biggest mistakes made when filling the gaps in the dataset is assigning a general mean to all observations. However, in heterogeneous datasets like Titanic, the age of a passenger varies not only according to the general mean, but it also changes according to sub breakdowns such as gender, class, or title.</p><p>In this section, we will examine step by step how we will fill the missing values in the <strong>“Gender” (Sex)</strong> breakdown, in other words, with a more specific approach.</p><pre>df.groupby(&quot;Sex&quot;)[&quot;Age&quot;].mean()#Shows averages broken down by gender.<br><br>#It fills in the blank spaces with the average values ​​of both genders.<br>df.loc[(df[&quot;Age&quot;].isnull()) &amp; (df[&quot;Sex&quot;]==&quot;female&quot;), &quot;Age&quot;] = df.groupby(&quot;Sex&quot;)[&quot;Age&quot;].mean()[&quot;female&quot;]<br><br>df.loc[(df[&quot;Age&quot;].isnull()) &amp; (df[&quot;Sex&quot;]==&quot;male&quot;), &quot;Age&quot;] = df.groupby(&quot;Sex&quot;)[&quot;Age&quot;].mean()[&quot;male&quot;]<br><br>df.isnull().sum()</pre><p><strong>4. Predictive Imputation Methods</strong></p><p>We will use the <strong>machine learning</strong> method to fill in the missing values. This method is not just about replacing a number, but making the most logical prediction by using the hidden patterns in the data.</p><p>So, how will we structure this process?</p><p><strong>The Role of Variables: </strong>We consider the column containing the missing value as the <strong>dependent variable (target)</strong>, and the other columns without missing values as <strong>independent variables (predictors)</strong>.</p><p>We have two critical steps before modeling:</p><p>First, since computers do not understand words, we convert categorical data (Gender, Port, etc.) into 0s and 1s (<strong>One-Hot Encoding</strong>). Second, because the KNN algorithm measures the “distance” between numbers, we bring all data to a similar scale (<strong>Standardization</strong>).</p><pre>def grab_col_names(dataframe, cat_th=10, car_th=20):<br>   &quot;&quot;&quot;<br><br>Provides the names of categorical, numerical, and categorical but cardinal variables in the dataset.<br>Note: Categorical variables also include numerical-looking categorical variables.<br><br>Parameters<br>------<br>    dataframe: dataframe<br>            The dataframe from which variable names are to be retrieved.<br>    cat_th: int, optional<br>            The class threshold value for variables that are numerical but categorical.<br>    car_th: int, optional<br>            The class threshold value for variables that are categorical but cardinal.<br><br>Returns<br>------<br>    cat_cols: list<br>            List of categorical variables.<br>    num_cols: list<br>            List of numerical variables.<br>    cat_but_car: list<br>            List of cardinal variables that appear to be categorical.<br><br>Notes<br>------<br>    cat_cols + num_cols + cat_but_car = total number of variables.<br>    num_but_cat is included within cat_cols.<br>    The sum of the three returned lists equals the total number of variables: <br>    cat_cols + num_cols + cat_but_car = number of variables.<br><br>&quot;&quot;&quot;<br><br>    # cat_cols, cat_but_car<br>    cat_cols = [col for col in dataframe.columns if dataframe[col].dtypes == &quot;O&quot;]<br>    num_but_cat = [col for col in dataframe.columns if dataframe[col].nunique() &lt; cat_th and<br>                   dataframe[col].dtypes != &quot;O&quot;]<br>    cat_but_car = [col for col in dataframe.columns if dataframe[col].nunique() &gt; car_th and<br>                   dataframe[col].dtypes == &quot;O&quot;]<br>    cat_cols = cat_cols + num_but_cat<br>    cat_cols = [col for col in cat_cols if col not in cat_but_car]<br><br>    # num_cols<br>    num_cols = [col for col in dataframe.columns if dataframe[col].dtypes != &quot;O&quot;]<br>    num_cols = [col for col in num_cols if col not in num_but_cat]<br><br>    return cat_cols, num_cols, cat_but_car<br><br>num_cols = [col for col in num_cols if col not in &quot;PassengerId&quot;]<br><br>dff = pd.get_dummies(df[cat_cols + num_cols], drop_first=True)</pre><p>In the predictive imputation stage, we first analyzed the data using the grab_col_names function and classified the variables into categorical, numerical, and noise-creating (cardinal) structures. Then, we excluded identification information such as PassengerId, which would not affect the predictive power of the model.</p><p>In the final step, since machine learning algorithms can only work with numbers, we converted all categorical data into a numerical standard consisting of 0s and 1s by applying <strong>One-Hot Encoding</strong> (pd.get_dummies). Thanks to this preparation, our dataset became completely ready for the modeling stage, where missing values will be predicted through their relationships with other variables.</p><pre>scaler = MinMaxScaler()<br>dff = pd.DataFrame(scaler.fit_transform(dff), columns=dff.columns)<br>dff.head()</pre><p>Since KNN measures distances, we do not want large numbers to overshadow smaller ones. We create a fair ground by scaling all data between 0 and 1 using <strong>MinMaxScaler</strong>.</p><p>You can think of this as converting an exam grade out of 100 and a 5-star rating score into a common unit to weigh them on the same scale. Thus, the model does not allow large values like “fare” to eliminate the effect of small values like “age” and gives an equal say to each variable.</p><pre>from sklearn.impute import KNNImputer<br>imputer = KNNImputer(n_neighbors=5)<br>dff = pd.DataFrame(imputer.fit_transform(dff), columns=dff.columns)<br>dff.head()<br><br>dff = pd.DataFrame(scaler.inverse_transform(dff), columns=dff.columns)<br><br>df[&quot;age_imputed_knn&quot;] = dff[[&quot;Age&quot;]]<br><br>df.loc[df[&quot;Age&quot;].isnull(), [&quot;Age&quot;, &quot;age_imputed_knn&quot;]]<br>df.loc[df[&quot;Age&quot;].isnull()]</pre><p>Operating on the logic of “Tell me who your friends are, and I will tell you who you are,” <strong>KNN </strong>finds the 5 most similar neighbors for a passenger with a missing age and assigns their average age to this gap. After the prediction process is complete, we use inverse_transform to revert all the values we previously scaled between 0 and 1 back to their actual age values (such as 22 or 35). When we check the results, we see that the previously empty rows are filled with the most suitable and realistic ages based on the passenger&#39;s other characteristics (ticket class, gender, etc.).</p><p>Missing value management is one of the most critical stages that demonstrates a data scientist’s technical skills and their depth of understanding the data. In this article, we started with the most radical method, <strong>deletion</strong>, examined <strong>statistical imputation</strong> methods, and finally took the process to a professional level with <strong>KNN-based predictive imputation</strong>, which uses the internal patterns of the data.</p><p>There are actually much more advanced and complex professional methods in the literature for missing data management. However, in this article, we focused on the approaches that are most preferred in modern data science workflows and best reflect analytical depth. We will talk about these advanced approaches in our next article. That is all for this article for now; stay safe, best regards.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff2f22ea47dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Are Outliers in Data?]]></title>
            <link>https://medium.com/@hayrunisaipek/what-are-outliers-in-data-2e1f5f276852?source=rss-460ff4334f32------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e1f5f276852</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Hayrunisa ipek]]></dc:creator>
            <pubDate>Wed, 22 Apr 2026 16:26:12 GMT</pubDate>
            <atom:updated>2026-04-22T16:30:51.678Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nVHKn-FKH43w6Cosxftbag.png" /></figure><p><strong>How do outliers affect our model and what problems do they cause?</strong></p><p>Observations that appear during the data analysis process and are quite outside the general trend of the data are called <strong>outliers</strong>. So, what exactly is this “general trend” we hear about so often, and how do outliers manipulate this trend?</p><h4>Who Bends the Line?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cmhZzm-k-5K02UUghNjcbw.png" /><figcaption>Figure 1: A scatter plot showing the relationship between x and y.</figcaption></figure><p>When you look at the graphs, you will notice that in the visual on the right, the direction (slope) of the linear line created by the model has changed. The main reason for this is that a few outliers added to the data “pull” the model toward their side. The direction and strength of the line representing the relationship between the two variables have changed; while there was a negative direction in the first graph, a positive direction has formed in the second graph. The effects of outliers are more severe, especially in linear problems. In tree-based methods, this effect is lower.</p><p><strong>How are Outliers Determined?</strong></p><p><strong>1- Sector Knowledge</strong></p><p><strong>2- Standard Deviation Approach</strong></p><p><strong>3- Z-Score Approach</strong></p><p><strong>4- Boxplot Method (IQR Method)</strong></p><h4><strong>1- Sector Knowledge</strong></h4><p>Imagine you are cleaning the dataset of a real estate website. You have information about the square meters of the houses.</p><ul><li><strong>Mathematical Perspective:</strong> 95% of the houses in the dataset are between 80 and 200 square meters. However, there is one data point that is exactly <strong>45 square meters</strong>. According to statistical models, this might be considered too small and could be marked as an “outlier” and deleted.</li><li><strong>Sector Knowledge Perspective:</strong> If you are familiar with the real estate industry, you know that the concept of “1+0” or “studio apartments” is very common in big cities. This 45-square-meter house is not an error; it is a reality of the market. If you delete it, your model will become unable to predict users looking for small apartments.</li></ul><p>Let’s consider the opposite situation: a house of <strong>1000 square meters</strong>. Statistically, this is definitely an outlier. However, sector knowledge tells you that this data could be a luxury villa or a private mansion. If your goal is to make a general price prediction, you can suppress this data (capping), but if you are doing a “luxury segment” analysis, this is your most valuable data.</p><p><strong>Conclusion</strong></p><p>Relying only on formulas when determining outliers can cause you to miss the “spirit” of the data. Before deleting or changing a value, ask yourself this question:</p><p>“Is this value extreme only mathematically, or does it have a real life equivalent?”</p><p>Remember; the best feature engineering emerges when you blend the data not just with numbers, but with experience from the field.</p><h4><strong>2- Standard Deviation Approach</strong></h4><p>We can think of standard deviation as a measure of how far a data point can deviate from the average a kind of “tolerance margin.”</p><p>Let’s create a simple scenario:</p><p>You are tracking the daily number of customers in a cafe. Let’s say your average is 10 people. Your standard deviation is 5.</p><ul><li><strong>Lower Limit:</strong> 10 – 5 = 5</li><li><strong>Upper Limit:</strong> 10 + 5 = 15</li></ul><p>According to this calculation, having between 5 and 15 customers in the cafe is considered “normal.” However, if only 2 people walk through the door one day, or if <strong>20</strong> people suddenly show up, this situation is an <strong>outlier</strong> for us. This is because these values have fallen outside the “safe zone” we defined.</p><p><strong>Coefficient and Threshold Value</strong></p><p>The real art of the job is hidden in the answer you give to the question, “Where is the outlier?”. You don’t always have to use 1 standard deviation. You are the one who decides how strict or flexible the data should be.</p><p>Let’s say you are on a production line and you want your error margin to be very low. Let’s assume your average is 100 and your standard deviation is 10. Let’s target “2 standard deviations above” here:</p><p><strong>Calculation:</strong> 10 * 2 = 20 (This is our flexibility margin)</p><p><strong>Threshold:</strong> 100 + 20 = 120</p><p>Now, every value above 120 is a reason for an alarm for you. The critical point here is the process of determining the <strong>Threshold</strong>. Where is the final acceptable point? This depends entirely on your business problem and the distribution of your data.</p><h4><strong>3- Z-Score Approach</strong></h4><p>In outlier analysis, the <strong>Z-Score</strong> is a standardization technique that brings data from different scales together on a common ground. The main goal of this method is to make the data unitless by adapting the relevant variable to the <strong>Standard Normal Distribution</strong> form.</p><p><strong>Methodological Process</strong></p><p>As a result of the Z-score, which is obtained by subtracting the mean from each observation and dividing it by the standard deviation, the new mean of the data set becomes 0, while the majority of the values settle within the <strong>-3 to +3</strong> range. This situation allows the analyst to measure all data on the same “ruler.”</p><p><strong>Application Example: Logistics Operations</strong></p><p>Let’s assume that the average delivery time in a cargo company is 24 hours, and the standard deviation is 4 hours:</p><ul><li><strong>Normal Data:</strong> The Z-score of a 28 hour delivery is 1 (1 unit away from the mean).</li><li><strong>Outlier Data:</strong> The Z-score of a 36 hour delivery is 3. This indicates a deviation that is far outside the operational flow.</li></ul><p>In this approach, the critical step for anomaly detection is drawing the acceptable limit. The general practice is to set the threshold values at the points passing <strong>2.5 units</strong> to the right and left of the mean.</p><p><strong>Decision Rule:</strong> Observations with a Z-score <strong>greater than 2.5</strong> or <strong>less than -2.5</strong> are considered “outliers” statistically and are either isolated from the dataset or suppressed.</p><p><strong>Conclusion:</strong> The Z-score filters out the noise in the data with mathematical discipline, allowing the model to produce more stable and universal results.</p><h4><strong>4- Boxplot (Interquartile Range — IQR) Method</strong></h4><p>One of the <strong>most common and reliable</strong> methods used to detect outliers in a dataset is the <strong>Interquartile Range (IQR)</strong>, or the quartiles range approach. This method is directly related to the <strong>Boxplot</strong>, which visualizes the distribution of the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j-b2jsGzhMnAfxPjUKWGMg.png" /><figcaption><a href="https://miuul.com/">Figure 2</a>: Boxplot</figcaption></figure><p><strong>Quartile Values and Building Blocks</strong></p><p>When starting the analysis, data is sorted from smallest to largest and divided into four main parts:</p><ul><li><strong>Q1 (25th Percentile):</strong> Represents the first quarter of the data.</li><li><strong>Q2 (Median 50%):</strong> The value that divides the data exactly in half. The line inside the box shows exactly this point.</li><li><strong>Q3 (75th Percentile):</strong> The point where three-quarters of the data is left behind.</li></ul><p><strong>IQR and Robust Structure</strong></p><p>This value, calculated with the formula IQR = Q3 – Q1, determines the width of the box. The biggest advantage of the IQR method is that it has a <strong>robust</strong> structure. While the mean and standard deviation are easily affected by extreme values and cause shifts, the Q1, Q2, and Q3 values are not affected by outliers because they are based on the accumulation at the center of the data. This allows us to make a healthier definition of “normal.”</p><p><strong>Application Example: Analysis via Age Variable</strong></p><p>Imagine you have sorted the age data in your hand from smallest to largest:</p><ul><li><strong>Scenario:</strong> Let the age where the youngest 25% bracket ends (<strong>Q1</strong>) be 20, and the age where the oldest 25% bracket starts (<strong>Q3</strong>) be 40.</li><li><strong>IQR Calculation:</strong> 40 – 20 = 20. In other words, the main body of the data is spread over a 20-year range.</li><li><strong>Determining the Threshold:</strong> The coefficient accepted in the literature is <strong>1.5</strong>.</li><li><strong>Upper Limit:</strong> Q3 + (1.5 * IQR) → 40 + (1.5 * 20) = 70$.</li><li><strong>Lower Limit:</strong> Q1 – (1.5 * IQR) → 20 – (1.5 * 20) = –10 (Since age cannot be negative, the lower limit is accepted as 0 here).</li></ul><p><strong>Decision Mechanism:</strong> As seen in the visual, points falling outside these limits are marked as “Outliers.” In our example, every individual <strong>over the age of 70</strong> is considered a statistical anomaly for this dataset.</p><p><strong>Conclusion:</strong> The Boxplot allows us to systematically filter out noisy data while preserving the central tendency (Median) and spread (IQR) of the data.</p><h3><strong>Application with the Titanic Dataset: Step-by-Step Outlier Analysis</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kSeSbj2Sc56OE2Au.jpg" /><figcaption><a href="https://www.kaggle.com/datasets/yasserh/titanic-dataset">Figure 3</a>: You can access the Titanic dataset by clicking the link.</figcaption></figure><p>To test theoretical approaches on a practical scenario, we will use the <strong>Titanic</strong> dataset, which is one of the cornerstones of data science literature. Our main focus in this analysis will be to detect anomalies in the <strong>“Age”</strong> variable of the passengers.</p><p><strong>1. Preparing the Libraries</strong></p><p>We begin by including the tools we need for the data preprocessing and visualization process into our “kitchen.” We will use the <strong>numpy</strong> library for statistical calculations, <strong>pandas</strong> for data manipulation, and the <strong>seaborn</strong> and <strong>matplotlib</strong> libraries for visualization.</p><pre>import numpy as np<br>import pandas as pd<br>import seaborn as sns<br>from matplotlib import pyplot as plt<br># !pip install missingno<br>import missingno as msno #a library used to visualize missing data<br>from datetime import date<br>from sklearn.metrics import accuracy_score<br>from sklearn.model_selection import train_test_split<br>from sklearn.neighbors import LocalOutlierFactor<br>from sklearn.preprocessing import MinMaxScaler, LabelEncoder, StandardScaler, RobustScaler</pre><p><strong>2. Configuring the Environment Settings</strong></p><p>When working with large datasets, the default display restrictions of Pandas can sometimes be annoying. To be able to see all columns during the analysis process and to increase the readability of numerical data, we make the following configurations:</p><pre>pd.set_option(&#39;display.max_columns&#39;, None)<br>pd.set_option(&#39;display.max_rows&#39;, None)<br>pd.set_option(&#39;display.float_format&#39;, lambda x: &#39;%.3f&#39; % x)<br>pd.set_option(&#39;display.width&#39;, 500)</pre><p><strong>3. Loading the Data and First Observation</strong></p><p>As the first step of the analysis, we include the raw data into our working environment. We obtain a preview of the structural characteristics of the data using the df.head() command.</p><pre>df = pd.read_csv(&quot;Feature_Engineering/datasets/titanic.csv&quot;)<br>df.head()#shows the first 5 rows from the beginning of the data</pre><p><strong>4. Visualizing the Distribution (Boxplot)</strong></p><p>We use a boxplot to understand how much the age variable deviates from its central tendency. This visualization provides us with quick preliminary information by marking observations that fall beyond the statistical limits as “dots.”</p><pre>sns.boxplot(x=df[&quot;Age&quot;])#provides information about the distribution of a &quot;age&quot;numerical variable.<br>plt.show()</pre><p><strong>5. Functionalizing the Thresholds</strong></p><p>To make the outlier detection process dynamic, we define a function. This function calculates the lower and upper limits by using the <strong>IQR</strong> method we discussed earlier.</p><pre>def outlier_thresholds(dataframe, col_name, q1=0.25, q3=0.75):<br>    quartile1 = dataframe[col_name].quantile(q1)<br>    quartile3 = dataframe[col_name].quantile(q3)<br>    interquantile_range = quartile3 - quartile1<br>    up_limit = quartile3 + 1.5 * interquantile_range<br>    low_limit = quartile1 - 1.5 * interquantile_range<br>    return low_limit, up_limit<br><br>outlier_thresholds(df, &quot;Age&quot;)</pre><p><strong>6. Outlier Check</strong></p><p>With the help of the threshold values we have determined, we create a control mechanism that allows us to quickly query whether there are any outliers within the variable.</p><pre>def check_outlier(dataframe, col_name):<br>    low_limit, up_limit = outlier_thresholds(dataframe, col_name)<br>    if dataframe[(dataframe[col_name] &gt; up_limit) | (dataframe[col_name] &lt; low_limit)].any(axis=None):<br>        return True<br>    else:<br>        return False<br><br>check_outlier(df, &quot;Age&quot;)</pre><p><strong>Conclusion</strong></p><p>Outlier management is not just a “cleaning” stage in the data preprocessing process, but the art of reading the data’s story correctly. As we have seen, combining statistical methods with functional programming provides both speed and objectivity in our analysis. It should not be forgotten that every outlier is not an error that must be deleted; sometimes, it is the most valuable information that will add depth to your model.</p><p>When determining outliers in your projects, do you rely only on formulas, or do you prioritize sector knowledge? Don’t forget to share your experiences in the comments. See you in the next Feature Engineering article. Best regards.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e1f5f276852" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Preparation (Bölüm 4)]]></title>
            <link>https://medium.com/@hayrunisaipek/data-preparation-b%C3%B6l%C3%BCm-4-a574dbbcadd3?source=rss-460ff4334f32------2</link>
            <guid isPermaLink="false">https://medium.com/p/a574dbbcadd3</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[crm]]></category>
            <category><![CDATA[veri-bilimi]]></category>
            <category><![CDATA[rfm-analysis]]></category>
            <category><![CDATA[rfm]]></category>
            <dc:creator><![CDATA[Hayrunisa ipek]]></dc:creator>
            <pubDate>Thu, 29 Jan 2026 20:40:10 GMT</pubDate>
            <atom:updated>2026-01-29T20:40:10.274Z</atom:updated>
            <content:encoded><![CDATA[<p>Herkese yeniden merhabalar. Serimize kaldığımız yerden devam ediyoruz.</p><p>Eğer bu yazıya yeni denk geldiyseniz; konuya tam hakim olabilmek adına serinin <strong>ilk bölümlerine göz atmanızı tavsiye ederim.</strong></p><p>Hatırlarsanız bir önceki bölümde veri setimizi genel hatlarıyla incelemiş ve yapısını anlamaya çalışmıştık. O inceleme sırasında karşımıza bazı <strong>düzeltilmesi gereken noktalar</strong> çıkmıştı: Negatif (iade) değerler ve eksik (boş) veriler…</p><p>Veriyi tanıdığımıza göre artık uygulama aşamasına geçebiliriz. Şimdi bu eksik ve hatalı kısımları düzenleyerek veri setimizi RFM analizine hazır hale getireceğiz.</p><h3>Adım 1: Eksik Verileri Temizleme</h3><p>İlk işlemimiz, veri setindeki boş değerlerden (özellikle Customer ID kısmından) kurtulmak olacak. Peki neden?</p><p>Çünkü RFM analizi, tamamen <strong>“Müşteri Odaklı”</strong> bir analizdir. Analiz yaparken şu soruyu sormamız gerekir: <em>“Kimliğini bilmediğimiz (Customer ID’si olmayan) bir müşterinin sadakatini ölçebilir veya ona özel bir strateji geliştirebilir miyiz?”</em> Cevap net: <strong>Hayır.</strong></p><p>Bu yüzden, klasik bir RFM analizi yaparken kimliği belirsiz kayıtlar üzerinden işlem yapmak mantıklı olmayacaktır.</p><blockquote><strong><em>Ufak Bir Not:</em></strong><em> Elbette veri biliminde tek bir doğru yol yoktur. Eğer veri setimizde boş değerlerin oranı çok yüksek olsaydı veya proje amacımız farklı olsaydı, bu verileri silmek yerine farklı istatistiksel yöntemlerle doldurma yoluna gidebilirdik. Ancak şu anki senaryomuzda en sağlıklı yöntem, bu eksik kayıtları analiz dışı bırakmaktır.</em></blockquote><p>O zaman gelin, temizlik işlemine başlayalım!</p><pre>df.isnull().sum()#boş değerlere baktık<br>df.dropna(inplace=True) #kalıcı şekilde sildik</pre><p>Şimdi veri setimizin transpozunu alalım. Bakalım ve yorumlayalım dağılımlarda sorun var mı aykırılık ve ya çarpıklık var mı?</p><pre>df.describe().T #transpose </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0botdXY_fEx0tj0Bpe7GrA.png" /><figcaption>kodun çıktısı</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y6A_hHuH-SK60uaS8F3dxQ.png" /><figcaption>kodun çıktısı — 2</figcaption></figure><p>Veri setinin genel sayısal özetine baktığımızda (describe tablosu), karşımıza çıkan rakamları doğru okumak analiz süreci için oldukça önemlidir.</p><p>Burada dikkatimizi çeken ve yorumlamamız gereken birkaç temel nokta var:</p><p><strong>1. Negatif Değerler</strong> Tabloda “Minimum” değerlere baktığımızda eksi (-) değerler görüyoruz. Giriş kısmında da bahsettiğimiz gibi; bunlar iadeleri veya iptal edilen işlemleri gösteriyor. Analize başlamadan önce bu değerleri düzenlememiz gerekecek.</p><p><strong>2. Ortalama ve Standart Sapma İlişkisi (Dengesizlik Var mı?)</strong> Veriyi yorumlarken bakmamız gereken en önemli detaylardan biri, <strong>Standart Sapma</strong> ile <strong>Ortalama</strong> arasındaki ilişkidir.</p><ul><li>Eğer standart sapma, ortalamadan belirgin şekilde yüksekse; orada bir çeşitlilik veya dağılım farkı var demektir.</li></ul><p>Verimize dönüp baktığımızda:</p><ul><li><strong>Price (Fiyat):</strong> Standart sapması ortalamanın üzerinde görünüyor. Bu durum, ürün fiyatlarının çok çeşitli olduğunu; yani mağazamızda çok ucuz ürünlerin de, pahalı ürünlerin de bulunduğunu gösterir.</li><li><strong>Quantity (Adet):</strong> Burada da standart sapma, ortalamanın oldukça üzerinde. İşte bu bize müşteri davranışları hakkında harika bir ipucu veriyor: Müşterilerimiz arasında standart bir alım alışkanlığı yok. Bazı müşteriler <strong>4–5 adet</strong> (perakende) ürün alırken, bazıları <strong>binlerce adet</strong> (toptan) ürün satın alıyor.</li></ul><blockquote><em>💡 </em><strong><em>Önemli Not:</em></strong><em> Bu yorumları yapabilmek, kod yazmaktan çok daha kritiktir. Çünkü veri biliminde veriyi nasıl düzenleyeceğimize ve hangi işlemleri uygulayacağımıza, işte bu tablodan çıkardığımız yorumlara göre karar veririz.</em></blockquote><pre>df = df[(df[&#39;Quantity&#39;] &gt; 0)] #satılmayan ürünleri baz almıyoruz<br>#fatura numarasını string değere çeviriyoruz<br>df[&quot;Invoice&quot;] = df[&quot;Invoice&quot;].astype(str)<br>#Fatura numarasında &#39;C&#39; yazan iadeleri veriden kaldırıyoruz(iadeler)<br>df = df[~df[&quot;Invoice&quot;].str.contains(&quot;C&quot;, na=False)]<br></pre><h3>Adım 2: İadeleri ve Negatif Değerleri Temizleme</h3><p>Fatura sistemlerinin çalışma mantığı gereği; satışlar sisteme pozitif (+) değerle kaydedilirken, müşteriden geri alınan ürünler (İade Faturaları veya Gider Pusulaları) negatif (-) olarak yansır. Eğer incelediğimiz dönemde, bir ürüne ait iade işlemi satıştan fazlaysa, toplam adedi eksi olarak görebiliriz.</p><p><strong>Peki bunu nasıl düzelteceğiz?</strong> Veriyi incelediğimizde, iade edilen faturaların numaralarının başında <strong>“C” (Cancellation/İptal)</strong> harfi olduğunu fark ediyoruz. İlk iş olarak, faturasında “C” kodu bulunan bu iade işlemlerini veri setimizden çıkarıyoruz.</p><p>Buna ek olarak, <strong>“Quantity” (Adet)</strong> değerinin <strong>0&#39;dan büyük</strong> olduğu işlemleri filtreliyoruz. Bunun sebebi çok basit: Bizim bir müşteriyi analiz edebilmemiz için, o müşterinin en az 1 tane bile olsa ürün <strong>satın almış</strong> olması gerekir. İadeler veya sıfır değerli işlemler “satın alma” davranışı olmadığı için bu kayıtları eliyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*T2sU26yHGKdudx8bEfjpvA.png" /><figcaption>boş değerleri kaldırdık</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FR4EQmBvwajy9edQDWdytA.png" /><figcaption>Kontrol sağladık(negatif değerler kalmamış)</figcaption></figure><p>Bir sonraki bölümde<strong> RFM metriklerini hesaplama</strong> konusuna giriş yapacağız. Sevgiler..❤</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a574dbbcadd3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bir veri setine RFM uygulamak (Bölüm 3)]]></title>
            <link>https://medium.com/@hayrunisaipek/bir-veri-setine-rfm-uygulamak-b%C3%B6l%C3%BCm-1-6d59587a0802?source=rss-460ff4334f32------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d59587a0802</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[rfm]]></category>
            <category><![CDATA[rfm-analysis]]></category>
            <category><![CDATA[crm]]></category>
            <dc:creator><![CDATA[Hayrunisa ipek]]></dc:creator>
            <pubDate>Wed, 28 Jan 2026 21:52:09 GMT</pubDate>
            <atom:updated>2026-01-28T22:00:22.468Z</atom:updated>
            <content:encoded><![CDATA[<p>Önceki yazımda RFM metriklerinden ve bu metriklerin matematiksel karşılıklarından bahsetmiştim. Şimdi bu bilgileri kullanarak gerçek bir veri seti üzerinde uygulama yapalım.</p><p>Kullanacağımız veri seti, CRM konusunu öğrenen kişilerin temelde RFM gibi alt başlıkları öğrenirken üzerinde çalıştığı ve konuyu kavradığı bir veri setidir. Bu veri setine Kaggle platformundan çok kolay bir şekilde erişebilirsiniz. (hatta linkini de vereyim:<a href="https://www.kaggle.com/datasets/ersany/online-retail-dataset">https://www.kaggle.com/datasets/ersany/online-retail-dataset</a>)</p><p>ilk başta veri setimizi pandas yardımıyla okutalım ve bir inceleyelim.</p><pre>import datetime as dt<br>import pandas as pd<br>pd.set_option(&#39;display.max_columns&#39;, None)#bütün sütunlar gelsin istersek<br># pd.set_option(&#39;display.max_rows&#39;, None)#bütün satırlar gelsin istersek<br>pd.set_option(&#39;display.width&#39;,500)<br>pd.set_option(&#39;display.float_format&#39;, lambda x: &#39;%.3f&#39; % x)#virgüden sonra 3 basamak gelsin<br><br>df_ = pd.read_excel(&quot;CRM_Analytics/Datasets/online_retail_II.xlsx&quot;, sheet_name=&quot;Year 2009-2010&quot;)#veri setimizi okuttuk<br>df = df_.copy()<br>df.head()#baştan ilk 5 satırı inceleyelim</pre><p>üstteki import ve veri setinin görünümünü ayarlarından sonra veri setinin ilk 5 satırı şu şekilde:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_6x_eSLUQmPdB0ik9bR7pA.png" /><figcaption>veri setinin baştan ilk beş satırının görünümü</figcaption></figure><p>Öncelikle küçük bir not: Aşağıdaki kod blokları gözünüzü korkutmasın. Veri biliminde asıl amaç, karmaşık kodlar yazmak değil; <strong>veriyi anlamak ve doğru yorumlayabilmektir.</strong> Kodlama yeteneği (“syntax” bilgisi) zamanla ve pratikle zaten gelişecektir. O yüzden odağınızı mantığa verin.</p><p>Şimdi sizden ricam, koda dalmadan önce veri setine şöyle bir bakmanız. Sütun isimleri bize ne anlatıyor?</p><ul><li>Invoice (Eşsiz(unique) fatura No),</li><li>StockCode (Ürün(eşsiz)No)</li><li>Quantity (Adet)</li><li>InvoiceDate (Fatura kesim tarihi)</li><li>Price (Ürünün birim fiyatı)</li><li>Customer ID (Eşsiz müşteri numarası)</li><li>Country (Müşterinin yaşadığı ülke)</li><li>Description (Ürün ismi(açıklamalı))</li></ul><p>Kendimize sormamız gereken ilk stratejik soru şu olmalı: <strong>“Biz RFM (Recency, Frequency, Monetary) analizi yapacağız. Peki, bu sütunlar dan hangileri bizim işimize yarayacak, hangileri sadece kalabalık?”</strong></p><p>Bunu kafamızda tarttıktan sonra, şimdi gelin veriyi biraz kurcalayalım. Veri setimizde boş değerler var mı? Mağazamızda kaç çeşit eşsiz ürün var? En çok ne satılıyor?</p><p>Verinin analizini yapmak için temel sorgularımızı çalıştıralım.</p><pre>df.shape #(satır, sütun)<br>df.isnull().sum() #boş değer var mı?<br><br># essiz urun sayisi nedir?<br>df[&quot;Description&quot;].nunique()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*t-Cjd3Gs5c5W2L3vsXtFug.png" /><figcaption>Kodun çıktısı</figcaption></figure><p>Çıktılara baktığımızda ilk göze çarpan detay; <strong>“Description”</strong> (Ürün Açıklaması) ve <strong>“Customer ID”</strong> (Müşteri Kimliği) sütunlarındaki boş değerler.</p><p>Burada stratejik bir karar vermemiz gerekiyor: Veri setimiz 525.461 satırdan oluşuyor. Evet, boş değerler üzerine farklı istatistiksel çalışmalar yapılabilir; ancak biz nokta atışı bir <strong>Müşteri Segmentasyonu (RFM)</strong> yapacağız. Mantıken, <strong>“kim olduğunu bilmediğimiz”</strong> (ID’si olmayan) bir müşterinin sadakatini ölçmemiz veya ona puan vermemiz mümkün değildir. Bu yüzden analizimizin sağlığı için ilerleyen adımlarda sadece kimliği belli olan verilerle yola devam edeceğiz.</p><p><strong>Ürünlerimize Gelince…</strong> “Description” sütunu, aslında mağazamızın vitrini. Hangi ürünlerin satıldığını buradan görüyoruz. Kodun en altındaki nunique (eşsiz sayı) çıktısı ise bize mağazamızın ne kadar zengin bir kataloğa sahip olduğunu gösteriyor. Bu sayı sayesinde mağazamızda binlerce farklı çeşit ürünün işlem gördüğünü anlamış oluyoruz.</p><pre>#en çok işlem görmüş ürünlerin ilk 5 adeti(faturaya yansımış)<br>df[&quot;Description&quot;].value_counts().head()<br><br>#Ürünlere göre toplam satış adetleri<br>df.groupby(&quot;Description&quot;).agg({&quot;Quantity&quot;: &quot;sum&quot;}).head(10)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*f6kGBe4mci8ZSGbqbTTpAg.png" /><figcaption>kod çıktıları</figcaption></figure><p>Kodları yazdık, çalıştırdık. Şimdi kod bloğuna değil, ekranımıza düşen <strong>sonuçlara (output)</strong> odaklanalım. Çünkü asıl hikaye orada gizli.</p><p>İlk tabloda mağazamızda en çok işlem gören, yani “best-seller” olan ilk 5 ürünü ve kaçar kez işlem gördüklerini net bir şekilde görüyoruz. Buraya kadar her şey harika.</p><p>Ancak, toplam satış adetlerine (Quantity) göz attığımızda karşımıza çok garip bir durum çıkıyor: <strong>Negatif Değerler!</strong></p><p>Bir dakika durup düşünelim; mantıken bir mağazadan <strong>“-5 tane”</strong> ürün satılabilir mi? Hayır. Veri dünyasında bu durum genellikle <strong>iadelerden</strong> veya <strong>iptal edilen işlemlerden</strong> kaynaklanır.</p><p><strong>Peki, hemen bu hatalı satırları siliyor muyuz?</strong> Şimdilik <strong>hayır.</strong> Şu an “Veri Keşfi” aşamasındayız. Hataları tespit ediyoruz. Veri Temizliği işlemini teşhisimiz bittikten sonra yapacağız.</p><p>O yüzden şimdilik bu “negatif değerler” bilgisini aklımızın bir köşesine <strong>“Düzeltilecekler”</strong> olarak not edip incelemeye devam ediyoruz.</p><pre>#adet olarak en çok satan ilk 5 ürün(büyükten küçüğe sıralanmış)<br>df.groupby(&quot;Description&quot;).agg({&quot;Quantity&quot;: &quot;sum&quot;}).sort_values(&quot;Quantity&quot;, ascending=False).head()<br><br>#kaç farklı fatura kesilmiş<br>df[&quot;Invoice&quot;].nunique()<br><br>#adet * birim<br>df[&quot;TotalPrice&quot;] = df[&quot;Quantity&quot;] * df[&quot;Price&quot;]<br><br>#her faturadaki ürünlerin toplam satışı<br>df.groupby(&quot;Invoice&quot;).agg({&quot;TotalPrice&quot;: &quot;sum&quot;}).head()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*STx3kE8TSBHK15qqtIwqjg.png" /><figcaption>Kodun çıktısı</figcaption></figure><p>Yukarıdaki kodlarla verinin genel fotoğrafını çektik. Artık neyle karşı karşıya olduğumuzu biliyoruz, yani kafamızda analiz süreciyle ilgili bir soru işareti kalmadı.</p><p>Belki dikkatinizi çekmiştir; tespit ettiğimiz hatalara (eksik ID’ler, negatif değerler) henüz dokunmadık. Sadece notlarımızı aldık. Çünkü bu bölümdeki temel amacımız; veriye kabataslak bir bakış atıp, sorunları tespit etmekti ve bunu da başarıyla gerçekleştirdik.</p><p>Artık teşhis belli! Bir sonraki bölümde, aldığımız bu notları uygulamaya döküp “Veri Temizliği” (Data Preprocessing) yapacağız ve RFM metriklerini hesaplayacağız. Bir sonraki bölümde görüşmek üzere. Sevgiler..❤</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d59587a0802" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RFM(RECENY,FREQUENCY,MONETARY) (Bölüm 2)]]></title>
            <link>https://medium.com/@hayrunisaipek/rfm-receny-frequency-monetary-9c643668b30c?source=rss-460ff4334f32------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c643668b30c</guid>
            <category><![CDATA[rfm-analysis]]></category>
            <category><![CDATA[crm]]></category>
            <dc:creator><![CDATA[Hayrunisa ipek]]></dc:creator>
            <pubDate>Wed, 21 Jan 2026 18:17:41 GMT</pubDate>
            <atom:updated>2026-01-28T21:59:15.652Z</atom:updated>
            <content:encoded><![CDATA[<p>Bir önceki yazımızda kabaca <strong>CRM</strong>’den bahsettim şimdide <strong>CRM</strong> çatısından devam ediyoruz ve <strong>RFM</strong> konusunu ele alıyoruz. <strong>RFM</strong> başlıkta görüldüğü gibi 3 adet metriğin baş harflerinden meydana geliyor gelin bunları detaylıca inceleyelim.</p><blockquote><strong>RECENCY(YENİLİK): </strong>CRM, özünde bir ilişki yönetimi olduğu için buradaki “Yenilik” kavramı, müşterinin ne zaman kayıt olduğu değil, <strong>bizimle en son ne zaman iletişime geçtiği</strong> (alışveriş yaptığı) anlamına gelir.</blockquote><blockquote>Bir müşterinin işlemi ne kadar “yeni” ise, bizim için o kadar değerlidir. Çünkü müşteri ilişkilerinin altın kuralı şudur: Mevcut müşteriyi elde tutmak, sıfırdan yeni bir müşteri kazanmaktan çok daha az maliyetlidir. Müşteriyi unutmamak ve unutturmamak gerekir.</blockquote><blockquote>Bu “sıcaklığı” ölçmenin matematiği de oldukça basittir:</blockquote><blockquote><strong><em>Recency = Analiz Yaptığımız Tarih — Müşterinin En Son Yaptığı Satın Alım Tarihi</em></strong></blockquote><blockquote>bu formülde çıkan sonuç (gün sayısı) ne kadar <strong>küçükse</strong>, müşteri bizim için o kadar ‘Yeni’ ve değerlidir.</blockquote><blockquote><strong>FREQUENCY (SIKLIK):</strong>Müşterinin mağazamızla ne kadar “sıkı fıkı” olduğunu gösteren metriktir. Teknik olarak; bir müşterinin toplamda kaç kez alışveriş yaptığını ifade eder.</blockquote><blockquote>Neden önemli? Çünkü bir kere gelip kaybolan müşteri ile her hafta gelen müşteri bizim için aynı değildir. Sıklık arttıkça, müşterinin sadakati de artıyor demektir. Formülü oldukça basittir:</blockquote><blockquote><strong>Frequency = Toplam İşlem Sayısı</strong></blockquote><blockquote>Recency’nin aksine burada matematik düzdür. Sayı ne kadar <strong>BÜYÜKSE</strong>, müşteri bizim için o kadar değerlidir. (50 kere gelen Ahmet, 1 kere gelen Mehmet’ten daha sadıktır.)</blockquote><blockquote><strong>MONETARY (PARASAL DEĞER): </strong>İşin “duygusal” kısmı (sadakat) bitti, şimdi “maddiyat” kısmına geliyoruz. :) Monetary; müşterinin bizden yaptığı alışverişler sonucunda kasamıza bıraktığı <strong>toplam parayı</strong> ifade eder.</blockquote><blockquote>Müşteri çok sık geliyor olabilir (Frequency yüksek), çok yeni de gelmiş olabilir (Recency iyi); ama eğer her seferinde çok düşük tutarlı ürünler alıyorsa, toplam değeri düşük kalabilir.</blockquote><blockquote><strong>Monetary = Toplam Harcama Tutarı</strong></blockquote><p>Şimdi RFM metriklerinin ne olduğunu öğrendik. Biraz bu metriklerle ilgili sorgulamalar yapmamız gerekli. Örneğin; <strong>hangi metrik bizim için daha önemli?</strong></p><p>Bu soru RFM konusunun bel kemiğidir. Çünkü bizim müşterileri segmente etmek için kullandığımız bir grafik (RF Grafiği) var. Bu grafik çok önemli; çünkü biz CRM’de sonuç olarak müşterilerin davranışlarına göre onları gruplayıp, ona göre aksiyonlar alıyoruz.</p><p>Şimdi size bu grafikten bahsedeceğim. (Ayrıca RFM konusunun sonunda da bir veri seti üzerinden adım adım uygulama gerçekleştireceğiz).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t9R4ayE0PjoUhVaTJsRRew.png" /><figcaption>RF grafiği</figcaption></figure><p>Şimdi bu grafik ne? Neden var? Biz müşterileri nasıl bu grafiğe göre gruplandırıyoruz? Tüm sorulara akılda kalıcı şekilde cevaplayacağım hiç merak etmeyin, sistem çok basit. Özellikle uygulama kısmında daha da iyi anlayacaksınız. Bir sonraki bölümde tüm detayları uygulama üzerinden anlatacağım. Sevgiler. :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c643668b30c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CRM Notlarım]]></title>
            <link>https://medium.com/@hayrunisaipek/crm-notlar%C4%B1m-ff8eda8221cd?source=rss-460ff4334f32------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff8eda8221cd</guid>
            <dc:creator><![CDATA[Hayrunisa ipek]]></dc:creator>
            <pubDate>Tue, 20 Jan 2026 17:17:28 GMT</pubDate>
            <atom:updated>2026-01-28T22:00:02.388Z</atom:updated>
            <content:encoded><![CDATA[<h3>CRM Notlarım (Bölüm 1)</h3><p>Herkese merhaba. Bu benim Medium’daki ilk yazım ve bu adımı attığım için oldukça heyecanlıyım. Veri bilimi alanında öğrendiklerimi hem pekiştirmek hem de bu alana ilgi duyanlarla paylaşmak için “CRM Notlarım” serisine başlıyorum.</p><p>Bu yazıda önce CRM (Müşteri İlişkileri Yönetimi) kavramına kısaca değinecek, ardından veri analitiği projelerinin vazgeçilmezi olan <strong>RFM</strong> konusuna giriş yapacağız. Amacım, bu konuyu hiç bilmeyen birinin bile rahatlıkla anlayabileceği sade bir rehber oluşturmak.</p><p><strong>CRM (Customer Relationship Management) Nedir?</strong> Kitabi tanımı bir kenara bırakırsak; CRM’i en basit haliyle <strong>“Müşteri Edinme ve Elde Tutma Sanatı”</strong> olarak tanımlayabiliriz. Bir şirketin müşterileriyle kurduğu ilişkiyi sadece sözlü iletişimle değil, veriye dayalı görsel teknikler ve analizlerle yönetmesidir.</p><p>Burada sıkça duyacağımız bir terim var: <strong>KPI (Key Performance Indicator)</strong>. Bunu da karmaşıklaştırmadan şöyle özetleyelim: Şirketin hedeflerine ulaşıp ulaşmadığını gösteren <strong>matematiksel karnelerdir.</strong> Nasıl ki biz öğrenciler dönem sonunda not ortalamamıza bakıp durumumuzu anlıyorsak, şirketler de başarılarını bu göstergelerle ölçer. Ama bu konuya biraz daha detaylı bakmakta fayda var.</p><h3>Şirketlerin Pusulası KPI (Key Performance Indicators) Nedir?</h3><p>Şirkette “İşler yolunda mı?” sorusunun cevabını nasıl vereceğiz? İşte burada devreye KPI, yani <strong>Temel Performans Göstergeleri</strong> giriyor.</p><p>Bunu en basit şöyle anlatabilirim: Biz okulda nasıl vize ve final notlarımıza bakıp dersten geçip kalacağımızı, ortalamamızın ne durumda olduğunu anlıyorsak; şirketler de performanslarını bu matematiksel göstergelerle ölçüyorlar.</p><p>Şimdi size en temel 5 KPI terimleri vereceğim bilmenizde fayda var:</p><ol><li><strong>Customer Acquisition Rate (Müşteri Kazanma Oranı):</strong> Şirketin belirli bir dönemde “ailemize :)” kattığı yeni müşteri yüzdesidir. Pazarlama ekibinin ne kadar iyi çalıştığını gösterir.</li><li><strong>Customer Retention Rate (Müşteri Elde Tutma Oranı):</strong> Mevcut müşterilerin ne kadarının bizi bırakmadığını, hala bizimle olduğunu gösterir. Sadakat oranı diyelim.</li><li><strong>Customer Churn Rate (Müşteri Terk Oranı):</strong> İşte en sevmediğimiz oran! Retention’ın tam tersidir. Müşterilerin bizi bırakıp gitme oranıdır. (Netflix üyeliğini iptal eden arkadaşınızı düşünün, o artık bir “Churn” olmuştur).</li><li><strong>Conversion Rate (Dönüşüm Oranı):</strong> Bu çok kritik. Mağazamıza veya sitemize gelen 100 kişiden kaçı sadece bakıp çıktı, kaçı bir şeyler satın aldı? İşte o “satın alanlar” bizim dönüşüm oranımızı oluşturur.</li><li><strong>Growth Rate (Büyüme Oranı):</strong> Şirketin genel olarak (ciro veya kullanıcı sayısı bazında) büyüme hızıdır.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yJVHZs4hX8YyihejBzw0DQ.png" /></figure><p>KPI’lar bizi yanıltabilir neden mi? Bunu güzel bir örnekler ele alalım.</p><h3><strong>Rakamların Tuzağına Düşmeyin: KAHORT(ortak özelliklere sahip bir grup insan) Analizi Neden Kullanırız?</strong></h3><p>KPI’lar ile performansa bakmak çok mantıklı, evet. Ancak verilere sadece yüzeysel bakarsak büyük bir tuzağa düşebiliriz. Gelin, durumu bir senaryo üzerinden inceleyelim:</p><p>Diyelim ki bir mağazamız var ve kapıdaki sayaçtan müşteri sayılarını takip ediyoruz:</p><ul><li><strong>1. Gün:</strong> 100 Müşteri</li><li><strong>2. Gün:</strong> 110 Müşteri</li><li><strong>3. Gün:</strong> 120 Müşteri</li></ul><p>Rakamlara ilk baktığımızda; <em>“Harika! Her gün büyüyoruz, işler tıkırında!”</em> diyebiliriz değil mi?</p><p><strong>Ama bu düşünce bir hata…</strong> Verinin derinlerine inip analiz ettiğimizde korkunç bir tabloyla karşılaşabiliriz: Aslında 1. gün gelen 100 müşterinin sadece 20&#39;si ertesi gün tekrar gelmiş (Retention düşük). Geriye kalan 80 kişi bizi terk etmiş (Churn olmuş). 2. gün gördüğümüz o kalabalık aslında tamamen <strong>yeni</strong> gelen insanlarmış.</p><p>Yani aslında <strong>“Büyümüyor, sadece delik bir kovaya sürekli su taşıyoruz.”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cSQhPAvybcSA6mnzlHwwYQ.png" /></figure><p>İşte KPI’ların bizi yanıltabileceği, genel ortalamaların yetersiz kaldığı bu noktada kahort diyor ki: “<strong>Ne KPI’ı ben varım diyor ben :)”</strong></p><p>Kısaca toparlayacak olursam; CRM, müşteriyle kurduğumuz ilişkinin çatısıdır. Ancak bu çatının sağlam durması için doğru analizlere ihtiyacımız var. Şimdi sözü daha fazla uzatmadan, bu analizlerin en popüleri ve en temel taşı olan <strong>RFM</strong> konusuna giriş yapalım. Bir sonraki konumuz olan <strong>RFM </strong>ile devam edeceğiz. Sevgiler :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff8eda8221cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>