How to Estimate Kernel Smoothing Density

How to Estimate Kernel Smoothing Density thumbnail
Kernel Smoothing Density is an important tool for statistical analysis.

Kernel Smoothing Density is a technique for estimating the regression function or probability density function of a series of random numbers. This estimation is very important in many types of statistical analysis. This type of calculation can be tedious if done by hand, as there may be hundreds or even thousands of data points. however, with the commercial software package MATLAB, it is possible to make this estimation using a series of short commands.

Things You'll Need

  • Knowledge of MATLAB
Show More

Instructions

    • 1

      Create a vector with a series of values. As an example, the command

      x = [randn(30,1); 5+randn(30,1)];

      Will create a vector with 60 values: 30 random numbers with a normal distribution, and 30 numbers with a normal distribution, added by 5.

    • 2

      Make the Kernel Smoothing estimate using the command

      [f,xi] = ksdensity(x);

      This will produce a vector of values 'f' valuated at the points 'xi'.

    • 3

      Plot the Kernel Smoothing Density to investigate its behavior using the command

      plot(xi,f);

      This will plot the density over a range of values from the initial vector of values 'x'.

Tips & Warnings

  • If you do not have access to MATLAB, the same calculations can be done using GNU Octave, an open-source numerical computation system with similar syntax to MATLAB.

Related Searches:

References

Resources

  • Photo Credit computer image by Hao Wang from Fotolia.com

Comments

You May Also Like

  • Corn Plant Density

    Corn is a warm weather vegetable that can be successfully grown in garden beds by home gardeners. Corn plants benefit from being...

  • How to Estimate Bivariate Density

    Bivariate density is also referred to as the "joint density" and involves densities composed of two interrelated variables. "Bi" is" the Latin...

  • How to Calculate Slope From Data Matlab

    The MATLAB software program from Mathworks is an incredibly handy mathematics and engineering tool capable of performing advanced calculations and simulations. One...

  • Jobs in the Edible Oil & Fats Industry

    Jobs in the Edible Oil & Fats Industry. Since the 1930s, the edible oils and fats industry has exploded into an international...

  • How to Find CDF From PDF

    PDF stands for probability density function while CDF stands for cumulative distribution function. The CDF can be found by integrating the PDF...

  • How to Calculate Density

    Those who have ever read a chemistry or physical science book have probably come across the term "density" at some point. Density...

  • Descriptive Discriminant Analysis

    Two common types of nonparametric discriminant analysis are kernel and k-nearest neighbor. Kernel discriminant analysis estimates the distribution of variables in each...

  • How to Grow Bulgar Wheat

    Bulgar wheat is made from parboiling, drying and cracking wheat berries. This results in a cereal product that requires only soaking to...

  • How to Estimate Crowd Density

    Estimating crowd density or crowd size was a task that a 1960s journalism professor, Herbert Jacobs, set out to solve. Jacobs, teaching...

  • How to Calculate Corn Kernel Surface

    During agricultural studies and evaluations, engineers need to quantify various characteristics of plants, fruits and crops. The resulting measurements allow them to...

  • What Is Total Virtual Memory?

    The term "total virtual memory" is the sum of all the virtual memory allocated to each partition of a hard disk. Total...

  • How to Estimate Commodity Density

    The term, commodity, is used in agricultural circles to refer to the bulk ingredients which are combined to create different feeds turned...

  • How to Calculate Plant Density

    Plant density is a tool that can be used to diagnose the health of your lawn, stem the invasion of invasive species,...

  • What Is Kernel Memory in Task Manager?

    The kernel memory in the task manager is a part of the total memory available in a computer that is blocked off...

  • How to Estimate Transition Probability

    The transition rate, and thus the transition probability, between the initial and final state of a system is related to the amount...

  • How to Calculate Maximum Likelihood

    Obtain the likelihood function or the probability density function (pdf) of the parameter that you'd like to estimate. The pdf is a...

  • How to Run Kernel 1.5 on PSP Slim

    Sony PSP firmware 1.50 is required to play homebrew games on your Sony PSP. Homebrew games are games created by independent developers...

  • How to Calculate Probability Density Functions

    A "probability distribution" or "probability density function" (PDF) describes the possible values of a variable, and of the probability of occurrence of...

Related Ads

Featured