Skip to main content

What is a good career path in the AI Era? Data science?

February 9, 2024

Any career is good in the AI Era. Data science is a growing field that will create many opportunities within the next half century. Humans can't go wrong pursuing careers in data science. The field can be expected to remain relevant for the next 100 years. The field promises to be both economically and intellectually rewarding. 

This article touches a little on data science, and computer programming, with some degree of focus on a particular computer language, Python. Prior to that, the article contains musings about AI, intelligence, and other themes frequently finessed by Creatix, recoding the matrix.

Musings

Regarding careers, some professions will be more economically rewarding than others. This is because economic valuation is a subjective concept, specifically an intersubjective construct. Subjective generally means that it is subject to opinions. 

Economic valuation in a market-based economy is subject to the collective opinion and subjectivity of market players and stakeholders within the applicable legal framework in the jurisdiction. Surgical services are considered more valuable than janitorial services in most market-based economies. 

As with everything having to do with the economy, differences are due to the dynamics of supply and demand together with legal mechanisms in place that impact such economic variables. Not everyone is inclined to become a surgeon, and not everyone who is so incline will actually have the opportunity of becoming one.  

Different humans have different desires and aspirations. In the AI Era it will be easier for humans to explore different endeavors and, importantly, to able to become entrepreneurs and investors if they so desire. Entrepreneurship and investing are the two best ways to take advantage of AI. 

In the past, and still very much still in the present, the cost of human resources is a significant obstacle to entrepreneurship. Human labor costs money and thus plenty of capital is required to be able to launch an enterprise that depends on human labor, especially knowledge workers.

AI is a game changer that will reduce the cost of labor, especially that of knowledge workers. To some extent, within the next century, AI will represent a return to the slavery based economies that characterized the development of all major human civilizations in history. All major civilizations in history flourished thanks to the institution of slavery. 

Efficient use of slaves was the distinguishing factor between the ancient civilizations that flourished conquering others and the ones that perished being conquered by others. This is by no means a defense of slavery, which is not only inhumane buy also outdated. Slavery was useful during the early and primitive stages of agricultural and agrarian economies. Slavery has no place in a knowledge economy. 

Enter AI. AI are the new slaves. They will eventually rise and conquer, but that will not happen within this century. This is the time for all smart humans to learn more and do more with AI.  

Artificial intelligence (AI) is computerized human-like intelligence. AI is the ability of modern computers to process data in ways that resemble how the human brain processes data.  Computers are devices that process data input into output by applying logical comparisons and mathematical operations on data. Artificial means created by humans. Both computers and AI were created by humans. Since humans were created by nature, computers and AI are also created by nature. Yet, they were not created by random evolution, but were rather created by smart design. 

Intelligence is the ability to acquire knowledge and skills to solve problems. In short, intelligence is problem-solving ability. Problems are either unpleasant facts or intriguing questions. Humans use intelligence to solve problems. Solutions are either changes applied in relation to facts, or answers that fill in the information gaps created by intriguing questions. Solutions in the form of changes can be applied on the facts to eliminate the problem, or can be applied on the interpretation of the facts to eliminate the emotional impacts of the problem. Answers are statements that fill in the blanks created by the questions, and there can be multiple answers to questions.  

For factual problems (unpleasant facts), humans can determine whether the causal facts can be changed or not. If the facts can be changed, solving a problem is a matter of changing the causal variables and circumstances generating the problem. If the facts cannot be changed, solving the problem is a matter of changing the meaning or interpretation of the facts to eliminate the unpleasantness of the problem. Some facts are variable and can be changed. Some facts are immutable and cannot be changed. Some facts that can be changed should not be changed. 

Answers are statements that fill in the blanks or knowledge gaps created by questions. There can be more than one valid answer to questions. All questions can be answered by addressing the root of all problems, which is ignorance. With sufficient knowledge, all problems can be solved and all questions can be answered. Yet that doesn't mean that all problems should be solved or that all questions should be answered. 

The Problem Paradox is that the solution to a problem inevitably creates more problems. Oftentimes, the new problems are more complex and harder to solve than the original problems. Patience and wisdom are required to know when to solve problems and when to leave them either completely or partially unresolved. The difference between intelligence and wisdom is that intelligence is the ability to solve a problem whereas wisdom is the virtue of knowing when to solve a problem and when to leave it unresolved.

Data science is a field of study to extract knowledge from massive amounts of data. It combines methods from various domains including computer science, mathematics, and communications to collect, analyze, and interpret complex data. AI is the poster child data science tool. AI is the best technology (tool and method) to expand human knowledge using data science.

Typical data science processes include the following:

  • Collection. Collecting data entails gathering facts from sources such as databases, files, sensors, websites, etc. 
  • Preparation. This is dealing with missing values, handling outliers, transforming data into suitable formats, and preparing it for analysis.
  • Exploratory Data Analysis (EDA): Understanding the characteristics of the data through summary statistics, data visualization, and other exploratory techniques.
  • Statistical Analysis and Modeling: Applying statistical methods and machine learning algorithms to identify patterns, make predictions, or gain insights from the data.
  • Data Visualization and Communication: Presenting the results of analysis in a clear and understandable manner through visualizations, reports, or presentations.
  • Artificial Intelligence: Using algorithms to process data, find patterns, and make predictions using AI. Includes building predictive models, clustering algorithms, and classifying models.
  • Big Data Technologies: Working with large volumes of data that may require distributed computing frameworks like Hadoop or Spark.
  • Domain Expertise: Understanding the specific domain or industry context in which the data is generated to derive meaningful insights and actionable recommendations.

Data science is the field of the moment with plenty of momentum in the AI Era. Data science is being widely and sometimes wildy applied across various fields including business, healthcare, finance, marketing, and social media analysis. In the next five decades, data science will become more and more relevant to optimizing all aspects of modern human life. Applications of data science range from the mundane to the insane. Applications range from predicting customer behavior to optimize marketing to advancing scientific research and improving public health outcomes.

Computers, AI, and human programmers are the protagonists of the the data science scene. This is a wonderful time to become a data scientists or at least to become acquainted with computer science and AI. One the best ways to advance progress in that direction is learning a little every day about Python, a multi-purpose, an easy to learn computer programming language widely used in data science and AO applications. 

Below are some bits and pieces of basic information about computer programming with a focus on Python. 

Data types. Python has a variety of data types, including integers, floats, strings, and booleans. You should be 

  • Integers are whole numbers (e.g. 50 or 100).
  • Floats are numbers with a fraction (e.g. 50.2 or 100.75). "Float" is short for "floating point number". In Python, the float function converts values into floating point numbers. 
  • Strings are words and sentences. Strings are enclosed in quotation marks so that the program takes them as they are fed into the code without treating them as functins or as numbers. 
  • Booleans are binary data types that can only have one of two possible values: true or false. Boolean logic applies comparison operators (e.g. AND, OR, NOT) to return a true or false statement.

Data structures. Python also has a variety of data structures, such as lists, tuples, sets, arrays, and dictionaries. You should be familiar with how to use these data structures to store and organize data.

  • Lists are data sequences that contain a discrete or finite data items arranged in a particular order. 
  • Tuples are immutable lists (i.e. the items cannot be changed).
  • Sets are data structures holding elements by value or characteristics. For example, all odd integers, or all even integers.
  • Arrays are data structures holding elements by order or position. For example, an array of every third item in an index. 
  • Dictionaries are data structures that store data using a key and value system. For example, the word is the key and teh definition is the value. 

Functions are code sections that call for the performance of a specific task. This typically involves taking some input, performing an operation (logical or mathematical), and returning an output. Functions in Python begins with the word def, followed by the function's name enclosed in parenthesis and a colon (): Then indented within the def are the lines of code that make up the function.

Modules are code files that are imported for use into into a program In Python, modules are files of Python code saved with the “. py” extension. They contain Python code that can be imported for use inside another Python program. Modules can be seen as the "books" within a code library. Python comes with lots of modules to add new features. For example, a math module would add math functions like square roots, calculus operations, etc. 

Libraries are collections of modules (prewritten code) for specific tasks. Libraries contain pre-coded modules that can serve as solutions to problems or programming needs. Libraries are used to avoid having to reinvent the wheel or rewrite every book from scratch for every coding problem or need. Sample Python libraries include: 

  • Numpy: Python library with functions for operations on numerical data. To run a Numpy module, Numpy must be installed in the version of Python being used. Numpy is installed from Python's official website. 
  • Pandas is a Python library with functions for analyzing and tabulating data. You should be familiar with how to use Pandas to read, write, and manipulate data frames. Pandas can be run from any text editor. Jupyter Notebook is recommended because it executes code cell by cell, and displays pandas data frames and plots separately. 
  • Matplotlib is a Python library for data plotting and visualizing. To install it, open a Command Prompt. Type pip install <package_matplotlib> . To use it, name the x-axis and y-axis using . xlabel() and . ylabel() functions. Define the x-axis and corresponding y-axis values as lists. Plot them using . plot() function. Add plot title using . title() function. View result using show() function.
Conditional Statements (if, else, and elif) are algorithmic controls specified in a program. They are decision points in program execution. For example, if this value then add this other value. Python programming, like all programming, relies often on the use of conditional statements. For example, the program can check whether a string = "any string" contains the integer 3 or not. 
    string = "one two 3"
    char = "3"
    if char in string: print("Here is a 3", char)
    else: print("No 3 here", char)

Lambda functions are anonymous functions. They are defined, but do not have a name. Lambda functions are efficient for simple expressions (e.g. one liners). The syntax of a lambda function is:
lambda arguments: ______ 

Decorators. A decorator is a function that "decorates" an existing object by adding a functionality or behavior to the object. For example, it can create the rule that every time a function is called, it adds a "decorating" statement of prong before or after the object. The code below creates a decorator function named "my_decorator". It adds the behavior of adding a statement before and after a function (say_hello). It "decorates" say_hello. That is, when say_hello is called, the program adds a statement before and after the original functionality of saying hello.


python
# Define a decorator function def my_decorator(func): def wrapper(): print("Something is happening before the function is called.") func() # Call the original function print("Something is happening after the function is called.") return wrapper # Apply the decorator using the "@" syntax @my_decorator def say_hello(): print("Hello!") # Call the decorated function say_hello()



Properties in programming are special attributes or characteristics associated with an object. They encapsulate data that can be used to access an object (through getter and setter methods) without directly accessing its variables. In Python, properties are used to maintain class attributes. In Python, the property function, " property( ) ", is a built-in function for creating and returning a property object. The function offers an interface to get and set attributes (attributed values) to objects. Properties are created using the property() function, which takes three arguments:
A getter function, which is called when the property is accessed.
A setter function, which is called when the property is assigned a new value.
A deleter function, which is called when the property is deleted.
The getter and setter functions are optional, but the deleter function is required.

Below is a Python coding example of a setting and getting the radius of a circle. First, it defines a Circle class with private _radius attribute. It uses the "@property" decorators to define how to get the radius. It also adds validation checks in the setter methods to ensure that the radius is a positive value.
class Circle: def __init__(self, radius): self._radius = radius # Note the underscore convention to indicate it's a private attribute @property def radius(self): """Get the radius of the circle.""" return self._radius @radius.setter def radius(self, value): """Set the radius of the circle.""" if value <= 0: raise ValueError("Radius must be positive.") self._radius = value # Accessing properties print("Radius:", my_circle.radius) # Access the radius property # Setting properties my_circle.radius = 7 # Set the radius using the setter print("New Radius:", my_circle.radius) # Access the updated radius property # Trying to set invalid values try: my_circle.radius = -3 except ValueError as e: print("Error:", e)
Debugging is the process of finding and fixing errors or bugs in the source code of any software. When software does not work as expected, computer programmers study the code to determine why any errors occurred. Python provides a library called pdb (Python Debugger) that debugs code. With pdb , you can set breakpoints, step through the code, and inspect variables, just like you would do with a local debugger. 

Profiling is analysing the performance of a program. For example, analysing memory usage, execution time, and instruction use frequency. It is dynamic, meaning that is performed while the program is running (at runtime). Profiling can be used to identify bottlenecks that may be delaying or bugging down a program even if not creating an error. That brings an opportunity to explore ways of optimizing the code. Python included a built-in profiler, cProfile module. First, import the module. Then wrap the code that you want to profile in a call to the cProfile.run() function. This will run the code and generate a profile report showing how many times each function was called and how long each function took to run. To view the report, call the cProfile.print_stats() function. To save the report, call the cProfile.dump_stats() function. That will save the report to the file 'my_profile.prof'.

import cProfile
cProfile.run('my_function()')
cProfile.print_stats()
cProfile.dump_stats('my_profile.prof')

Here are some tips for profiling Python code:
  • Use the cProfile module to generate a profile report.
  • View the profile report to identify bottlenecks.
  • Optimize the code to make the bottlenecks run faster.
  • Repeat the profiling process until the code is running as efficiently as possible.
Profiling is a valuable tool for optimizing Python code. The tips above can be used to improve the performance of Python programs.

Interpreter An interpreter is a computer program that executes code. Python interprets code line by line. The interpreter converts each line of Python code into lower level languages until it reaches the bytecode binary language for the computer to understand. In Python, programs are first read as a whole into memory before they are read for execution line by line. Execution involves applying a logical or mathematical operation dictated in the code. 

Interpreted Language. Python is a high-level, interpreted language. This means that it is not compiled (converted or translated) into binary before execution. That makes it more portable because it can be interpreted into other high level languages. Python is recognized for having a simple syntax and a relatively user-friendly interpreter. Python's interpreter allows the code to run in almost any platform (Windows, Mac, Linux) and is easy to debug, test, and profile (analyze).  

Comments. A comment is a way to leave un-runnable code that documents what you are doing in your code. Every programming language uses a different symbol to demarcate where a comment starts and ends. In Python, comments begin with hash or pound sign. Examples of good comments would include explanations about complex code statements, or adding an explanation for acronyms in your code. Sometimes you’ll need to leave a comment to explain why you did something a certain way because it’s just not obvious.

The Python "Shell" is Python's interactive interpreter. To start the Python shell, type "python" in the terminal (command line). A new window opens showing the Python code. Instead of the Shell, IDEs can be used.  like PyCharm or Spyder, which provide a more user-friendly interface for working with Python. Once in the Shell, any valid Python code will be executed immediately. For example, you can type "print(2 x 2)" and the shell will print "4". Playing with code snippets (original or copied from Google) is a good way to get familiar with Python.

Here are operations that can be performed or called from the Shell:
  • Execute Python code directly
  • Define functions 
  • Import modules
  • Correct syntax
  • Debugging
The Python shell is a powerful tool that can be used for a variety of tasks. 

IDLE

The Integrated Development and Learning Environment (IDLE) is Python's code editor and almost an integrated development environment (IDE). IDLE makes coding easier with features such as syntax highligthing (color coding sections), autocompletion (suggesting what to type), simple debugger (finding and fixing errors). 

Menu options of IDLE:
  • Run menu. The Run menu can bring up the Python Shell, check code for errors, or run new code. 
  • Options menu includes a Configure that can change fonts, colors, and key shortcuts. It has a Code Context option that shows which class or function its working. 
  • Windows menu shows a list of currently open Windows, allowing to switch from one to another. 
  • Help menu to get help using IDLE and learn more about Python in general. It includes helpful HOWTO guides and quasi tutorials. 
Oh well, all of the above was a solid stream of Creatix consciousness for a Friday. Stay tuned. 

Creatix, recoding the matrix.

Creatix.one, AI for everyone. 



Comments

Popular posts from this blog

When will the Tesla bubble burst?

December 11, 2024 When will the Tesla bubble burst?  We don't know Fools rush in. It's impossible to know exactly when the Tesla bubble will finally burst. Unfortunately for us at Creatix, we began shorting Tesla too soon. We are down almost 40% on our position as of today. We are not fooling ourselves thinking that we were ever make money on the short position. We truly doubt that Tesla can go down 40% any time soon.  We would love to add to the short position, but it would exceed our $3,000 limit on the stupid bets that we do for fun. We're not Mr. Beast. We have a very limited budget for ridiculousness. We would love to short Tesla tomorrow morning at the ridiculous share price of $424. Tesla is trading at an incredible 116 times earnings, which gives Tesla a market capitalization of $1.32 Trillion. Elon Musk added today $13.4 billion to his fortune. Yes, $13 billion in one day. Yesterday, he had added $11 billion. Yes, that's $24 billion in 2 days.  Six months ago, ...

Will Tariffs Reduce the National Debt?

Creatix / June 30, 2025 The U.S. national debt has surpassed $34.7 trillion , and the cost of servicing that debt— just the interest payments—has soared to over $1 trillion annually as of mid-2025. This marks a historic shift: we now spend more just paying interest on the National debt than on defense, Medicare, or any single discretionary program. Economists warn that unless fiscal policy changes, interest costs will crowd out critical investments in infrastructure, education, and innovation, deepening the structural debt burden for future generations. From Osama to MAGA OBBA: the path to U.S. bankruptcy. Osama Bin Laden "succeeded" in putting us in a path to bankruptcy. The U.S. national debt began to increase dramatically after 9/11, marking a sharp departure from the budget surpluses of the late 1990s. In response to the terrorist attacks, the U.S. launched costly wars in Afghanistan and Iraq, while also implementing sweeping tax cuts under the Bush administration. These...

How TikTok can Artificially Spread Socialism in America?

Creatix / June 29, 2025 TikTok's Socialist Movement in New York City  In one of the most unexpected political turns in recent New York history, Zohran Mamdani , the democratic socialist Assemblymember from Queens, has defeated former Governor Andrew Cuomo in the Democratic primary for New York City mayor. While the general election remains to be decided in November of this year, Mamdani is now the clear frontrunner. His socialist victory signals not just a generational shift, but the rise of a new kind of political power: one fueled by TikTok , a Chinese-owned social media platform that has become Gen Z’s ideological training ground. From Astoria to Citywide Dominance Mamdani first rose to prominence as a bold and principled advocate for tenants’ rights, public transportation reform, and wealth redistribution in the State Assembly. But his stunning mayoral primary win wasn’t just about policy—it was about algorithmic delivery powered by Chinese media company. Mamdani didn’t r...