Should I Normalize My Discretized Integral?

  • Thread starter pamparana
  • Start date
  • Tags
    Integral
In summary, the speaker is asking if they need to normalize their approximation of an integral using a Riemann sum by dividing by the range of the definite integral parameters. They are also advised to include a graphic to better illustrate their approach.
  • #1
pamparana
128
0
Hello everyone,

I have an integral as follows:

[itex]\log(\int_{r}^{\inf}\frac{P(v,f)}{P(f)}dv)[/itex]

Now, I want to evaluate this on the computer where this PDF represented by P(v, f) is build up using a joint histogram where each entry is a probability for a given value pair for v and f to occur together.

Now when I compute this integral I do it as follows:
[itex]\sum_{r}^{bins}\frac{P(v,f)}{P(f)}[/itex]

where v and f are some appropriate values and bins are the number of bins along the appropriate axes in my joint histogram. Then after accumulation, I take the log of the final value.

Now, my question is that do I need to normalize this somehow? When discretizing such integrals does one normalize it by the range of the definite integral parameters?

Thanks,

Luca
 
Last edited:
Physics news on Phys.org
  • #2
You should make a graphic. What you basically do is to approximate the integral by a Riemann sum. This involves the split of the distance into equidistant sections.
 
  • #3
You're missing a term.

As @fresh_42 says, you appear to be doing a Riemann sum, approximating ##\int_a^b f(x) dx## by ##\sum_{i=1}^n f(x_i) \Delta x ## = ##\Delta x \sum_{i=1}^n f(x_i)## if all the bins are the same size. So you need the ##\Delta x##.
 

FAQ: Should I Normalize My Discretized Integral?

What is the purpose of discretizing an integral?

Discretizing an integral is a method used to approximate the value of an integral by breaking it into smaller, more manageable parts. This allows for easier computation and can provide more accurate results for complex integrals.

How is an integral discretized?

An integral can be discretized by dividing the integration interval into smaller sub-intervals and approximating the integral within each sub-interval using numerical methods such as the trapezoidal rule or Simpson's rule.

What types of integrals can be discretized?

Discretization can be applied to any type of integral, including definite integrals, improper integrals, and multi-dimensional integrals.

How does discretization affect the accuracy of the integral approximation?

The accuracy of the integral approximation depends on the number of sub-intervals used in the discretization process. Generally, the more sub-intervals used, the more accurate the approximation will be.

Are there any limitations to discretizing an integral?

Discretization can produce accurate results for most integrals, but there are some cases where it may not be suitable. For example, when the integrand has a discontinuity or is highly oscillatory, discretization may not provide a reliable approximation. In these cases, other methods such as numerical integration or symbolic integration may be more appropriate.

Similar threads

Replies
16
Views
3K
Replies
31
Views
2K
Replies
28
Views
3K
Replies
2
Views
2K
Replies
8
Views
2K
Replies
6
Views
2K
Back
Top