šŸ¤–
Introduction to ROS2 and Robotics
  • Introduction
  • ROS2
    • Index
    • IDE and CMake Setup
      • How to add additional include search path
    • ROS2 Building Blocks
      • ROS Workspace and Package Layout
      • Launch File
      • tf2
      • Quality of Service
      • Configurations
        • Rviz Configuration
      • Built-in Types
        • Built-in Message Type
    • ROS Architecture
      • Intra-process Communication
    • Navigation and Planning
      • Navigation Stack and Concepts
      • Navigation2 Implementation Overview
        • šŸ—ļøCost Map
        • Obstacle Avoidance and DWB Controller
      • DWB Controller
      • Page 5
    • How to launch the Nav2 stack
    • ROS2 Control
      • Online Resources
      • Overview of Codebase
    • šŸ³Cookbook
      • Useful Commands
      • How to specify parameters
      • How to build the workspace
      • šŸ—ļøHow to publish message to a topic from command line?
      • How to inspect service and make a service call
      • How to properly terminate ROS and Gazebo
      • How to add and remove models in Gazebo simulation dynamically
      • 🚧How to spin nodes
    • šŸ›’Tutorials
      • Services and Communication between ROS2 and Gazebo
      • Subscription and Message Filters Demo
      • Executor and Spin Explained
      • Lifecycle Node Demo
      • Robotic Arm Demo
      • āš’ļøMultiple Robotic Arms Simulation Demo
      • 🚧Introduction to xacro
    • Page
    • šŸŗTech Blog
      • Difference between URDF and SDF and how to convert
  • Gazebo
    • Index
    • Terminology
    • GUI
    • World Frame and Axis
    • Cookbook
    • Page 1
  • Programming in Robotics
    • C++
      • CMake
    • Python
    • Rust
  • Mathematics in Robotics
    • Linear Algebra
    • Matrix Properties
    • Probability
      • Expectation-Maximization Algorithm
    • Multivariable Function and Derivatives
  • Physics in Robotics
  • Control of Dynamic Systems
    • Dynamic Response and Transfer Function
    • Block Diagram
    • PID Controller
  • Robot Modeling and Control
    • Rotation and Homogeneous Transformation
  • Probabilistic Robotics
    • Bayes Filter
    • Kalman Filter
    • Particle Filter
    • Discrete Bayes Filter
    • Motion Model
    • Perception Model
    • Localization
    • SLAM
  • Miscellany
  • Concept Index
    • Quaternions
Powered by GitBook
On this page
  • Importance Sampling
  1. Mathematics in Robotics

Probability

Importance Sampling

According to wiki, importance sampling is a Monte Carlo method for evaluating properties of a particular distribution, while only having samples generated from a different distribution than the distribution of interest.

Ep[f(X)]=∫f(x)p(x)dx=∫f(x)p(x)q(x)q(x)dx=Eq[p(X)q(X)f(X)]\begin{align*} E_p[f(X)] & = \int{}f(x)p(x)dx \\ & = \int{}f(x)\frac{p(x)}{q(x)}q(x)dx \\ & = E_q[\frac{p(X)}{q(X)}f(X)] \end{align*}Ep​[f(X)]​=∫f(x)p(x)dx=∫f(x)q(x)p(x)​q(x)dx=Eq​[q(X)p(X)​f(X)]​

The term p(x)q(x)\frac{p(x)}{q(x)}q(x)p(x)​is a weight factor. The left side of the equation is the expectation of f(X)f(X)f(X) under distribution p(x)p(x)p(x). Suppose we have samples of XXXunder distribution q(x)q(x)q(x), we can reconstruct the expectation of f(X)f(X)f(X) under distribution p(x)p(x)p(x) by weighting the samples (i.e. multiplying f(x)f(x)f(x)by p(x)q(x)\frac{p(x)}{q(x)}q(x)p(x)​.

The distribution p(x)p(x)p(x)is sometimes called the target distribution and they are often not directly accessible.

PreviousMatrix PropertiesNextExpectation-Maximization Algorithm

Last updated 1 year ago