Giter Site home page Giter Site logo

gai-usage's Introduction

Utilise ChatGPT as a learning companion, not as a substitute!

I teach “Data Analysis with Python” for various under graduate students pursuing Bachelor of Technology, Bachelor of Commerce, Bachelor of Business Administration, etc.

Recently in a class, we were discussing calculating statistical values in datasets using Python as a programming language. One of the students asked a very relevant question “Sir, why should I not ask AI to directly get me the Skewness and Kurtosis values (meaning, why should I bother about programming)?”

Having worked with Generative Artificial Intelligence (GAI) like ChatGPT / Bard / Llama for some time now, I explained how GAI suffer from “hallucinations” — confidently giving wrong answers.

Let us see this with an example.

Kurtosis Calculation

In statistics, Kurtosis is a measure of tail of a distribution. There are several types of Kurtosis; generally “Fisher’s Kurtosis” also known as “Sample Excessive Kurtosis” is used, which is calculated as:

where:
“n” is the number of data points,
"Xi" is the individual data point,
"Xavg" is the mean, and
"s" is the standard deviation (population std with ddof=True).

For a dataset of [4,2,5,8,6] the values are:

"n" = 5
"Xavg" = 25 / 5 = 5
"s" (with ddof=True) = 2.2360797749979 
"(Sum of (Xi — Xavg))^4" = 164

So calculating Kurtosis it comes out to,

K = 0.2 (Platykurtic).

This is the same answer we get with “kurt()” function both in Python and Excel.

ChatGPT response

I asked ChatGPT to calculate Kurtosis for the same dataset.

As you can see, ChatGPT gives an incorrect K = -2.9 answer.

Attempting to refine the query, I asked ChatGPT to compute Fisher’s Kurtosis specifically, hoping for an accurate response. Strikingly, the GAI’s answer was further incorrect. Even when prompted with the information that Excel and Python yield K = 0.2, ChatGPT stubbornly clung to its earlier erroneous response.

Conclusion

Generative AI systems like ChatGPT are undoubtedly powerful tools. However, it is crucial to approach them with caution. As demonstrated in this case, GAI are only as reliable as the data on which they were trained and may produce incorrect outputs, including erroneous code. Therefore, I request all students to exercise due diligence and critical judgment when utilising Generative AI.

(By the way, one of the ways companies can reduce hallucinations is to use their own enterprise data to repeatedly train GAI models as explained in this repo GAI in enterprises).

In your academic journey, while technology is a powerful friend, use it as an aid rather than as a replacement for your hard work and learning.

gai-usage's People

Contributors

svaidyans avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.