Jump to content
Check out the Spin Axis Podcast! ×
Note: This thread is 4498 days old. We appreciate that you found this thread instead of starting a new one, but if you plan to post here please make sure it's still relevant. If not, please start a new topic. Thank you!

Recommended Posts

  • Administrator
Posted

I'm hoping that someone I tag at the bottom of this thread - or someone else - can help me out with something.

I'd like a way to generate a scatter plot on a cartesian coordinate system that obeys a bell curve but lets me set the standard deviation (the same would apply in both X and Y directions).

If it generates 100 "random" (fitting the standard deviation I set) points, that'd be perfect. I should be able to press a button to get a different set of 100 "random" dots.

The alternative would simply be a random number generator that obeys the bell curve and can kick out 100 (or 200, if I have to pair them) numbers that follow the standard deviation I set.

Can Excel or something else do this?

@jamo @boogielicious @Lihu @saevel25 @Golfingdad

Erik J. Barzeski —  I knock a ball. It goes in a gopher hole. 🏌🏼‍♂️
Director of Instruction Golf Evolution • Owner, The Sand Trap .com • AuthorLowest Score Wins
Golf Digest "Best Young Teachers in America" 2016-17 & "Best in State" 2017-20 • WNY Section PGA Teacher of the Year 2019 :edel: :true_linkswear:

Check Out: New Topics | TST Blog | Golf Terms | Instructional Content | Analyzr | LSW | Instructional Droplets

Awards, Achievements, and Accolades

  • Administrator
Posted

http://www.random.org/gaussian-distributions/ ?

Erik J. Barzeski —  I knock a ball. It goes in a gopher hole. 🏌🏼‍♂️
Director of Instruction Golf Evolution • Owner, The Sand Trap .com • AuthorLowest Score Wins
Golf Digest "Best Young Teachers in America" 2016-17 & "Best in State" 2017-20 • WNY Section PGA Teacher of the Year 2019 :edel: :true_linkswear:

Check Out: New Topics | TST Blog | Golf Terms | Instructional Content | Analyzr | LSW | Instructional Droplets

Awards, Achievements, and Accolades

  • Administrator
Posted

I hate when I research something, then when I write it up, I use a word or something that triggers a slightly different search, and then I find the answer. :P

Erik J. Barzeski —  I knock a ball. It goes in a gopher hole. 🏌🏼‍♂️
Director of Instruction Golf Evolution • Owner, The Sand Trap .com • AuthorLowest Score Wins
Golf Digest "Best Young Teachers in America" 2016-17 & "Best in State" 2017-20 • WNY Section PGA Teacher of the Year 2019 :edel: :true_linkswear:

Check Out: New Topics | TST Blog | Golf Terms | Instructional Content | Analyzr | LSW | Instructional Droplets

Awards, Achievements, and Accolades

Posted

Yea I don't think Excel can handle that with out some fancy excel work.

f(x,\mu ,\sigma )={\frac  {1}{\sigma {\sqrt  {2\pi }}}}e^{{-{\frac  {(x-\mu )^{2}}{2\sigma ^{2}}}}}

The only thing I could think of would be, set two cells in excel to be your standard deviation, and mean.

Then you can do something like

1 / ($A$1*SQRT(2*PI())) * EXP (- ((RANDBETWEEN(0,???) - $A$2)^2)/(2*$A$1^2)))

Were ??? Is the max random number you want. Not sure if that works out for ya. Just drag and click. Every time you edit something on the worksheet it should update the values, RANDBETWEEN is active like that. Not sure if that is correct or not, or if that is what you want.

Matt Dougherty, P.E.
 fasdfa dfdsaf 

What's in My Bag
Driver; :pxg: 0311 Gen 5,  3-Wood: 
:titleist: 917h3 ,  Hybrid:  :titleist: 915 2-Hybrid,  Irons: Sub 70 TAIII Fordged
Wedges: :edel: (52, 56, 60),  Putter: :edel:,  Ball: :snell: MTB,  Shoe: :true_linkswear:,  Rangfinder: :leupold:
Bag: :ping:

Awards, Achievements, and Accolades

Posted

Excel has the inverse CDF for a few common distributions, including the normal.  With the inverse CDF, you can just plug in a uniform random number (ie RAND()), and get a random number distributed by the PDF of the distribution you used the inverse CDF for.

So, for a random number distributed normally with mean 0 and SD 1, you can just use NORMINV(RAND(); 0; 1)

One of the other built in inverse CDFs in Excel is the log-normal.  That might be useful Erik if you want to plot non-symmetric landing spot scatters.  Most players definitely have a skewed distribution of distance (we all chunk one 2/3 of the way there but do we ever airmail the green by 33% of the distance we meant to hit it).  And many players have a skewed miss distribution.  As I've been trying to learn to draw the ball my left/right misses have gotten more equal in percentage terms, but it used to be my shot either hit the green/fairway or went right, with a long tail off to the right.  You could try using the lognormal (LOGINV) or gamma (GAMMAINV) to get skewed miss distributions (though those are both only defined on positive numbers, so you'd have to, say, subtract the mean to get misses left and right of 0).

Matt

Mid-Weight Heavy Putter
Cleveland Tour Action 60˚
Cleveland CG15 54˚
Nike Vapor Pro Combo, 4i-GW
Titleist 585h 19˚
Tour Edge Exotics XCG 15˚ 3 Wood
Taylormade R7 Quad 9.5˚

Awards, Achievements, and Accolades

Posted

Excel has the inverse CDF for a few common distributions, including the normal.  With the inverse CDF, you can just plug in a uniform random number (ie RAND()), and get a random number distributed by the PDF of the distribution you used the inverse CDF for.

So, for a random number distributed normally with mean 0 and SD 1, you can just use NORMINV(RAND(); 0; 1)

One of the other built in inverse CDFs in Excel is the log-normal.  That might be useful Erik if you want to plot non-symmetric landing spot scatters.  Most players definitely have a skewed distribution of distance (we all chunk one 2/3 of the way there but do we ever airmail the green by 33% of the distance we meant to hit it).  And many players have a skewed miss distribution.  As I've been trying to learn to draw the ball my left/right misses have gotten more equal in percentage terms, but it used to be my shot either hit the green/fairway or went right, with a long tail off to the right.  You could try using the lognormal (LOGINV) or gamma (GAMMAINV) to get skewed miss distributions (though those are both only defined on positive numbers, so you'd have to, say, subtract the mean to get misses left and right of 0).

COOL!!! Learn something new.

Matt Dougherty, P.E.
 fasdfa dfdsaf 

What's in My Bag
Driver; :pxg: 0311 Gen 5,  3-Wood: 
:titleist: 917h3 ,  Hybrid:  :titleist: 915 2-Hybrid,  Irons: Sub 70 TAIII Fordged
Wedges: :edel: (52, 56, 60),  Putter: :edel:,  Ball: :snell: MTB,  Shoe: :true_linkswear:,  Rangfinder: :leupold:
Bag: :ping:

Awards, Achievements, and Accolades

Posted

There is another factor to consider, for a right-hander, long left, short right, I'm sure you get what I mean.


  • Administrator
Posted
So, for a random number distributed normally with mean 0 and SD 1, you can just use NORMINV(RAND(); 0; 1)

One of the other built in inverse CDFs in Excel is the log-normal.  That might be useful Erik if you want to plot non-symmetric landing spot scatters.  Most players definitely have a skewed distribution of distance (we all chunk one 2/3 of the way there but do we ever airmail the green by 33% of the distance we meant to hit it).  And many players have a skewed miss distribution.  As I've been trying to learn to draw the ball my left/right misses have gotten more equal in percentage terms, but it used to be my shot either hit the green/fairway or went right, with a long tail off to the right.  You could try using the lognormal (LOGINV) or gamma (GAMMAINV) to get skewed miss distributions (though those are both only defined on positive numbers, so you'd have to, say, subtract the mean to get misses left and right of 0).

Like this?

I added a 0.2 multiplier on the right column: if you miss left, the shot will tend to be a little longer, and if you miss right, a bit shorter.

The actual standard deviation is kind of irrelevant since I can just scale the image up or down to fit anyway.

One of the other built in inverse CDFs in Excel is the log-normal.  That might be useful Erik if you want to plot non-symmetric landing spot scatters.  Most players definitely have a skewed distribution of distance (we all chunk one 2/3 of the way there but do we ever airmail the green by 33% of the distance we meant to hit it).  And many players have a skewed miss distribution.  As I've been trying to learn to draw the ball my left/right misses have gotten more equal in percentage terms, but it used to be my shot either hit the green/fairway or went right, with a long tail off to the right.  You could try using the lognormal (LOGINV) or gamma (GAMMAINV) to get skewed miss distributions (though those are both only defined on positive numbers, so you'd have to, say, subtract the mean to get misses left and right of 0).

Feel free to modify my Excel file and re-post, but… so far as I can tell we can just drag the scatter plot around a bit to get a fairly good representation. I don't want to make it too complex - chunking a shot now and then just won't factor, because you can't really "plan" for those anyway. So these are shots hit reasonably well.

Erik J. Barzeski —  I knock a ball. It goes in a gopher hole. 🏌🏼‍♂️
Director of Instruction Golf Evolution • Owner, The Sand Trap .com • AuthorLowest Score Wins
Golf Digest "Best Young Teachers in America" 2016-17 & "Best in State" 2017-20 • WNY Section PGA Teacher of the Year 2019 :edel: :true_linkswear:

Check Out: New Topics | TST Blog | Golf Terms | Instructional Content | Analyzr | LSW | Instructional Droplets

Awards, Achievements, and Accolades

Posted

There is another factor to consider, for a right-hander, long left, short right, I'm sure you get what I mean.

Yeah, but this gets more complicated because you can't generate independent random numbers for the X and Y dimensions.  You need to create numbers from a 2-dimensional distribution where there is correlation between the dimensions.  This is relatively easy to do in a stats language (e.g. R), but is a huge pain in the ass in excel.

Matt

Mid-Weight Heavy Putter
Cleveland Tour Action 60˚
Cleveland CG15 54˚
Nike Vapor Pro Combo, 4i-GW
Titleist 585h 19˚
Tour Edge Exotics XCG 15˚ 3 Wood
Taylormade R7 Quad 9.5˚

Awards, Achievements, and Accolades

  • Administrator
Posted

Yeah, but this gets more complicated because you can't generate independent random numbers for the X and Y dimensions.  You need to create numbers from a 2-dimensional distribution where there is correlation between the dimensions.  This is relatively easy to do in a stats language (e.g. R), but is a huge pain in the ass in excel.

I dunno. I feel like I did it reasonably well. :)

I take the shot's value on X (left/right) and use it to create a value for Y by setting the mean to -0.2X.

Erik J. Barzeski —  I knock a ball. It goes in a gopher hole. 🏌🏼‍♂️
Director of Instruction Golf Evolution • Owner, The Sand Trap .com • AuthorLowest Score Wins
Golf Digest "Best Young Teachers in America" 2016-17 & "Best in State" 2017-20 • WNY Section PGA Teacher of the Year 2019 :edel: :true_linkswear:

Check Out: New Topics | TST Blog | Golf Terms | Instructional Content | Analyzr | LSW | Instructional Droplets

Awards, Achievements, and Accolades

Posted

I dunno. I feel like I did it reasonably well. :)

I take the shot's value on X (left/right) and use it to create a value for Y by setting the mean to -0.2X.

So why the 0.2 for the vertical?

Matt Dougherty, P.E.
 fasdfa dfdsaf 

What's in My Bag
Driver; :pxg: 0311 Gen 5,  3-Wood: 
:titleist: 917h3 ,  Hybrid:  :titleist: 915 2-Hybrid,  Irons: Sub 70 TAIII Fordged
Wedges: :edel: (52, 56, 60),  Putter: :edel:,  Ball: :snell: MTB,  Shoe: :true_linkswear:,  Rangfinder: :leupold:
Bag: :ping:

Awards, Achievements, and Accolades

  • Administrator
Posted
So why the 0.2 for the vertical?

Because shots hit left (pulls) go farther. Shots hit right go shorter. It's actually -0.2 to account for this.

So a shot "10" left will have its mean set to "2" long.

Erik J. Barzeski —  I knock a ball. It goes in a gopher hole. 🏌🏼‍♂️
Director of Instruction Golf Evolution • Owner, The Sand Trap .com • AuthorLowest Score Wins
Golf Digest "Best Young Teachers in America" 2016-17 & "Best in State" 2017-20 • WNY Section PGA Teacher of the Year 2019 :edel: :true_linkswear:

Check Out: New Topics | TST Blog | Golf Terms | Instructional Content | Analyzr | LSW | Instructional Droplets

Awards, Achievements, and Accolades

  • Moderator
Posted

Looks like the way I would have done it in Excel.  I used to use MathCad and software from the MathWorks for work.  It had these functions.  But that was a dozen years ago.  I haven't touched in since maybe 2002.

Scott

Titleist, Edel, Scotty Cameron Putter, Snell - AimPoint - Evolvr - MirrorVision

My Swing Thread

boogielicious - Adjective describing the perfect surf wave

Awards, Achievements, and Accolades

Posted

I dunno. I feel like I did it reasonably well. :)

I take the shot's value on X (left/right) and use it to create a value for Y by setting the mean to -0.2X.

Great solution for getting a reasonable looking scatter plot.  Was thinking it would be a pain in the ass to exactly generate a bivariate distribution with exactly the covariance and means you want, especially for anything non-normal, but this is obviously the right solution for getting a good looking scatter plot!  Reduction of SD for Y variable was a nice touch too, giving it more of a look of a bivariate correlated distribution.

As I noted above, one thing you could play with is skewed distributions to give, say, some of the way short or big push-slice shots common among most everyone except low-mid single digit or better players.  Attached is an edited excel sheet using two gamma distributions to get this effect.  It's more of a hack than with the normals, but you can play around with it to get it to look like you want.  The two parameters to the Gamma variable in column A are alpha and beta.  Those are the second and third args to the GAMMAINV fxn.  The mean of a gamma distribution is alpha/beta, and the standard deviation is sqrt(alpha / beta^2).  So you can play around with alpha and beta and the very ad hoc stuff I put in for alpha and beta in column B to shift how it looks if you feel like it.

https://dl.dropboxusercontent.com/u/101944576/200PointPlot_Gamma.xlsx

How do I add a non-pic, non-video attachment?

Matt

Mid-Weight Heavy Putter
Cleveland Tour Action 60˚
Cleveland CG15 54˚
Nike Vapor Pro Combo, 4i-GW
Titleist 585h 19˚
Tour Edge Exotics XCG 15˚ 3 Wood
Taylormade R7 Quad 9.5˚

Awards, Achievements, and Accolades

  • Administrator
Posted
How do I add a non-pic, non-video attachment?

The paper clip icon.

Thanks. I'll download that and try it out. I don't know if we care too much about the weird outliers. People tend not to factor those in or believe that they hit those as often as they do anyway, so if we can make our case with a normal distribution (skewed slightly that long left/short right is in there too), then we should be okay.

Erik J. Barzeski —  I knock a ball. It goes in a gopher hole. 🏌🏼‍♂️
Director of Instruction Golf Evolution • Owner, The Sand Trap .com • AuthorLowest Score Wins
Golf Digest "Best Young Teachers in America" 2016-17 & "Best in State" 2017-20 • WNY Section PGA Teacher of the Year 2019 :edel: :true_linkswear:

Check Out: New Topics | TST Blog | Golf Terms | Instructional Content | Analyzr | LSW | Instructional Droplets

Awards, Achievements, and Accolades

Posted

The paper clip icon.

Thanks. I'll download that and try it out. I don't know if we care too much about the weird outliers. People tend not to factor those in or believe that they hit those as often as they do anyway, so if we can make our case with a normal distribution (skewed slightly that long left/short right is in there too), then we should be okay.

Yeah, fair enough.  If you're just trying to make the aim where you scatter plot scatters around the center of the green point, then you probably don't need to worry about the skewed distribution.  Could make an interesting newer players' add-on point where if your right-left distribution in particular is skewed with a fat tail off to the right (lots of fades and slices, a few pulls, no hooks), where you want to aim the heaviest part of the scatter plot changes depending on what's off to the right.  Something like if missing at all to the right is super penal, maybe OB is just to the right of the green, then maybe you actually want your median shot left center or even left edge of the green, accepting that a good number of decent shots will be off the green left in exchange for many fewer OB shots.

Ah.  I never actually noticed the "More" option off the right of the comment box.  I swear I'm on top of shit...

Matt

Mid-Weight Heavy Putter
Cleveland Tour Action 60˚
Cleveland CG15 54˚
Nike Vapor Pro Combo, 4i-GW
Titleist 585h 19˚
Tour Edge Exotics XCG 15˚ 3 Wood
Taylormade R7 Quad 9.5˚

Awards, Achievements, and Accolades

  • Moderator
Posted

Thanks @mdl for the great info. My only issue is when reading your posts, I imagine the bear avatar speaking. :-\

Scott

Titleist, Edel, Scotty Cameron Putter, Snell - AimPoint - Evolvr - MirrorVision

My Swing Thread

boogielicious - Adjective describing the perfect surf wave

Awards, Achievements, and Accolades

Note: This thread is 4498 days old. We appreciate that you found this thread instead of starting a new one, but if you plan to post here please make sure it's still relevant. If not, please start a new topic. Thank you!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Want to join this community?

    We'd love to have you!

    Sign Up
  • TST Partners

    Carl's Place
    PlayBetter
    Golfer's Journal
    ShotScope
    The Stack System
    FitForGolf
    FlightScope Mevo

    Coupon Codes (save 10-20%): "IACAS" for Mevo/Stack/FitForGolf, "IACASPLUS" for Mevo+/Pro Package, and "THESANDTRAP" for ShotScope. 15% off TourStriker (no code).
  • Posts

    • Best Seasons of All Time | Data Golf Best round and event-level strokes gained performances since 1983.   Going back to 1983 adjusting for field strength, Woods has the top 6 seasons by strokes gained. from Data Golf Scheffler has the 7th  8th, 12th and 15th. Woods has three other seasons in the top 20.    Also notable is Rory's highest rated season in the 28th best season. 44 year old Jack Nicklaus has the 36th highest strokes gained season.
    • Hi Everyone,  i ordered a new Qi 35 Driver, 10.5*, Regular Flex Diamoana shaft. Received by Fed X on Thursday, June 4th.  Took to Precision Valley and had a "Jumbo Grip" installed.  Friday morning, headed to Claflin, Ks. and played 18 holes. Front 9 wasn't to bad but I had hit my budddy's Qi with better success. Finally got a little more accustomed to the new club. I shot a 50.  Back 9, I started hitting the driver really well with the Driver delievering longer and straight drives down the fairway.  On my last drive, it was about 230 off the tee. I shot a 53.  (We play for .10/hole; $1.; Birdie; $5 or an Eagle. I won $0.60)  I was tired and headed home. (46 miles one way to play this course but the yearly rate is very cheap. They also have grass greens instead of sand.) I pull my Golf cart with a trailer.My nearest course witrh grass greens  is 25 miles away. Saturday,  I had the iPhone in do not disturb. Finally took it off of DND and I had a text from my golfing buddy that he wanted to play Hays late afternoon. So, he came by, picked my up and we headed to Hays. I was tired from playing 18 holes Friday and was hoping I could play 9 holes and call it a day. At Hays, KS.. I started off pretty rough and just could't seem to relax enough to hit well. (I was planning of finishing the front nine and the go home. However, on hole number 8, it's a 322 yard par 4, and I was able to get on in 2 and 2 putt for a par. #9 hole is a 114 yard par 3 and I hit an 8 iron and landed on the west edge of the fringe for pin high. Chipped up and 1 putted for another par. Front nine = 53 Headed to the back 9. Eerything started to click and #10 = 6; #11=5, #12 = 5, #13 = 4, #14 (Par 5) on in 3 and 2 ptted for par [Driver, 3 wood, and 9 iron and 2 putts] , #15 Par 4; I had a 6, #16 Par 4, I had a, #16 I had a 5, #17 Par 5,  I had a 5. (Driver, 3 wood, 3 wood, 8 iron, 1 putt; #18 Par 3, I had a 4.     BACK 9:  I SHOT A 45!   Yes sir, I like this Driver. I would like to go out again tomorrow but will see how I feel. My goal is to shoot my age before I turn 80 year old.  So, backto Right handed clubs. Qi35 TaylorMade Driver, 3 Wood, Callaway Rogue; 5 Wood Callaway Rogue, Majek Hybrids 4-PW, A Wedge, Loft wedge (60*); White Hot Blade Putter.    When I decided to change to the new driver, I went back to playing right handed. My hybrids are failrly new and are easier to hit. I do carry a conventional 7 iron in case I ge into a bad rough.  I will keep you up to date as the summer moves on.   Blessings,  RetiredOldMan  
    • Went up to Erie to clean up some stuff with the distance wedges, short game, and driver.   Distance Wedges Ball forward in stance. Less handle high at set up. Weight more in balls of feet (feels like more in the toes).  Clubhead travels more up than around. Less arm and more pivot turn. Weight/pressure stays on lead foot.  Pivot around left leg. Center of chest goes forward and up. Not back and down. Hands move down not out, so clubhead can move from the inside out (gets neural path). Don’t pull hands down which causes out to in path and hosel out at ball. A bit of wrist flexion. Though better path and pivot will help this.  Short Game Similar to this wedges, ball is forward, except hands are higher at setup. Pivot with torso, keeping weight forward. Gravity brings the club back down to the ball. Body just pivot so the center goes forward and up, not back and down. Be patient on the transition and downswing. Let gravity take over.  Driver Feel like hands are slowing down at A2. Fast early and put on the brakes. Stay wide with right elbow.  Arms travel down chest, wrist flexion. Send the 10-deg text on the driver at the ground at 45 degree angle to target line.  Wrist flexion should feel like it continues through impact with hands and club exiting out right. Don’t drag hands across body and exit left.     
    • I definitely prefer medal play, but then again, as @StuM points out, it's what I grew up with (or, in my case, began playing golf with -- I took up the sport in my early 20s). Interestingly, the unforgiveness level of it is something I really like.  A friend of mine (a much better player than I am) won her club championship a few years ago.  At her club, this is contested as match play, and something she didn't like was that her opponent could get a triple bogey on a hole she birdied and only drop a hole in the match.  On the other hand, that's something I'm sure some people appreciate (especially the opponent who triple bogeyed that hole, I am sure). My club has a handful of tournaments it calls majors, and one is our Match Play tournament, which was my first big win (wow, over a decade ago).  Of course, I won whatever flight I was in, not the top flight.  Organizing and playing a large match play tournament, outside of the professional or top amateur ranks, is difficult.  I think our medal play play-in was one day, 18 holes, but then we had to self-schedule with some reasonable deadlines, measured in weeks for each round.  I think a flight with 16 people advancing to match play took a few months to resolve.  Nice to watch as the summer unfolded I suppose.  By contrast, our club championship is medal play, three rounds on three consecutive days (with a cut after two).  I won this (well, my flight within it) twice, and the second time, I managed to keep to a great gameplan:  out of 53 par attempts, I had putter in hand for 52 of them.  I think I began that tournament with a handicap of ~13 and having two full rounds (and most of a third) where I at least had a putt for par on every hole (excluding the single birdie across the three days).   Some of those par attempts were 40+ feet away, but having a putter in hand could limit the damage. A format that works well with both stableford and medal play is skins, either as the main event or as a side event;  even if you have a terrible first hole, you could potentially pick up skins at the remaining holes.  I was playing a tournament a month or so ago and a friend of mine, after a few holes, was clearly out of contention for the medal play portion, but he was in the skins game.  He very plainly was playing for the skins in a match-play style manner, attempting shots he'd never consider if he were trying to post a low total score for the day (I think he shot 108 or something).  
    • Wordle 1,814 4/6 ⬜⬜⬜⬜⬜ ⬜⬜⬜🟨🟨 ⬜🟨🟨⬜⬜ 🟩🟩🟩🟩🟩
×
×
  • Create New...

Important Information

Welcome to TST! Signing up is free, and you'll see fewer ads and can talk with fellow golf enthusiasts! By using TST, you agree to our Terms of Use, our Privacy Policy, and our Guidelines.