Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

66%
+2 −0
#3: Post edited by user avatar Peter Taylor‭ · 2022-06-09T14:07:49Z (almost 2 years ago)
  • > This is the list of combinations I have found, the result size sequence changes depending on the three values so only the first and last four are always in the same place.
  • >
  • > ``A||B||C, A||B, A||C, A||(B+C), A, B||C, (A+C)||B, (A+B)||C, B, A+B||C, A||C+B, A+B, C, A||B+C, A+C, B+C, A+B+C``
  • I think it's only the first three and last three. This is the Hasse diagram which I obtain: ![Hasse diagram - sorry, I'm not going to try describing it in full](https://cheddarmonk.org/forumimg/mcd286561_hasse_diagram.png)
  • By considering the contours of equalities between incomparable terms in the Hasse diagram, I obtain this as a "phase diagram" of the possible total orders:
  • ![Triangle split by parabolae](https://cheddarmonk.org/forumimg/mcd286561_phase_diagram.png)
  • I count 30 possible total orders.
  • > Can I use Excel to goal seek on the R value of a trend line on a plot?
  • If this is a question about Excel, I don't know and this isn't the right place to ask. But treating it as a mathematical question about the nature of the goal function within each of the areas on the phase diagram, I think (although I haven't attempted to prove) that it should be smooth enough that hill climbing would work, so it seems like a viable strategy to pick one point away from the edges of each area and goal seek from there.
  • There is one additional point to raise about the goal function, which is that you may have a fencepost error. Do you want 17 steps per decade or 17 values and 16 steps?
  • Experimenting with [Plotly](https://plotly.com/python/) and some simpler cost functions (although I think least squares is effectively equivalent to your "R value" cost function), there doesn't seem to be a parameter set which fits within your desired 10% error bound. The best results seem to be $A \approx 27 \pm 0.1$, $B \approx 33.5 \pm 0.5$
  • [Code](https://gist.github.com/pjt33/374c6f3927145991d4c259f80aaab1a6)
  • Graph for least squares (L2 norm applied to errors):
  • ![Nested roughly ellipses](https://cheddarmonk.org/forumimg/mcd286569_l2.png)
  • Graph for total error (L1 norm):
  • ![Nested wedge-like shapes](https://cheddarmonk.org/forumimg/mcd286569_l1.png)
  • With a somewhat different goal, if we just aim for even spacing and forget about trying to fit a decade, $A \approx 16.1$, $B \approx 29.6$ is quite good.
  • > This is the list of combinations I have found, the result size sequence changes depending on the three values so only the first and last four are always in the same place.
  • >
  • > ``A||B||C, A||B, A||C, A||(B+C), A, B||C, (A+C)||B, (A+B)||C, B, A+B||C, A||C+B, A+B, C, A||B+C, A+C, B+C, A+B+C``
  • I think it's only the first three and last three. This is the Hasse diagram which I obtain: ![Hasse diagram - sorry, I'm not going to try describing it in full](https://cheddarmonk.org/forumimg/mcd286561_hasse_diagram.png)
  • By considering the contours of equalities between incomparable terms in the Hasse diagram, I obtain this as a "phase diagram" of the possible total orders:
  • ![Triangle split by parabolae](https://cheddarmonk.org/forumimg/mcd286561_phase_diagram.png)
  • I count 30 possible total orders.
  • > Can I use Excel to goal seek on the R value of a trend line on a plot?
  • If this is a question about Excel, I don't know and this isn't the right place to ask. But treating it as a mathematical question about the nature of the goal function within each of the areas on the phase diagram, I think (although I haven't attempted to prove) that it should be smooth enough that hill climbing would work, so it seems like a viable strategy to pick one point away from the edges of each area and goal seek from there.
  • There is one additional point to raise about the goal function, which is that you may have a fencepost error. Do you want 17 steps per decade or 17 values and 16 steps?
  • Experimenting with [Plotly](https://plotly.com/python/) and some simpler cost functions (although I think least squares error from the target line is closer to what you actually want than the "R value"), there doesn't seem to be a parameter set which fits within your desired 10% error bound. The best results seem to be $A \approx 27 \pm 0.1$, $B \approx 33.5 \pm 0.5$
  • [Code](https://gist.github.com/pjt33/374c6f3927145991d4c259f80aaab1a6)
  • Graph for least squares (L2 norm applied to errors):
  • ![Nested roughly ellipses](https://cheddarmonk.org/forumimg/mcd286569_l2.png)
  • Graph for total error (L1 norm):
  • ![Nested wedge-like shapes](https://cheddarmonk.org/forumimg/mcd286569_l1.png)
  • With a somewhat different goal, if we just aim for even spacing and forget about trying to fit a decade, $A \approx 16.1$, $B \approx 29.6$ is quite good.
#2: Post edited by user avatar Peter Taylor‭ · 2022-06-09T14:05:22Z (almost 2 years ago)
Investigate with some simple cost functions
  • > This is the list of combinations I have found, the result size sequence changes depending on the three values so only the first and last four are always in the same place.
  • >
  • > ``A||B||C, A||B, A||C, A||(B+C), A, B||C, (A+C)||B, (A+B)||C, B, A+B||C, A||C+B, A+B, C, A||B+C, A+C, B+C, A+B+C``
  • I think it's only the first three and last three. This is the Hasse diagram which I obtain: ![Hasse diagram - sorry, I'm not going to try describing it in full](https://cheddarmonk.org/forumimg/mcd286561_hasse_diagram.png)
  • By considering the contours of equalities between incomparable terms in the Hasse diagram, I obtain this as a "phase diagram" of the possible total orders:
  • ![Triangle split by parabolae](https://cheddarmonk.org/forumimg/mcd286561_phase_diagram.png)
  • I count 30 possible total orders.
  • > Can I use Excel to goal seek on the R value of a trend line on a plot?
  • If this is a question about Excel, I don't know and this isn't the right place to ask. But treating it as a mathematical question about the nature of the goal function within each of the areas on the phase diagram, I think (although I haven't attempted to prove) that it should be smooth enough that hill climbing would work, so it seems like a viable strategy to pick one point away from the edges of each area and goal seek from there.
  • There is one additional point to raise about the goal function, which is that you may have a fencepost error. Do you want 17 steps per decade or 17 values and 16 steps?
  • > This is the list of combinations I have found, the result size sequence changes depending on the three values so only the first and last four are always in the same place.
  • >
  • > ``A||B||C, A||B, A||C, A||(B+C), A, B||C, (A+C)||B, (A+B)||C, B, A+B||C, A||C+B, A+B, C, A||B+C, A+C, B+C, A+B+C``
  • I think it's only the first three and last three. This is the Hasse diagram which I obtain: ![Hasse diagram - sorry, I'm not going to try describing it in full](https://cheddarmonk.org/forumimg/mcd286561_hasse_diagram.png)
  • By considering the contours of equalities between incomparable terms in the Hasse diagram, I obtain this as a "phase diagram" of the possible total orders:
  • ![Triangle split by parabolae](https://cheddarmonk.org/forumimg/mcd286561_phase_diagram.png)
  • I count 30 possible total orders.
  • > Can I use Excel to goal seek on the R value of a trend line on a plot?
  • If this is a question about Excel, I don't know and this isn't the right place to ask. But treating it as a mathematical question about the nature of the goal function within each of the areas on the phase diagram, I think (although I haven't attempted to prove) that it should be smooth enough that hill climbing would work, so it seems like a viable strategy to pick one point away from the edges of each area and goal seek from there.
  • There is one additional point to raise about the goal function, which is that you may have a fencepost error. Do you want 17 steps per decade or 17 values and 16 steps?
  • Experimenting with [Plotly](https://plotly.com/python/) and some simpler cost functions (although I think least squares is effectively equivalent to your "R value" cost function), there doesn't seem to be a parameter set which fits within your desired 10% error bound. The best results seem to be $A \approx 27 \pm 0.1$, $B \approx 33.5 \pm 0.5$
  • [Code](https://gist.github.com/pjt33/374c6f3927145991d4c259f80aaab1a6)
  • Graph for least squares (L2 norm applied to errors):
  • ![Nested roughly ellipses](https://cheddarmonk.org/forumimg/mcd286569_l2.png)
  • Graph for total error (L1 norm):
  • ![Nested wedge-like shapes](https://cheddarmonk.org/forumimg/mcd286569_l1.png)
  • With a somewhat different goal, if we just aim for even spacing and forget about trying to fit a decade, $A \approx 16.1$, $B \approx 29.6$ is quite good.
#1: Initial revision by user avatar Peter Taylor‭ · 2022-06-08T15:23:54Z (almost 2 years ago)
> This is the list of combinations I have found, the result size sequence changes depending on the three values so only the first and last four are always in the same place.
>
> ``A||B||C, A||B, A||C, A||(B+C), A, B||C, (A+C)||B, (A+B)||C, B, A+B||C, A||C+B, A+B, C, A||B+C, A+C, B+C, A+B+C``

I think it's only the first three and last three. This is the Hasse diagram which I obtain: ![Hasse diagram - sorry, I'm not going to try describing it in full](https://cheddarmonk.org/forumimg/mcd286561_hasse_diagram.png)

By considering the contours of equalities between incomparable terms in the Hasse diagram, I obtain this as a "phase diagram" of the possible total orders:

![Triangle split by parabolae](https://cheddarmonk.org/forumimg/mcd286561_phase_diagram.png)

I count 30 possible total orders.

> Can I use Excel to goal seek on the R value of a trend line on a plot?

If this is a question about Excel, I don't know and this isn't the right place to ask. But treating it as a mathematical question about the nature of the goal function within each of the areas on the phase diagram, I think (although I haven't attempted to prove) that it should be smooth enough that hill climbing would work, so it seems like a viable strategy to pick one point away from the edges of each area and goal seek from there.

There is one additional point to raise about the goal function, which is that you may have a fencepost error. Do you want 17 steps per decade or 17 values and 16 steps?