Monte Carlo Integration for ∫ xdx/(2+3x)^2 with Bounds of 0 and 1

Click For Summary

Homework Help Overview

The discussion revolves around performing a Monte Carlo integration for the integral ∫ xdx/(2+3x)^2 with bounds from 0 to 1. Participants explore the methodology of generating random numbers to approximate the integral.

Discussion Character

  • Exploratory, Conceptual clarification, Problem interpretation

Approaches and Questions Raised

  • Participants discuss the generation of random x and y values and question the appropriate range for these values. There is confusion about the condition for counting a success in the integration process.

Discussion Status

Some participants have provided insights into the Monte Carlo method and clarified the conditions for counting successes. One participant indicates they have reached an understanding of the process and resolved their confusion.

Contextual Notes

There is mention of using a spreadsheet for calculations, but programming languages may be more efficient for larger samples. The original poster expresses uncertainty about the method due to limited experience with tools beyond LibreCalc.

chimath35
Messages
110
Reaction score
0

Homework Statement


Perform a Monte Carlo integration of:

∫ xdx/(2+3x)^2 with the bounds of 0 and 1 on the integral

You should use 10 trials of at least 100 data pairs per trial and average the result

I guess I am supposed to generate a x and y random number between 0 and 100 and if the output of
y=x/(2+3x)^2 is equal to the y ran I count it

I really only know and have been shown how to use libre calc not sure how to do this

Homework Equations

The Attempt at a Solution

 
Physics news on Phys.org
chimath35 said:
I guess I am supposed to generate a x and y random number between 0 and 100
What is between 0 and 100?
chimath35 said:
and if the output of
y=x/(2+3x)^2 is equal to the y ran I count it
It won't be equal exactly, there is a different condition (hint: you are approximating an integral).

Every spreadsheet can do that, programming languages would be better for larger samples but for just 100 data pairs it does not matter.
 
okay so I pick an x value between 0 and 1 (random) and what do I pick the y value between?
 
I have the actual value of the integral and I know it is a ratio of y≤x/(2+3x)^2 count as success/ of total # of trials for each x value
 
Never mind, I understand the process now and have solved the problem. Thank you for the input.
 

Similar threads

Replies
1
Views
1K
Replies
3
Views
2K
  • · Replies 44 ·
2
Replies
44
Views
6K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 19 ·
Replies
19
Views
3K
Replies
7
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K