Giter Club home page Giter Club logo

Comments (1)

QGB avatar QGB commented on June 16, 2024

The Bollinger Bands use ddof=0 instead of the default ddof=1 in order to calculate the standard deviation.

In statistics, there are two common methods for calculating the standard deviation: sample standard deviation and population standard deviation. The difference between these methods lies in the degrees of freedom, which is the denominator in the calculation.

By default, many statistical software and functions use the sample standard deviation (ddof=1) as it is often more appropriate for estimating population parameters from sample data. This method subtracts 1 from the degrees of freedom in the denominator to better reflect the variability in the sample data.

However, when it comes to calculating the Bollinger Bands, using ddof=0 is more common. This is because the purpose of the Bollinger Bands is to assess price volatility and determine the positioning of the upper and lower bands based on the measurement of standard deviation. In this case, using ddof=0 ensures that the calculation of the standard deviation is based on the sum of squared deviations of the entire dataset, providing a more comprehensive estimate of volatility.

In summary, the Bollinger Bands use ddof=0 to consider the entire dataset when calculating the standard deviation, in order to more accurately assess price volatility. This choice aligns with the specific goals and purposes of the Bollinger Bands.

from ta.

Related Issues (20)

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.