How to stretch a bell curve horizontally?


I’m working on a computer science prototype for fun and have run into an interesting issue.

I’ve come up with the function in the image, and it’s making the curve I’d like in a range of X from 0 to 1. However, I don’t want the curve to repeat (if the range is 0-2, you can see that the curve is shown twice). I’ve figured out that in this function, it’s easy to set the maximum Y (each time you half the denominator, you increase Y by 0.2). However, stretching on the X axis has me stumped.

Thank you for any ideas and/or corrections.

submitted by /u/CouldPossiblyBeABot
[link] [comments]



I have this data set below, and I want to create a model of the proportion of arrest between the two PD districts (Location) and Month. What is the best model you would use? (Assuming independence between and within locations and months)

I just tossed in in R as ———–> ‘aov(prop ~ Location + Month + Month:Location, data = data)’, however, I think I may be oversimplifying it.

Would time series or repeated measures be a better approach?

Month Location prop

<dbl> <fctr> <dbl>

1 1 Ames PD 0.5483871

2 1 ISU PD 0.4516129

3 2 Ames PD 0.3500000

4 2 ISU PD 0.6500000

5 3 Ames PD 0.6000000

6 3 ISU PD 0.4000000

7 4 Ames PD 0.5000000

8 4 ISU PD 0.5000000

9 5 Ames PD 0.4761905

10 5 ISU PD 0.5238095

# … with 14 more rows

submitted by /u/j00xed
[link] [comments]

What explains Crown Vic’s success in taxis and other fleet types?

Well I find the car interesting although a big car (well here in Brazil a car with length of 16.4 ft is considered huge). Besides the Ford, there’s (or there was) other cars of great success in taxis and other fleet types? Camrys? Avalons? And about Ubers?

submitted by /u/Lanpenn_
[link] [comments]