{"id":14253,"date":"2022-01-24T12:21:32","date_gmt":"2022-01-24T20:21:32","guid":{"rendered":"https:\/\/www.vernier.com\/til\/?p=14253"},"modified":"2025-05-12T08:08:14","modified_gmt":"2025-05-12T15:08:14","slug":"what-are-my-velocity-calculations-options-in-vernier-video-analysis","status":"publish","type":"post","link":"https:\/\/www.vernier.com\/til\/14253","title":{"rendered":"Are there different ways to calculate velocity in Vernier Video Analysis?"},"content":{"rendered":"<p>In Vernier Video Analysis, velocity is calculated using a numerical derivative. The default calculation uses seven points, three on either side of the position point of interest, to calculate the object&#8217;s velocity at the point of interest (for additional details, see<a href=\"https:\/\/www.vernier.com\/til\/1011\"> <a href=\"https:\/\/www.vernier.com\/til\/1011\">https:\/\/www.vernier.com\/til\/1011<\/a><\/a>). While useful for reducing the effect of point-marking inconsistencies, the calculation is problematic when changes in position happen rapidly, such as when an object collides with another object. Often in such situations, the goal is to determine the velocity of the object just before or just after the collision. However, the numerical derivative calculation provides a poor estimate for the velocity in which you are interested.&nbsp;<\/p>\n<p class=\"inline\">Figure 1 shows typical data for a bouncing ball. As expected for an object in freefall, the velocity appears linear while the ball is in the air. The velocity values do not follow this pattern at the bounce point because the velocity calculations use position data from both sides of the bounce. The number of velocity points affected (i.e., they don\u2019t follow the linear pattern) is directly related to the number of points used in the numerical derivative calculation.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/Glg_4f94aBbBSRVCExnDunvH3wDz5n8Znu-WpdI6q_Qj56RgyQqp8o8dxgXJPMqHLnVgUcf75n4IFixUkptD4CxsvcihGvB2qXZyqwcBNwYOpQ-5eLuMQT8uSev8NdGb5iIsqTkp\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figure 1 <em>\u2013&nbsp; Position and velocity <\/em>vs.<em> time graphs for a bouncing ball<\/em> <\/figcaption><\/figure>\n<\/div>\n<p>What follows are three options for obtaining a more accurate estimate of velocity for situations in which position changes rapidly, such as a&nbsp; bouncing ball. Not every method will work in every situation, so you will want to select the method that works best for your data.&nbsp;<\/p>\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n<h3 class=\"wp-block-heading\">1. Adjust the Number of Points in the Velocity Calculation<\/h3>\n<p>A custom calculated column can be used to calculate velocity using fewer than the default seven points. Follow these steps to create the calculated column:<\/p>\n<ol class=\"wp-block-list\">\n<li>Click or tap Columns Options, <img loading=\"lazy\" decoding=\"async\" width=\"25\" height=\"25\" class=\"wp-image-14274\" style=\"width: 25px;\" src=\"https:\/\/www.vernier.com\/til\/wp-content\/uploads\/sites\/2\/2022\/01\/Three-dot-menu-item.png\" alt=\"\">, for any column in the data table, and select Add a Calculated Column.\u00a0<\/li>\n<li>Enter a Name and Units for your column.\u00a0<\/li>\n<li>Click or tap Insert Expression and select Custom Expression.\u00a0<\/li>\n<li>Enter the expression <strong>firstDerivative(Y, X, n)<\/strong> where Y is the position column, X is the time column, and n is the number of points used in the derivative calculation. Follow these guidelines when entering the expression:\n<ul class=\"wp-block-list\">\n<li>Data column names must be in quotes (e.g., \u201cY\u201d and \u201cTime\u201d).\u00a0<\/li>\n<li>Supported values for n are 3, 5, 7, 9, 11, 15, 21, 29, 39, 51, 65, 81, and 97.\u00a0<\/li>\n<li>If n is not specified, the default value of 7 is used.<\/li>\n<li>Figure 2 shows the expression used for velocity calculations for <em>y<\/em> position data using three points.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/BAAHiSggT4OIOArAUmjxR_UTZvHzAJSMooncHq4jBiEvTajvFY5I0B-3wYJk5jZrKrn6xMbjo76gC_ZbrVMmFHug50xtbWehd_R8xSW1cc3KaVI9VUBd96ydLIIXy7eNAXjN9Isd\" alt=\"\"\/><figcaption class=\"wp-element-caption\"> <em>Figure 2 \u2013 Custom expression for calculating y velocity using three points<\/em> <\/figcaption><\/figure>\n<\/div>\n<ol start=\"5\" class=\"wp-block-list\">\n<li>Click or tap Apply.\u00a0<\/li>\n<\/ol>\n<p>Figure 3 shows a comparison between the 3-point and 7-point velocity calculations. While there is some variation in measurements over the entire motion, the most noticeable differences come for the points around the bounces.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/IaDqVd8VX3HxbilitXibClOqcEEk4BylEOYGMDG33k2dEZ-JGf6Ed8HLrQfhn70_VoB6hgke1EISjP5q6CwzhWT3v5S9GTfkUg2_9YdwU_dg5londVI_-Vakq7E70RoP_3uBtB5r\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Fig<em>ure 3 \u2013 Velocity <\/em>vs. <em>time graph for a bouncing ball<\/em> <\/figcaption><\/figure>\n<\/div>\n<p>For the bouncing ball, the 3-point velocity calculation provides a better estimate for the velocity just before and just after the bounce. However, it does not completely resolve the issue. Additionally, the 3-point method makes all velocity measurements more susceptible to inaccuracies from mismarked position points. The following calculation methods address these concerns.&nbsp;<\/p>\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n<h3 class=\"wp-block-heading\">2. Mark the Motion using Multiple Objects<\/h3>\n<p class=\"inline\">One way to remove the dependence of the velocity measurement on points before and after the bounce is to mark the points in separate sections using the Vernier Video Analysis Objects feature, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/fGfs-Ph0AlAqoSCTYZmtDODs4dPSSjvIgHN0xmuSTxA7vAkbZZZkhleDM1a_aml66lDTcf20mpGM9r5YkoYWSOyPnIzyMHHsoSrHe5KrWQGNKsIFHaKj7f9nP6DkHjtI7EBaRFbD\" width=\"15\" height=\"15\">. Follow the instructions below to mark sections of your motion using multiple objects.<\/p>\n<ol class=\"wp-block-list\">\n<li>Review the motion of your object(s) and decide which sections of the motion should be marked using separate objects. For the bouncing ball data, the motion can be separated into three sections: the motion before the first bounce, the motion between the first and second bounces, and the motion after the second bounce (see Figure 4.)<\/li>\n<li>Mark the data points as you normally would for the first section of your video.<\/li>\n<li>Once that is done, click or tap Objects, <img loading=\"lazy\" decoding=\"async\" width=\"15\" height=\"15\" src=\"https:\/\/lh3.googleusercontent.com\/fGfs-Ph0AlAqoSCTYZmtDODs4dPSSjvIgHN0xmuSTxA7vAkbZZZkhleDM1a_aml66lDTcf20mpGM9r5YkoYWSOyPnIzyMHHsoSrHe5KrWQGNKsIFHaKj7f9nP6DkHjtI7EBaRFbD\">, and select +ADD NEW OBJECT.<\/li>\n<li>Now mark points for the second section of your video.<\/li>\n<li>Repeat Steps 3 and 4 until you have marked all sections of the video.<\/li>\n<\/ol>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/8ADtGql8SI4GksejWPMLPI0zkBHt6XpN5cDAMtUbhVe99utv4WmbSl8JaYu4gb_sdVT6LoBWBEApXRL7YjAJZfbDpiq7sLaYRNiBXFI9vfm4_v69zm_yWy1gjY1qCNTjWGlPgv41\" alt=\"\"\/><figcaption class=\"wp-element-caption\"> <em>&nbsp;Figure 4 \u2013 Position <\/em>vs.<em> time data for the bouncing ball captured using three different objects<\/em> <\/figcaption><\/figure>\n<\/div>\n<p>Figure 5 shows a comparison between the velocity values calculated using the entire motion as a single object (Y Velocity) and the same motion captured using three separate objects. The default 7-point velocity calculation was used for all objects.&nbsp;<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/yb3gzNkC8IIicPwtqwClfhLwf9mxKLy0VsZDQF7UoRuWMuAxX_GdKVKJx5JI7ntf8DSR3EPgbhhgyvtRaxSDQy-RZenQAUE8b-j4dK_E6w250KDjSrVtJbGQIi-nL8EoAsqzPxdG\" alt=\"\"\/><figcaption class=\"wp-element-caption\"> <em>&nbsp;Figure 5 \u2013 Velocity vs. time graph for the bouncing ball<\/em> <\/figcaption><\/figure>\n<\/div>\n<p>Around the bounce, the velocity estimates for the separate objects are much better than the estimates you get with the motion captured using a single object. Notice that this method does not affect velocity measurements away from the bounces.<\/p>\n<p>This method can be used along with the 3-point velocity calculation; however, you would need to add a calculated column for each section of your motion since the position data for each section are in separate data columns.<\/p>\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n<h3 class=\"wp-block-heading\">3. Model the Velocity Data<\/h3>\n<p>If your velocity data follow a known model, you can apply a curve fit to estimate the velocity values near the bounce points. Follow the instructions below to use a curve fit model to estimate velocity.<\/p>\n<ol class=\"wp-block-list\">\n<li>Click-and-drag or touch-and-drag across the graph to select the portion of the velocity graph you want to model.<\/li>\n<li>Click or tap Graph Tools, <img loading=\"lazy\" decoding=\"async\" width=\"15\" height=\"15\" src=\"https:\/\/lh4.googleusercontent.com\/xig7g0SBcQqtXFw0QiHv5yBqIrXt53rVu1AIM5ak1APawWkZ4iNv0NZ0TkzdeUaXe45E2-XBoDd0UNNiRQdjeWxAslRff8c8CE7FfnzO_mxs5IiOn30bIfaQemZIrvvAqF8Ht-Dd\">, and select Apply Curve Fit.<\/li>\n<li>Select the desired curve fit model, then click or tap Apply. For the bouncing ball data, the curve fit model would be Linear.<\/li>\n<li>Click or tap Graph Tools, <img loading=\"lazy\" decoding=\"async\" width=\"15\" height=\"15\" src=\"https:\/\/lh3.googleusercontent.com\/bia_ARP75yb8CLDSB_2K2ecfThTk9A1CM703QAMiHyzrmWVlTBqSG_IHQxtoNBMG8QajypIuwS_XEX3XeLAXcHWokOIB42ZH9FWlTG3IemEacR9A8LwuYjqvMhhzJRJr9Hel0ifm\">, and select Interpolate. When Interpolate is selected, the value of the model at the selected <em>x<\/em> coordinate is shown.<\/li>\n<li>Click or tap anywhere on your graph to display the Examine line.\u00a0<\/li>\n<li>Drag the Examine line to your desired point on the graph to view the model&#8217;s estimate for velocity at the desired point.<\/li>\n<li>Repeat this process\u00a0 for other sections of your data that you need to model. <\/li>\n<\/ol>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/6HC_w-WtRfhoBu7eOp2efZ6ImL71bX248vyWRtP_4NEsHzInZx9hj607Q0mgIa9QLFo7g-eBCei3TwztCvTRYUC7ciMWQIRmYKl1W0E1aLAf4_1FmBzBX_iH9RoegUt4STWAOFey\" alt=\"\" style=\"width:684px;height:480px\"\/><figcaption class=\"wp-element-caption\"> <em>Figure 6 \u2013 Velocity vs. time graph for the bouncing ball modeled using linear functions<\/em> <\/figcaption><\/figure>\n<\/div>\n<p>Figure 6 shows velocity estimates using linear models at the time the ball was on the ground as shown in the video (see Figure 1). While it may seem reasonable to use these values, it is impossible to know the exact time at which the ball first struck (or later left) the ground unless that information is shown explicitly in the video. Thus, it is best to use the time associated with the last data point before the bounce (and the first data point after the bounce) when using a curve fit model to estimate velocity.<\/p>\n<p><strong>For additional information on using the Vernier Video Analysis App, see<br \/><\/strong><a href=\"\/til\/7037\/\">Vernier Video Analysis Troubleshooting and FAQs<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>In Vernier Video Analysis, velocity is calculated using a numerical derivative. The default calculation uses seven points, three on either side of the position point&#8230;<\/p>\n","protected":false},"author":1698,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-14253","post","type-post","status-publish","format-standard","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts\/14253","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/users\/1698"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/comments?post=14253"}],"version-history":[{"count":0,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts\/14253\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/media?parent=14253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/categories?post=14253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/tags?post=14253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}