<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Big Data on kenji.blog</title><link>http://kenji.blog/en/tags/big-data/</link><description>Recent content in Big Data on kenji.blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>kenjinote</copyright><lastBuildDate>Sat, 12 Sep 2026 12:00:00 +0900</lastBuildDate><atom:link href="http://kenji.blog/en/tags/big-data/index.xml" rel="self" type="application/rss+xml"/><item><title>The Trade-off Between Privacy and Convenience: The Fate of Personal Information in the Era of Big Data</title><link>http://kenji.blog/en/p/privacy-vs-convenience-big-data/</link><pubDate>Sat, 12 Sep 2026 12:00:00 +0900</pubDate><guid>http://kenji.blog/en/p/privacy-vs-convenience-big-data/</guid><description>&lt;img src="http://kenji.blog/p/privacy-vs-convenience-big-data/img/eyecatch.jpg" alt="Featured image of post The Trade-off Between Privacy and Convenience: The Fate of Personal Information in the Era of Big Data" />&lt;h1 id="the-trade-off-between-privacy-and-convenience-the-fate-of-personal-information-in-the-era-of-big-data">The Trade-off Between Privacy and Convenience: The Fate of Personal Information in the Era of Big Data
&lt;/h1>&lt;p>In today&amp;rsquo;s digital society, we generate enormous amounts of data in our daily lives. A wide variety of &amp;ldquo;big data&amp;rdquo;—such as smartphone location information, social media posts, online shopping purchase histories, and health data recorded by wearable devices—is constantly being collected. This data is essential for the evolution of AI (Artificial Intelligence) and the provision of personalized services, making our lives more convenient and richer.&lt;/p>
&lt;p>However, on the other hand, the risk of privacy infringement associated with the collection and use of personal information has emerged as a serious social issue. The risks lurking behind convenience have reached an undeniable scale, including data breaches, the provision of data to third parties without user consent, and concerns about a surveillance society by the state. This article provides an extremely detailed technical explanation of how technology and legal regulations are approaching the modern dilemma of this &amp;ldquo;trade-off between privacy and convenience,&amp;rdquo; along with the latest trends.&lt;/p>
&lt;h2 id="1-the-paradigm-of-a-data-driven-society-and-the-evolution-of-data-architecture">1. The Paradigm of a Data-Driven Society and the Evolution of Data Architecture
&lt;/h2>&lt;p>To collect and utilize data efficiently, companies are adopting various data architectures. There is an ongoing paradigm shift from the once-mainstream &amp;ldquo;Data Warehouse&amp;rdquo; to a &amp;ldquo;Data Lake&amp;rdquo; that centrally manages all data, including unstructured data, and now to a &amp;ldquo;Data Mesh,&amp;rdquo; which is a decentralized architecture.&lt;/p>
&lt;h3 id="centralized-data-lakes-and-anonymization-pipelines">Centralized Data Lakes and Anonymization Pipelines
&lt;/h3>&lt;p>A data lake is a storage repository that stores large amounts of raw data in its native format. However, using raw data containing PII (Personally Identifiable Information) directly for analysis causes serious compliance violations. Therefore, a strict &amp;ldquo;Anonymization Pipeline&amp;rdquo; is implemented between the data lake and the analysis environment.&lt;/p>
&lt;p>The figure below shows the flow of an anonymization pipeline in a typical centralized data lake.&lt;/p>
&lt;pre class="mermaid">
flowchart TD
A[&amp;#34;Data Sources (Web, IoT, Mobile)&amp;#34;] --&amp;gt;|&amp;#34;Ingestion&amp;#34;| B[&amp;#34;Raw Data Zone (Untouched)&amp;#34;]
B --&amp;gt;|&amp;#34;ETL Process&amp;#34;| C[&amp;#34;Anonymization &amp;amp; Cleansing Pipeline&amp;#34;]
C --&amp;gt;|&amp;#34;Pseudonymization / Tokenization&amp;#34;| D[&amp;#34;Trusted Zone (k-anonymized)&amp;#34;]
D --&amp;gt;|&amp;#34;Feature Engineering&amp;#34;| E[&amp;#34;Refined Zone (Ready for ML)&amp;#34;]
E --&amp;gt;|&amp;#34;Model Training&amp;#34;| F[&amp;#34;BI Tools &amp;amp; ML Models&amp;#34;]
C --&amp;gt;|&amp;#34;Audit Logs&amp;#34;| G[&amp;#34;Security &amp;amp; Compliance Hub&amp;#34;]
&lt;/pre>
&lt;p>In such pipelines, processes like hashing, masking, and encryption are automatically applied when data flows in. However, as discussed later, simple masking or pseudonymization cannot completely eliminate the risk of &amp;ldquo;Re-identification&amp;rdquo; through matching with other data sources.&lt;/p>
&lt;h2 id="2-a-deep-understanding-of-privacy-enhancing-technologies-pets">2. A Deep Understanding of Privacy-Enhancing Technologies (PETs)
&lt;/h2>&lt;p>The key to balancing privacy and data utilization is &amp;ldquo;Privacy-Enhancing Technologies (PETs)&amp;rdquo;. Here, we provide detailed mathematical definitions and technical implementations of the major PETs that play extremely important roles in modern big data analysis and machine learning.&lt;/p>
&lt;h3 id="21-k-anonymity-and-its-extensions">2.1 K-Anonymity and Its Extensions
&lt;/h3>&lt;p>Proposed by Latanya Sweeney and Pierangela Samarati in 1998, &amp;ldquo;k-anonymity&amp;rdquo; is a foundational concept for privacy protection in data publication. It means ensuring that every record in a dataset is indistinguishable from at least $k-1$ other records.&lt;/p>
&lt;p>Attributes in a database are broadly classified into the following three categories:&lt;/p>
&lt;ol>
&lt;li>&lt;strong>Explicit Identifiers&lt;/strong>: Information that can directly identify an individual, such as names and social security numbers (these are usually deleted or encrypted).&lt;/li>
&lt;li>&lt;strong>Quasi-Identifiers (QIs)&lt;/strong>: Information that cannot identify an individual on its own, such as age, gender, and zip code, but can be used to identify them when combined.&lt;/li>
&lt;li>&lt;strong>Sensitive Attributes&lt;/strong>: Information that should be protected, such as medical conditions or annual income.&lt;/li>
&lt;/ol>
&lt;p>K-anonymity guarantees that there are always at least $k$ combinations of quasi-identifiers (Equivalence Classes). However, k-anonymity is vulnerable to &amp;ldquo;Homogeneity Attacks&amp;rdquo; and &amp;ldquo;Background Knowledge Attacks&amp;rdquo;. For example, if all $k$ people belonging to an equivalence class have the same medical condition (sensitive attribute), the condition will be identified even if k-anonymity is maintained.&lt;/p>
&lt;p>To overcome this, the following extended models have been proposed:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>l-diversity&lt;/strong>: Guarantees that sensitive attributes have at least $l$ different values in each equivalence class.&lt;/li>
&lt;li>&lt;strong>t-closeness&lt;/strong>: Ensures that the distance (such as Earth Mover&amp;rsquo;s Distance) between the distribution of sensitive attributes in each equivalence class and the distribution of sensitive attributes in the entire dataset is less than or equal to a threshold $t$.&lt;/li>
&lt;/ul>
&lt;h3 id="22-differential-privacy-dp">2.2 Differential Privacy (DP)
&lt;/h3>&lt;p>Overcoming the limitations of the k-anonymity model, &amp;ldquo;Differential Privacy&amp;rdquo; proposed by Cynthia Dwork et al. in 2006 is now widely adopted as the strongest and most mathematically rigorous privacy standard. Tech giants such as Apple, Google, and Microsoft apply this $\epsilon$-differential privacy when collecting telemetry and statistical data from users.&lt;/p>
&lt;h4 id="mathematical-definition-of-differential-privacy">Mathematical Definition of Differential Privacy
&lt;/h4>&lt;p>A randomized algorithm $\mathcal{M}$ satisfies $\epsilon$-differential privacy if, for any two adjacent datasets $D$ and $D'$ differing by only one record (i.e., $\|D - D'\|_1 = 1$), and for any subset of outputs $S \subseteq \text{Range}(\mathcal{M})$, the following inequality holds:&lt;/p>
$$ \Pr[\mathcal{M}(D) \in S] \le e^\epsilon \Pr[\mathcal{M}(D') \in S] $$&lt;p>Here, $\epsilon$ (privacy budget) is a non-negative parameter that controls the level of privacy protection. The smaller the $\epsilon$, the stronger the privacy protection, but the utility of the data decreases.&lt;/p>
&lt;p>Furthermore, $(\epsilon, \delta)$-differential privacy, a relaxed model that allows the privacy guarantee to be broken with a very small probability $\delta$, is also widely used.&lt;/p>
$$ \Pr[\mathcal{M}(D) \in S] \le e^\epsilon \Pr[\mathcal{M}(D') \in S] + \delta $$&lt;h4 id="laplace-mechanism">Laplace Mechanism
&lt;/h4>&lt;p>A typical method for achieving differential privacy is the &amp;ldquo;Laplace Mechanism,&amp;rdquo; which intentionally adds noise (random numbers) following a specific distribution to the true output result of a query. How much noise should be added depends on the &amp;ldquo;Global Sensitivity&amp;rdquo; $\Delta f$ of the function $f$.&lt;/p>
&lt;p>The global sensitivity $\Delta f$ is defined as the maximum change in the output of the function $f$ for any adjacent datasets $D, D'$.&lt;/p>
$$ \Delta f = \max_{D, D'} \| f(D) - f(D') \|_1 $$&lt;p>The Laplace mechanism adds noise $Y$ sampled from the Laplace distribution $\text{Lap}(b)$ with scale parameter $b = \frac{\Delta f}{\epsilon}$ to the result of the function $f(D)$.&lt;/p>
$$ \mathcal{M}(D) = f(D) + Y, \quad Y \sim \text{Lap}\left(\frac{\Delta f}{\epsilon}\right) $$&lt;p>The probability density function of the Laplace distribution is as follows:&lt;/p>
$$ p(x \mid b) = \frac{1}{2b} \exp\left( - \frac{|x|}{b} \right) $$&lt;p>By this noise injection, it becomes impossible to infer whether a specific individual is included in the dataset from the output result. Companies leverage DP as a technology that masks individual data itself while maintaining the utility of statistical trends (mean, variance, counts, etc.) of the entire data.&lt;/p>
&lt;h3 id="23-federated-learning-fl">2.3 Federated Learning (FL)
&lt;/h3>&lt;p>Traditional machine learning took a centralized approach, where massive amounts of data were aggregated on a central server to train models, like the aforementioned data lakes. However, sending sensitive data such as medical images or smartphone input histories to a central server involves significant privacy risks.&lt;/p>
&lt;p>Therefore, &amp;ldquo;Federated Learning&amp;rdquo; was proposed by Google in 2016. In federated learning, rather than moving the data itself, the &amp;ldquo;computational processing of the model&amp;rdquo; is moved to the edge devices (smartphones, hospital servers, etc.) where the data resides.&lt;/p>
&lt;pre class="mermaid">
flowchart TD
Server[&amp;#34;Central Aggregation Server&amp;#34;]
Device1[&amp;#34;Edge Device 1 (Smartphone)&amp;#34;]
Device2[&amp;#34;Edge Device 2 (Smartphone)&amp;#34;]
Device3[&amp;#34;Edge Device 3 (Smartphone)&amp;#34;]
Server --&amp;gt;|&amp;#34;1. Broadcast Global Model Weights&amp;#34;| Device1
Server --&amp;gt;|&amp;#34;1. Broadcast Global Model Weights&amp;#34;| Device2
Server --&amp;gt;|&amp;#34;1. Broadcast Global Model Weights&amp;#34;| Device3
Device1 --&amp;gt;|&amp;#34;2. Local Training on Private Data&amp;#34;| Device1
Device2 --&amp;gt;|&amp;#34;2. Local Training on Private Data&amp;#34;| Device2
Device3 --&amp;gt;|&amp;#34;2. Local Training on Private Data&amp;#34;| Device3
Device1 --&amp;gt;|&amp;#34;3. Transmit Model Gradients/Updates&amp;#34;| Server
Device2 --&amp;gt;|&amp;#34;3. Transmit Model Gradients/Updates&amp;#34;| Server
Device3 --&amp;gt;|&amp;#34;3. Transmit Model Gradients/Updates&amp;#34;| Server
Server --&amp;gt;|&amp;#34;4. Aggregation (FedAvg)&amp;#34;| Server
Server --&amp;gt;|&amp;#34;5. Update Global Model&amp;#34;| Server
&lt;/pre>
&lt;h4 id="federated-averaging-fedavg-algorithm">Federated Averaging (FedAvg) Algorithm
&lt;/h4>&lt;p>A representative aggregation algorithm in federated learning is FedAvg. Each client $k$ performs several epochs of local training using Stochastic Gradient Descent (SGD) on their own dataset $D_k$ (of size $n_k$) to calculate the updated weights $w_{t+1}^k$.&lt;/p>
&lt;p>The central server receives the weights from the $K$ participating clients and updates the global model weights $w_{t+1}$ by taking a weighted average of these weights according to the data size. Letting the total number of data samples be $n = \sum_{k=1}^K n_k$, the update equation is as follows:&lt;/p>
$$ w_{t+1} = \sum_{k=1}^K \frac{n_k}{n} w_{t+1}^k $$&lt;p>This makes it possible to build intelligent AI models without an individual&amp;rsquo;s raw data (message history, photos, etc.) ever leaving the device. Typical applications include improving the next-word prediction feature of Google Keyboard (Gboard) and Apple&amp;rsquo;s FaceID and Hey Siri voice recognition models.&lt;/p>
&lt;h3 id="24-homomorphic-encryption-he">2.4 Homomorphic Encryption (HE)
&lt;/h3>&lt;p>&amp;ldquo;Homomorphic Encryption&amp;rdquo; is a &amp;ldquo;magical&amp;rdquo; cryptographic technology that allows computations (such as addition and multiplication) to be performed on data while it remains in an encrypted state. With normal encryption methods, when performing computations on data, it must first be decrypted (returned to plaintext), but decrypting on a cloud server creates a security vulnerability.&lt;/p>
&lt;p>By using homomorphic encryption, the following properties are achieved. Letting the encryption function be $E(\cdot)$, the addition and multiplication of plaintexts $m_1$ and $m_2$ become possible with operations ($\oplus$ and $\otimes$) directly on the ciphertext.&lt;/p>
$$ E(m_1 + m_2) = E(m_1) \oplus E(m_2) $$$$ E(m_1 \times m_2) = E(m_1) \otimes E(m_2) $$&lt;p>Homomorphic encryption is divided into &amp;ldquo;Partially Homomorphic Encryption (PHE),&amp;rdquo; which allows either addition or multiplication, and &amp;ldquo;Fully Homomorphic Encryption (FHE),&amp;rdquo; which allows both addition and multiplication an unlimited number of times. Since Craig Gentry constructed the first FHE scheme using lattice-based cryptography in 2009, it has been a major breakthrough in cryptography.&lt;/p>
&lt;p>Currently, challenges such as computational cost and increased ciphertext size (overhead) remain, but it is expected to be applied to the secure analysis of medical data on the cloud and secure multi-party computation among financial institutions.&lt;/p>
&lt;h2 id="3-trends-in-legal-regulations-and-compliance-gdpr-vs-ccpa">3. Trends in Legal Regulations and Compliance: GDPR vs. CCPA
&lt;/h2>&lt;p>In parallel with technological evolution, the development of legal frameworks is advancing rapidly worldwide. When companies utilize big data, complying with these legal regulations is a strict requirement. Let&amp;rsquo;s compare the two most influential regulatory frameworks.&lt;/p>
&lt;h3 id="eu-general-data-protection-regulation-gdpr">EU General Data Protection Regulation (GDPR)
&lt;/h3>&lt;p>Enforced in May 2018, the EU&amp;rsquo;s GDPR (General Data Protection Regulation) is recognized as the global &amp;ldquo;gold standard&amp;rdquo; for personal data protection. GDPR applies to all organizations that handle the data of individuals within the EU, and violations result in massive fines of either up to 4% of global annual turnover or 20 million euros, whichever is higher.&lt;/p>
&lt;p>&lt;strong>Key Features of GDPR:&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Opt-in Principle&lt;/strong>: Explicit and freely given prior consent from users is required for data collection and processing.&lt;/li>
&lt;li>&lt;strong>Right to be Forgotten / Right to Erasure&lt;/strong>: Users have the right to request companies to completely erase their personal data. Data must also be deleted from data lake backups, which is an extremely difficult technical requirement.&lt;/li>
&lt;li>&lt;strong>Data Controllers and Data Processors&lt;/strong>: It strictly defines the responsibilities of those who determine the purposes of using the data (controllers) and those who process the data according to those instructions (processors).&lt;/li>
&lt;/ul>
&lt;h3 id="california-consumer-privacy-act-ccpacpra">California Consumer Privacy Act (CCPA/CPRA)
&lt;/h3>&lt;p>While there is no comprehensive privacy law at the federal level in the US, the CCPA (California Consumer Privacy Act) enacted in California in 2020 serves as the de facto national standard. It was later further strengthened by the CPRA (California Privacy Rights Act).&lt;/p>
&lt;p>&lt;strong>Key Features of CCPA:&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Opt-out Principle&lt;/strong>: Unlike GDPR&amp;rsquo;s &amp;ldquo;prior consent,&amp;rdquo; data collection is possible without prior consent, but it is mandatory to provide users with a clear opt-out link stating &amp;ldquo;Do Not Sell My Personal Information.&amp;rdquo;&lt;/li>
&lt;li>&lt;strong>Right to Access Data&lt;/strong>: Consumers can request the disclosure of specific pieces of information collected by the company, their categories, sources, and whether they have been sold to third parties.&lt;/li>
&lt;/ul>
&lt;p>These regulations strongly demand that companies adopt &amp;ldquo;Privacy by Design&amp;rdquo;—embedding privacy protection from the design stage of systems and processes.&lt;/p>
&lt;h2 id="4-implementation-challenges-in-the-data-ecosystem">4. Implementation Challenges in the Data Ecosystem
&lt;/h2>&lt;p>Let&amp;rsquo;s look at the implementation perspective when applying privacy-enhancing technologies and legal regulations to actual big data environments. For example, assume a case of implementing k-anonymization or differential privacy in a data lake using Python and Pandas, or PySpark.&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt"> 1
&lt;/span>&lt;span class="lnt"> 2
&lt;/span>&lt;span class="lnt"> 3
&lt;/span>&lt;span class="lnt"> 4
&lt;/span>&lt;span class="lnt"> 5
&lt;/span>&lt;span class="lnt"> 6
&lt;/span>&lt;span class="lnt"> 7
&lt;/span>&lt;span class="lnt"> 8
&lt;/span>&lt;span class="lnt"> 9
&lt;/span>&lt;span class="lnt">10
&lt;/span>&lt;span class="lnt">11
&lt;/span>&lt;span class="lnt">12
&lt;/span>&lt;span class="lnt">13
&lt;/span>&lt;span class="lnt">14
&lt;/span>&lt;span class="lnt">15
&lt;/span>&lt;span class="lnt">16
&lt;/span>&lt;span class="lnt">17
&lt;/span>&lt;span class="lnt">18
&lt;/span>&lt;span class="lnt">19
&lt;/span>&lt;span class="lnt">20
&lt;/span>&lt;span class="lnt">21
&lt;/span>&lt;span class="lnt">22
&lt;/span>&lt;span class="lnt">23
&lt;/span>&lt;span class="lnt">24
&lt;/span>&lt;span class="lnt">25
&lt;/span>&lt;span class="lnt">26
&lt;/span>&lt;span class="lnt">27
&lt;/span>&lt;span class="lnt">28
&lt;/span>&lt;span class="lnt">29
&lt;/span>&lt;span class="lnt">30
&lt;/span>&lt;span class="lnt">31
&lt;/span>&lt;span class="lnt">32
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># Conceptual implementation of data aggregation applying differential privacy (Python)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="kn">import&lt;/span> &lt;span class="nn">numpy&lt;/span> &lt;span class="k">as&lt;/span> &lt;span class="nn">np&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="kn">import&lt;/span> &lt;span class="nn">pandas&lt;/span> &lt;span class="k">as&lt;/span> &lt;span class="nn">pd&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">def&lt;/span> &lt;span class="nf">laplace_mechanism&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">true_value&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">sensitivity&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">epsilon&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="s2">&amp;#34;&amp;#34;&amp;#34;
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="s2"> Function to add Laplace noise to the true value
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="s2"> &amp;#34;&amp;#34;&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">scale&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">sensitivity&lt;/span> &lt;span class="o">/&lt;/span> &lt;span class="n">epsilon&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">noise&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">np&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">random&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">laplace&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">loc&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mi">0&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">scale&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="n">scale&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="n">true_value&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="n">noise&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">def&lt;/span> &lt;span class="nf">get_dp_average_salary&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">dataframe&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">epsilon&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mf">1.0&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="s2">&amp;#34;&amp;#34;&amp;#34;
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="s2"> Calculate the average salary with guaranteed differential privacy
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="s2"> &amp;#34;&amp;#34;&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="c1"># Actual calculation&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">true_sum&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">dataframe&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="s1">&amp;#39;salary&amp;#39;&lt;/span>&lt;span class="p">]&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">sum&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">true_count&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="nb">len&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">dataframe&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="c1"># Application of differential privacy (based on sensitivity assumption)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="c1"># Assume the fluctuation of the maximum salary as sensitivity (more strictly, clipping is necessary)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">max_salary_diff&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="mi">100000&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="c1"># Adding noise (DP can be applied to both the sum and the count)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">noisy_sum&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">laplace_mechanism&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">true_sum&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">max_salary_diff&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">epsilon&lt;/span> &lt;span class="o">/&lt;/span> &lt;span class="mi">2&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">noisy_count&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">laplace_mechanism&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">true_count&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">1&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">epsilon&lt;/span> &lt;span class="o">/&lt;/span> &lt;span class="mi">2&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="n">noisy_sum&lt;/span> &lt;span class="o">/&lt;/span> &lt;span class="n">noisy_count&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># Execution within the data pipeline&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># dp_avg_salary = get_dp_average_salary(raw_df, epsilon=0.5)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>As seen in this code snippet, the implementation of differential privacy itself is as simple as adding noise; however, in actual operations, managing the &amp;ldquo;privacy budget ($\epsilon$)&amp;rdquo; becomes extremely difficult. Issuing multiple queries to the same dataset consumes the privacy budget (based on the composition theorem), and ultimately it is necessary to build a mechanism (Privacy Budget Management) that locks the entire dataset or rejects queries.&lt;/p>
&lt;h2 id="5-future-outlook-and-ethical-issues">5. Future Outlook and Ethical Issues
&lt;/h2>&lt;p>The trade-off between big data and privacy is not a zero-sum game. With the evolution of PETs such as differential privacy, federated learning, and homomorphic encryption, a new data utilization paradigm of &amp;ldquo;sharing insights without sharing data&amp;rdquo; is becoming a reality.&lt;/p>
&lt;p>Furthermore, in recent years, connected with the concepts of &amp;ldquo;Data Mesh&amp;rdquo; and &amp;ldquo;Web3&amp;rdquo; (decentralized web), the movement to take back &amp;ldquo;Data Sovereignty&amp;rdquo; from giant platformers to individuals is accelerating. A future is being discussed where individual data is stored in Personal Data Stores (PDS) or data wallets, and users themselves control the licensing and monetization of their data.&lt;/p>
&lt;p>However, technological solutions are not perfect. In federated learning, there is a threat of &amp;ldquo;Poisoning Attacks,&amp;rdquo; where malicious clients send fraudulent model updates to corrupt the global model. In differential privacy, an ethical issue has also been pointed out where data of minorities is drowned out by noise, creating bias in AI models.&lt;/p>
&lt;h2 id="conclusion">Conclusion
&lt;/h2>&lt;p>The fate of personal information in the era of big data poses a fundamental question that goes beyond a mere technical issue: what kind of society do we desire? How can we protect individual dignity and privacy while enjoying convenience? We can only arrive at a sustainable solution through a trinity: the establishment of legal regulations, the continuous innovation of privacy-enhancing technologies, and the high literacy of each of us who provide the data. Privacy and convenience are no longer a trade-off, but will evolve into &amp;ldquo;essential requirements&amp;rdquo; that can be achieved simultaneously through the latest technologies.&lt;/p></description></item></channel></rss>